BackgroundWorker Rest Service
Version 1.0.0.0
Der foody BackgroundWorker Rest Service stellt eine Schnittstelle für diverse foody Workerjobs zur Verfügung.
Log:
2026-02-04 00:00:04,550 INFO ScheduleDigitalInvoice called... |
2026-02-04 00:00:35,492 ERROR Exception in ScheduleDigitalInvoice: AutoMapper.AutoMapperMappingException: Error mapping types. |
Mapping types: |
IQueryable`1 -> IEnumerable`1 |
System.Linq.IQueryable`1[[Apetito.Safran.Domain.Entities.Financial.PurchaseInvoice, Apetito.Safran.Domain, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]] -> System.Collections.Generic.IEnumerable`1[[Apetito.Safran.Service.Dtos.Financial.PurchaseInvoiceDto, Apetito.Safran.Service, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]] ---> System.Data.Entity.Core.EntityException: The underlying provider failed on Open. ---> System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) ---> System.ComponentModel.Win32Exception: Access is denied |
--- End of inner exception stack trace --- |
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) |
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) |
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) |
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) |
at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry) |
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) |
at System.Data.SqlClient.SqlConnection.Open() |
at System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.Dispatch[TTarget,TInterceptionContext](TTarget target, Action`2 operation, TInterceptionContext interceptionContext, Action`3 executing, Action`3 executed) |
at System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher.Open(DbConnection connection, DbInterceptionContext interceptionContext) |
at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.<>c__DisplayClass2_0.<Execute>b__0() |
at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func`1 operation) |
at System.Data.Entity.Core.EntityClient.EntityConnection.Open() |
--- End of inner exception stack trace --- |
at System.Data.Entity.Core.EntityClient.EntityConnection.Open() |
at System.Data.Entity.Core.Objects.ObjectContext.EnsureConnection(Boolean shouldMonitorTransactions) |
at System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T](Func`1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess) |
at System.Data.Entity.Core.Objects.ObjectQuery`1.<>c__DisplayClass41_0.<GetResults>b__0() |
at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func`1 operation) |
at System.Data.Entity.Core.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption) |
at System.Data.Entity.Core.Objects.ObjectQuery`1.<System.Collections.Generic.IEnumerable<T>.GetEnumerator>b__31_0() |
at System.Data.Entity.Internal.LazyEnumerator`1.MoveNext() |
at lambda_method(Closure , IQueryable`1 , IEnumerable`1 , ResolutionContext ) |
--- End of inner exception stack trace --- |
at lambda_method(Closure , IQueryable`1 , IEnumerable`1 , ResolutionContext ) |
at AutoMapper.Mapper.MapCore[TSource,TDestination](TSource source, TDestination destination, ResolutionContext context, Type sourceType, Type destinationType, IMemberMap memberMap) |
at AutoMapper.Mapper.Map[TSource,TDestination](TSource source, TDestination destination) |
at AutoMapper.Mapper.Map[TSource,TDestination](TSource source) |
at Apetito.foody.BackgroundWorkerRestService.Services.DigitalInvoiceService.ScheduleDigitalInvoice(String parameter) in C:\tfs\apetito_foody\Edu\src\apetitoSAFRAN\Apetito.foody.BackgroundWorkerRestService\Services\DigitalInvoiceService.cs:line 55 |
2026-02-04 00:00:35,508 INFO ScheduleDigitalInvoice finished. |
2026-02-04 00:05:03,560 INFO ScheduleDigitalInvoice called... |
2026-02-04 00:05:34,537 ERROR Exception in ScheduleDigitalInvoice: AutoMapper.AutoMapperMappingException: Error mapping types. |
Mapping types: |
IQueryable`1 -> IEnumerable`1 |
System.Linq.IQueryable`1[[Apetito.Safran.Domain.Entities.Financial.PurchaseInvoice, Apetito.Safran.Domain, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]] -> System.Collections.Generic.IEnumerable`1[[Apetito.Safran.Service.Dtos.Financial.PurchaseInvoiceDto, Apetito.Safran.Service, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]] ---> System.Data.Entity.Core.EntityException: The underlying provider failed on Open. ---> System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) ---> System.ComponentModel.Win32Exception: Access is denied |
--- End of inner exception stack trace --- |
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) |
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) |
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) |
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) |
at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry) |
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) |
at System.Data.SqlClient.SqlConnection.Open() |
at System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.Dispatch[TTarget,TInterceptionContext](TTarget target, Action`2 operation, TInterceptionContext interceptionContext, Action`3 executing, Action`3 executed) |
at System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher.Open(DbConnection connection, DbInterceptionContext interceptionContext) |
at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.<>c__DisplayClass2_0.<Execute>b__0() |
at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func`1 operation) |
at System.Data.Entity.Core.EntityClient.EntityConnection.Open() |
--- End of inner exception stack trace --- |
at System.Data.Entity.Core.EntityClient.EntityConnection.Open() |
at System.Data.Entity.Core.Objects.ObjectContext.EnsureConnection(Boolean shouldMonitorTransactions) |
at System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T](Func`1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess) |
at System.Data.Entity.Core.Objects.ObjectQuery`1.<>c__DisplayClass41_0.<GetResults>b__0() |
at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func`1 operation) |
at System.Data.Entity.Core.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption) |
at System.Data.Entity.Core.Objects.ObjectQuery`1.<System.Collections.Generic.IEnumerable<T>.GetEnumerator>b__31_0() |
at System.Data.Entity.Internal.LazyEnumerator`1.MoveNext() |
at lambda_method(Closure , IQueryable`1 , IEnumerable`1 , ResolutionContext ) |
--- End of inner exception stack trace --- |
at lambda_method(Closure , IQueryable`1 , IEnumerable`1 , ResolutionContext ) |
at AutoMapper.Mapper.MapCore[TSource,TDestination](TSource source, TDestination destination, ResolutionContext context, Type sourceType, Type destinationType, IMemberMap memberMap) |
at AutoMapper.Mapper.Map[TSource,TDestination](TSource source, TDestination destination) |
at AutoMapper.Mapper.Map[TSource,TDestination](TSource source) |
at Apetito.foody.BackgroundWorkerRestService.Services.DigitalInvoiceService.ScheduleDigitalInvoice(String parameter) in C:\tfs\apetito_foody\Edu\src\apetitoSAFRAN\Apetito.foody.BackgroundWorkerRestService\Services\DigitalInvoiceService.cs:line 55 |
2026-02-04 00:05:34,537 INFO ScheduleDigitalInvoice finished. |
2026-02-04 00:10:03,512 INFO ScheduleDigitalInvoice called... |
2026-02-04 00:10:34,427 ERROR Exception in ScheduleDigitalInvoice: AutoMapper.AutoMapperMappingException: Error mapping types. |
Mapping types: |
IQueryable`1 -> IEnumerable`1 |
System.Linq.IQueryable`1[[Apetito.Safran.Domain.Entities.Financial.PurchaseInvoice, Apetito.Safran.Domain, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]] -> System.Collections.Generic.IEnumerable`1[[Apetito.Safran.Service.Dtos.Financial.PurchaseInvoiceDto, Apetito.Safran.Service, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]] ---> System.Data.Entity.Core.EntityException: The underlying provider failed on Open. ---> System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) ---> System.ComponentModel.Win32Exception: Access is denied |
--- End of inner exception stack trace --- |
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) |
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) |
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) |
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) |
at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry) |
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) |
at System.Data.SqlClient.SqlConnection.Open() |
at System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.Dispatch[TTarget,TInterceptionContext](TTarget target, Action`2 operation, TInterceptionContext interceptionContext, Action`3 executing, Action`3 executed) |
at System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher.Open(DbConnection connection, DbInterceptionContext interceptionContext) |
at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.<>c__DisplayClass2_0.<Execute>b__0() |
at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func`1 operation) |
at System.Data.Entity.Core.EntityClient.EntityConnection.Open() |
--- End of inner exception stack trace --- |
at System.Data.Entity.Core.EntityClient.EntityConnection.Open() |
at System.Data.Entity.Core.Objects.ObjectContext.EnsureConnection(Boolean shouldMonitorTransactions) |
at System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T](Func`1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess) |
at System.Data.Entity.Core.Objects.ObjectQuery`1.<>c__DisplayClass41_0.<GetResults>b__0() |
at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func`1 operation) |
at System.Data.Entity.Core.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption) |
at System.Data.Entity.Core.Objects.ObjectQuery`1.<System.Collections.Generic.IEnumerable<T>.GetEnumerator>b__31_0() |
at System.Data.Entity.Internal.LazyEnumerator`1.MoveNext() |
at lambda_method(Closure , IQueryable`1 , IEnumerable`1 , ResolutionContext ) |
--- End of inner exception stack trace --- |
at lambda_method(Closure , IQueryable`1 , IEnumerable`1 , ResolutionContext ) |
at AutoMapper.Mapper.MapCore[TSource,TDestination](TSource source, TDestination destination, ResolutionContext context, Type sourceType, Type destinationType, IMemberMap memberMap) |
at AutoMapper.Mapper.Map[TSource,TDestination](TSource source, TDestination destination) |
at AutoMapper.Mapper.Map[TSource,TDestination](TSource source) |
at Apetito.foody.BackgroundWorkerRestService.Services.DigitalInvoiceService.ScheduleDigitalInvoice(String parameter) in C:\tfs\apetito_foody\Edu\src\apetitoSAFRAN\Apetito.foody.BackgroundWorkerRestService\Services\DigitalInvoiceService.cs:line 55 |
2026-02-04 00:10:34,443 INFO ScheduleDigitalInvoice finished. |
2026-02-04 00:15:04,510 INFO ScheduleDigitalInvoice called... |
2026-02-04 00:15:35,397 ERROR Exception in ScheduleDigitalInvoice: AutoMapper.AutoMapperMappingException: Error mapping types. |
Mapping types: |
IQueryable`1 -> IEnumerable`1 |
System.Linq.IQueryable`1[[Apetito.Safran.Domain.Entities.Financial.PurchaseInvoice, Apetito.Safran.Domain, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]] -> System.Collections.Generic.IEnumerable`1[[Apetito.Safran.Service.Dtos.Financial.PurchaseInvoiceDto, Apetito.Safran.Service, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]] ---> System.Data.Entity.Core.EntityException: The underlying provider failed on Open. ---> System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) ---> System.ComponentModel.Win32Exception: Access is denied |
--- End of inner exception stack trace --- |
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) |
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) |
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) |
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) |
at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry) |
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) |
at System.Data.SqlClient.SqlConnection.Open() |
at System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.Dispatch[TTarget,TInterceptionContext](TTarget target, Action`2 operation, TInterceptionContext interceptionContext, Action`3 executing, Action`3 executed) |
at System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher.Open(DbConnection connection, DbInterceptionContext interceptionContext) |
at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.<>c__DisplayClass2_0.<Execute>b__0() |
at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func`1 operation) |
at System.Data.Entity.Core.EntityClient.EntityConnection.Open() |
--- End of inner exception stack trace --- |
at System.Data.Entity.Core.EntityClient.EntityConnection.Open() |
at System.Data.Entity.Core.Objects.ObjectContext.EnsureConnection(Boolean shouldMonitorTransactions) |
at System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T](Func`1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess) |
at System.Data.Entity.Core.Objects.ObjectQuery`1.<>c__DisplayClass41_0.<GetResults>b__0() |
at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func`1 operation) |
at System.Data.Entity.Core.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption) |
at System.Data.Entity.Core.Objects.ObjectQuery`1.<System.Collections.Generic.IEnumerable<T>.GetEnumerator>b__31_0() |
at System.Data.Entity.Internal.LazyEnumerator`1.MoveNext() |
at lambda_method(Closure , IQueryable`1 , IEnumerable`1 , ResolutionContext ) |
--- End of inner exception stack trace --- |
at lambda_method(Closure , IQueryable`1 , IEnumerable`1 , ResolutionContext ) |
at AutoMapper.Mapper.MapCore[TSource,TDestination](TSource source, TDestination destination, ResolutionContext context, Type sourceType, Type destinationType, IMemberMap memberMap) |
at AutoMapper.Mapper.Map[TSource,TDestination](TSource source, TDestination destination) |
at AutoMapper.Mapper.Map[TSource,TDestination](TSource source) |
at Apetito.foody.BackgroundWorkerRestService.Services.DigitalInvoiceService.ScheduleDigitalInvoice(String parameter) in C:\tfs\apetito_foody\Edu\src\apetitoSAFRAN\Apetito.foody.BackgroundWorkerRestService\Services\DigitalInvoiceService.cs:line 55 |
2026-02-04 00:15:35,412 INFO ScheduleDigitalInvoice finished. |
2026-02-04 00:20:03,646 INFO ScheduleDigitalInvoice called... |
2026-02-04 00:20:34,572 ERROR Exception in ScheduleDigitalInvoice: AutoMapper.AutoMapperMappingException: Error mapping types. |
Mapping types: |
IQueryable`1 -> IEnumerable`1 |
System.Linq.IQueryable`1[[Apetito.Safran.Domain.Entities.Financial.PurchaseInvoice, Apetito.Safran.Domain, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]] -> System.Collections.Generic.IEnumerable`1[[Apetito.Safran.Service.Dtos.Financial.PurchaseInvoiceDto, Apetito.Safran.Service, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]] ---> System.Data.Entity.Core.EntityException: The underlying provider failed on Open. ---> System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) ---> System.ComponentModel.Win32Exception: Access is denied |
--- End of inner exception stack trace --- |
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) |
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) |
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) |
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) |
at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry) |
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) |
at System.Data.SqlClient.SqlConnection.Open() |
at System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.Dispatch[TTarget,TInterceptionContext](TTarget target, Action`2 operation, TInterceptionContext interceptionContext, Action`3 executing, Action`3 executed) |
at System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher.Open(DbConnection connection, DbInterceptionContext interceptionContext) |
at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.<>c__DisplayClass2_0.<Execute>b__0() |
at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func`1 operation) |
at System.Data.Entity.Core.EntityClient.EntityConnection.Open() |
--- End of inner exception stack trace --- |
at System.Data.Entity.Core.EntityClient.EntityConnection.Open() |
at System.Data.Entity.Core.Objects.ObjectContext.EnsureConnection(Boolean shouldMonitorTransactions) |
at System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T](Func`1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess) |
at System.Data.Entity.Core.Objects.ObjectQuery`1.<>c__DisplayClass41_0.<GetResults>b__0() |
at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func`1 operation) |
at System.Data.Entity.Core.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption) |
at System.Data.Entity.Core.Objects.ObjectQuery`1.<System.Collections.Generic.IEnumerable<T>.GetEnumerator>b__31_0() |
at System.Data.Entity.Internal.LazyEnumerator`1.MoveNext() |
at lambda_method(Closure , IQueryable`1 , IEnumerable`1 , ResolutionContext ) |
--- End of inner exception stack trace --- |
at lambda_method(Closure , IQueryable`1 , IEnumerable`1 , ResolutionContext ) |
at AutoMapper.Mapper.MapCore[TSource,TDestination](TSource source, TDestination destination, ResolutionContext context, Type sourceType, Type destinationType, IMemberMap memberMap) |
at AutoMapper.Mapper.Map[TSource,TDestination](TSource source, TDestination destination) |
at AutoMapper.Mapper.Map[TSource,TDestination](TSource source) |
at Apetito.foody.BackgroundWorkerRestService.Services.DigitalInvoiceService.ScheduleDigitalInvoice(String parameter) in C:\tfs\apetito_foody\Edu\src\apetitoSAFRAN\Apetito.foody.BackgroundWorkerRestService\Services\DigitalInvoiceService.cs:line 55 |
2026-02-04 00:20:34,587 INFO ScheduleDigitalInvoice finished. |
2026-02-04 00:25:03,535 INFO ScheduleDigitalInvoice called... |
2026-02-04 00:25:34,443 ERROR Exception in ScheduleDigitalInvoice: AutoMapper.AutoMapperMappingException: Error mapping types. |
Mapping types: |
IQueryable`1 -> IEnumerable`1 |
System.Linq.IQueryable`1[[Apetito.Safran.Domain.Entities.Financial.PurchaseInvoice, Apetito.Safran.Domain, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]] -> System.Collections.Generic.IEnumerable`1[[Apetito.Safran.Service.Dtos.Financial.PurchaseInvoiceDto, Apetito.Safran.Service, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]] ---> System.Data.Entity.Core.EntityException: The underlying provider failed on Open. ---> System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) ---> System.ComponentModel.Win32Exception: Access is denied |
--- End of inner exception stack trace --- |
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) |
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) |
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) |
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) |
at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry) |
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) |
at System.Data.SqlClient.SqlConnection.Open() |
at System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.Dispatch[TTarget,TInterceptionContext](TTarget target, Action`2 operation, TInterceptionContext interceptionContext, Action`3 executing, Action`3 executed) |
at System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher.Open(DbConnection connection, DbInterceptionContext interceptionContext) |
at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.<>c__DisplayClass2_0.<Execute>b__0() |
at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func`1 operation) |
at System.Data.Entity.Core.EntityClient.EntityConnection.Open() |
--- End of inner exception stack trace --- |
at System.Data.Entity.Core.EntityClient.EntityConnection.Open() |
at System.Data.Entity.Core.Objects.ObjectContext.EnsureConnection(Boolean shouldMonitorTransactions) |
at System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T](Func`1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess) |
at System.Data.Entity.Core.Objects.ObjectQuery`1.<>c__DisplayClass41_0.<GetResults>b__0() |
at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func`1 operation) |
at System.Data.Entity.Core.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption) |
at System.Data.Entity.Core.Objects.ObjectQuery`1.<System.Collections.Generic.IEnumerable<T>.GetEnumerator>b__31_0() |
at System.Data.Entity.Internal.LazyEnumerator`1.MoveNext() |
at lambda_method(Closure , IQueryable`1 , IEnumerable`1 , ResolutionContext ) |
--- End of inner exception stack trace --- |
at lambda_method(Closure , IQueryable`1 , IEnumerable`1 , ResolutionContext ) |
at AutoMapper.Mapper.MapCore[TSource,TDestination](TSource source, TDestination destination, ResolutionContext context, Type sourceType, Type destinationType, IMemberMap memberMap) |
at AutoMapper.Mapper.Map[TSource,TDestination](TSource source, TDestination destination) |
at AutoMapper.Mapper.Map[TSource,TDestination](TSource source) |
at Apetito.foody.BackgroundWorkerRestService.Services.DigitalInvoiceService.ScheduleDigitalInvoice(String parameter) in C:\tfs\apetito_foody\Edu\src\apetitoSAFRAN\Apetito.foody.BackgroundWorkerRestService\Services\DigitalInvoiceService.cs:line 55 |
2026-02-04 00:25:34,443 INFO ScheduleDigitalInvoice finished. |
2026-02-04 00:30:04,152 INFO ScheduleDigitalInvoice called... |
2026-02-04 00:30:35,049 ERROR Exception in ScheduleDigitalInvoice: AutoMapper.AutoMapperMappingException: Error mapping types. |
Mapping types: |
IQueryable`1 -> IEnumerable`1 |
System.Linq.IQueryable`1[[Apetito.Safran.Domain.Entities.Financial.PurchaseInvoice, Apetito.Safran.Domain, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]] -> System.Collections.Generic.IEnumerable`1[[Apetito.Safran.Service.Dtos.Financial.PurchaseInvoiceDto, Apetito.Safran.Service, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]] ---> System.Data.Entity.Core.EntityException: The underlying provider failed on Open. ---> System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) ---> System.ComponentModel.Win32Exception: Access is denied |
--- End of inner exception stack trace --- |
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) |
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) |
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) |
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) |
at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry) |
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) |
at System.Data.SqlClient.SqlConnection.Open() |
at System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.Dispatch[TTarget,TInterceptionContext](TTarget target, Action`2 operation, TInterceptionContext interceptionContext, Action`3 executing, Action`3 executed) |
at System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher.Open(DbConnection connection, DbInterceptionContext interceptionContext) |
at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.<>c__DisplayClass2_0.<Execute>b__0() |
at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func`1 operation) |
at System.Data.Entity.Core.EntityClient.EntityConnection.Open() |
--- End of inner exception stack trace --- |
at System.Data.Entity.Core.EntityClient.EntityConnection.Open() |
at System.Data.Entity.Core.Objects.ObjectContext.EnsureConnection(Boolean shouldMonitorTransactions) |
at System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T](Func`1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess) |
at System.Data.Entity.Core.Objects.ObjectQuery`1.<>c__DisplayClass41_0.<GetResults>b__0() |
at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func`1 operation) |
at System.Data.Entity.Core.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption) |
at System.Data.Entity.Core.Objects.ObjectQuery`1.<System.Collections.Generic.IEnumerable<T>.GetEnumerator>b__31_0() |
at System.Data.Entity.Internal.LazyEnumerator`1.MoveNext() |
at lambda_method(Closure , IQueryable`1 , IEnumerable`1 , ResolutionContext ) |
--- End of inner exception stack trace --- |
at lambda_method(Closure , IQueryable`1 , IEnumerable`1 , ResolutionContext ) |
at AutoMapper.Mapper.MapCore[TSource,TDestination](TSource source, TDestination destination, ResolutionContext context, Type sourceType, Type destinationType, IMemberMap memberMap) |
at AutoMapper.Mapper.Map[TSource,TDestination](TSource source, TDestination destination) |
at AutoMapper.Mapper.Map[TSource,TDestination](TSource source) |
at Apetito.foody.BackgroundWorkerRestService.Services.DigitalInvoiceService.ScheduleDigitalInvoice(String parameter) in C:\tfs\apetito_foody\Edu\src\apetitoSAFRAN\Apetito.foody.BackgroundWorkerRestService\Services\DigitalInvoiceService.cs:line 55 |
2026-02-04 00:30:35,049 INFO ScheduleDigitalInvoice finished. |