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-04-04 00:00:04,072 INFO ScheduleDigitalInvoice called...

2026-04-04 00:00:50,392 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 00:00:50,408 INFO ScheduleDigitalInvoice finished.

2026-04-04 00:05:03,294 INFO ScheduleDigitalInvoice called...

2026-04-04 00:05:49,580 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 00:05:49,595 INFO ScheduleDigitalInvoice finished.

2026-04-04 00:10:03,289 INFO ScheduleDigitalInvoice called...

2026-04-04 00:10:49,548 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 00:10:49,563 INFO ScheduleDigitalInvoice finished.

2026-04-04 00:15:03,839 INFO ScheduleDigitalInvoice called...

2026-04-04 00:15:50,111 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 00:15:50,127 INFO ScheduleDigitalInvoice finished.

2026-04-04 00:20:03,563 INFO ScheduleDigitalInvoice called...

2026-04-04 00:20:49,826 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 00:20:49,841 INFO ScheduleDigitalInvoice finished.

2026-04-04 00:25:03,505 INFO ScheduleDigitalInvoice called...

2026-04-04 00:25:49,778 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 00:25:49,794 INFO ScheduleDigitalInvoice finished.

2026-04-04 00:30:03,882 INFO ScheduleDigitalInvoice called...

2026-04-04 00:30:50,179 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 00:30:50,195 INFO ScheduleDigitalInvoice finished.

2026-04-04 00:35:03,294 INFO ScheduleDigitalInvoice called...

2026-04-04 00:35:49,587 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 00:35:49,603 INFO ScheduleDigitalInvoice finished.

2026-04-04 00:40:03,337 INFO ScheduleDigitalInvoice called...

2026-04-04 00:40:49,604 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 00:40:49,620 INFO ScheduleDigitalInvoice finished.

2026-04-04 00:45:04,065 INFO ScheduleDigitalInvoice called...

2026-04-04 00:45:50,349 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 00:45:50,365 INFO ScheduleDigitalInvoice finished.

2026-04-04 00:50:03,489 INFO ScheduleDigitalInvoice called...

2026-04-04 00:50:49,752 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 00:50:49,767 INFO ScheduleDigitalInvoice finished.

2026-04-04 00:55:03,286 INFO ScheduleDigitalInvoice called...

2026-04-04 00:55:34,195 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-04-04 00:55:34,210 INFO ScheduleDigitalInvoice finished.

2026-04-04 01:00:03,815 INFO ScheduleDigitalInvoice called...

2026-04-04 01:00:50,051 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 01:00:50,067 INFO ScheduleDigitalInvoice finished.

2026-04-04 01:05:03,282 INFO ScheduleDigitalInvoice called...

2026-04-04 01:05:34,191 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-04-04 01:05:34,222 INFO ScheduleDigitalInvoice finished.

2026-04-04 01:10:03,518 INFO ScheduleDigitalInvoice called...

2026-04-04 01:10:34,405 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-04-04 01:10:34,421 INFO ScheduleDigitalInvoice finished.

2026-04-04 01:15:03,947 INFO ScheduleDigitalInvoice called...

2026-04-04 01:15:50,203 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 01:15:50,218 INFO ScheduleDigitalInvoice finished.

2026-04-04 01:20:03,362 INFO ScheduleDigitalInvoice called...

2026-04-04 01:20:34,252 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-04-04 01:20:34,267 INFO ScheduleDigitalInvoice finished.

2026-04-04 01:25:03,270 INFO ScheduleDigitalInvoice called...

2026-04-04 01:25:34,120 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-04-04 01:25:34,135 INFO ScheduleDigitalInvoice finished.

2026-04-04 01:30:04,104 INFO ScheduleDigitalInvoice called...

2026-04-04 01:30:35,007 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-04-04 01:30:35,022 INFO ScheduleDigitalInvoice finished.

2026-04-04 01:35:03,479 INFO ScheduleDigitalInvoice called...

2026-04-04 01:35:34,337 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-04-04 01:35:34,353 INFO ScheduleDigitalInvoice finished.

2026-04-04 01:40:03,561 INFO ScheduleDigitalInvoice called...

2026-04-04 01:40:34,421 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-04-04 01:40:34,437 INFO ScheduleDigitalInvoice finished.

2026-04-04 01:45:03,946 INFO ScheduleDigitalInvoice called...

2026-04-04 01:45:34,844 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-04-04 01:45:34,860 INFO ScheduleDigitalInvoice finished.

2026-04-04 01:50:03,385 INFO ScheduleDigitalInvoice called...

2026-04-04 01:50:34,298 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-04-04 01:50:34,314 INFO ScheduleDigitalInvoice finished.

2026-04-04 01:55:03,509 INFO ScheduleDigitalInvoice called...

2026-04-04 01:55:34,408 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-04-04 01:55:34,424 INFO ScheduleDigitalInvoice finished.

2026-04-04 02:00:03,868 INFO ScheduleDigitalInvoice called...

2026-04-04 02:00:34,756 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-04-04 02:00:34,772 INFO ScheduleDigitalInvoice finished.

2026-04-04 02:05:03,347 INFO ScheduleDigitalInvoice called...

2026-04-04 02:05:34,251 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-04-04 02:05:34,251 INFO ScheduleDigitalInvoice finished.

2026-04-04 02:10:03,540 INFO ScheduleDigitalInvoice called...

2026-04-04 02:10:34,439 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-04-04 02:10:34,455 INFO ScheduleDigitalInvoice finished.

2026-04-04 02:15:03,990 INFO ScheduleDigitalInvoice called...

2026-04-04 02:15:34,888 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-04-04 02:15:34,904 INFO ScheduleDigitalInvoice finished.

2026-04-04 02:20:03,540 INFO ScheduleDigitalInvoice called...

2026-04-04 02:20:34,416 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-04-04 02:20:34,431 INFO ScheduleDigitalInvoice finished.

2026-04-04 02:25:03,309 INFO ScheduleDigitalInvoice called...

2026-04-04 02:25:34,159 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-04-04 02:25:34,174 INFO ScheduleDigitalInvoice finished.

2026-04-04 02:30:03,847 INFO ScheduleDigitalInvoice called...

2026-04-04 02:30:34,738 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-04-04 02:30:34,753 INFO ScheduleDigitalInvoice finished.

2026-04-04 02:35:03,511 INFO ScheduleDigitalInvoice called...

2026-04-04 02:35:34,417 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-04-04 02:35:34,433 INFO ScheduleDigitalInvoice finished.

2026-04-04 02:40:03,262 INFO ScheduleDigitalInvoice called...

2026-04-04 02:40:34,175 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-04-04 02:40:34,191 INFO ScheduleDigitalInvoice finished.

2026-04-04 02:45:03,783 INFO ScheduleDigitalInvoice called...

2026-04-04 02:45:34,671 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-04-04 02:45:34,686 INFO ScheduleDigitalInvoice finished.

2026-04-04 02:50:03,491 INFO ScheduleDigitalInvoice called...

2026-04-04 02:50:34,415 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-04-04 02:50:34,431 INFO ScheduleDigitalInvoice finished.

2026-04-04 02:55:03,433 INFO ScheduleDigitalInvoice called...

2026-04-04 02:55:34,354 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-04-04 02:55:34,370 INFO ScheduleDigitalInvoice finished.

2026-04-04 03:00:03,808 INFO ScheduleDigitalInvoice called...

2026-04-04 03:00:34,718 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-04-04 03:00:34,734 INFO ScheduleDigitalInvoice finished.

2026-04-04 03:05:03,264 INFO ScheduleDigitalInvoice called...

2026-04-04 03:05:34,183 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-04-04 03:05:34,199 INFO ScheduleDigitalInvoice finished.

2026-04-04 03:10:03,335 INFO ScheduleDigitalInvoice called...

2026-04-04 03:10:34,257 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-04-04 03:10:34,273 INFO ScheduleDigitalInvoice finished.

2026-04-04 03:15:04,102 INFO ScheduleDigitalInvoice called...

2026-04-04 03:15:34,979 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-04-04 03:15:34,995 INFO ScheduleDigitalInvoice finished.

2026-04-04 03:20:03,340 INFO ScheduleDigitalInvoice called...

2026-04-04 03:20:34,234 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-04-04 03:20:34,250 INFO ScheduleDigitalInvoice finished.

2026-04-04 03:25:03,483 INFO ScheduleDigitalInvoice called...

2026-04-04 03:25:34,387 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-04-04 03:25:34,403 INFO ScheduleDigitalInvoice finished.

2026-04-04 03:30:03,842 INFO ScheduleDigitalInvoice called...

2026-04-04 03:30:34,707 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-04-04 03:30:34,722 INFO ScheduleDigitalInvoice finished.

2026-04-04 03:35:03,266 INFO ScheduleDigitalInvoice called...

2026-04-04 03:35:34,144 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-04-04 03:35:34,175 INFO ScheduleDigitalInvoice finished.

2026-04-04 03:40:03,527 INFO ScheduleDigitalInvoice called...

2026-04-04 03:40:34,432 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-04-04 03:40:34,448 INFO ScheduleDigitalInvoice finished.

2026-04-04 03:45:03,780 INFO ScheduleDigitalInvoice called...

2026-04-04 03:45:34,672 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-04-04 03:45:34,687 INFO ScheduleDigitalInvoice finished.

2026-04-04 03:50:03,491 INFO ScheduleDigitalInvoice called...

2026-04-04 03:50:34,399 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-04-04 03:50:34,415 INFO ScheduleDigitalInvoice finished.

2026-04-04 03:55:03,288 INFO ScheduleDigitalInvoice called...

2026-04-04 03:55:34,183 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-04-04 03:55:34,199 INFO ScheduleDigitalInvoice finished.

2026-04-04 04:00:04,228 INFO ScheduleDigitalInvoice called...

2026-04-04 04:00:35,095 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-04-04 04:00:35,110 INFO ScheduleDigitalInvoice finished.

2026-04-04 04:05:03,504 INFO ScheduleDigitalInvoice called...

2026-04-04 04:05:34,393 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-04-04 04:05:34,409 INFO ScheduleDigitalInvoice finished.

2026-04-04 04:10:03,295 INFO ScheduleDigitalInvoice called...

2026-04-04 04:10:34,175 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-04-04 04:10:34,191 INFO ScheduleDigitalInvoice finished.

2026-04-04 04:15:03,813 INFO ScheduleDigitalInvoice called...

2026-04-04 04:15:34,709 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-04-04 04:15:34,724 INFO ScheduleDigitalInvoice finished.

2026-04-04 04:20:03,617 INFO ScheduleDigitalInvoice called...

2026-04-04 04:20:34,516 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-04-04 04:20:34,532 INFO ScheduleDigitalInvoice finished.

2026-04-04 04:25:03,270 INFO ScheduleDigitalInvoice called...

2026-04-04 04:25:34,170 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-04-04 04:25:34,186 INFO ScheduleDigitalInvoice finished.

2026-04-04 04:30:04,103 INFO ScheduleDigitalInvoice called...

2026-04-04 04:30:34,998 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-04-04 04:30:35,014 INFO ScheduleDigitalInvoice finished.

2026-04-04 04:35:03,290 INFO ScheduleDigitalInvoice called...

2026-04-04 04:35:34,196 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-04-04 04:35:34,211 INFO ScheduleDigitalInvoice finished.

2026-04-04 04:40:03,342 INFO ScheduleDigitalInvoice called...

2026-04-04 04:40:34,238 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-04-04 04:40:34,254 INFO ScheduleDigitalInvoice finished.

2026-04-04 04:45:04,311 INFO ScheduleDigitalInvoice called...

2026-04-04 04:45:35,203 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-04-04 04:45:35,234 INFO ScheduleDigitalInvoice finished.

2026-04-04 04:50:03,288 INFO ScheduleDigitalInvoice called...

2026-04-04 04:50:34,153 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-04-04 04:50:34,169 INFO ScheduleDigitalInvoice finished.

2026-04-04 04:55:03,293 INFO ScheduleDigitalInvoice called...

2026-04-04 04:55:34,198 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-04-04 04:55:34,214 INFO ScheduleDigitalInvoice finished.

2026-04-04 05:00:04,115 INFO ScheduleDigitalInvoice called...

2026-04-04 05:00:34,993 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-04-04 05:00:35,008 INFO ScheduleDigitalInvoice finished.

2026-04-04 05:05:03,481 INFO ScheduleDigitalInvoice called...

2026-04-04 05:05:34,351 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-04-04 05:05:34,367 INFO ScheduleDigitalInvoice finished.

2026-04-04 05:10:03,308 INFO ScheduleDigitalInvoice called...

2026-04-04 05:10:34,193 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-04-04 05:10:34,209 INFO ScheduleDigitalInvoice finished.

2026-04-04 05:15:03,803 INFO ScheduleDigitalInvoice called...

2026-04-04 05:15:34,693 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-04-04 05:15:34,708 INFO ScheduleDigitalInvoice finished.

2026-04-04 05:20:03,259 INFO ScheduleDigitalInvoice called...

2026-04-04 05:20:34,177 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-04-04 05:20:34,193 INFO ScheduleDigitalInvoice finished.

2026-04-04 05:25:03,493 INFO ScheduleDigitalInvoice called...

2026-04-04 05:25:34,375 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-04-04 05:25:34,391 INFO ScheduleDigitalInvoice finished.

2026-04-04 05:30:04,041 INFO ScheduleDigitalInvoice called...

2026-04-04 05:30:34,958 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-04-04 05:30:34,973 INFO ScheduleDigitalInvoice finished.

2026-04-04 05:35:03,306 INFO ScheduleDigitalInvoice called...

2026-04-04 05:35:34,230 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-04-04 05:35:34,246 INFO ScheduleDigitalInvoice finished.

2026-04-04 05:40:03,337 INFO ScheduleDigitalInvoice called...

2026-04-04 05:40:34,257 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-04-04 05:40:34,272 INFO ScheduleDigitalInvoice finished.

2026-04-04 05:45:04,077 INFO ScheduleDigitalInvoice called...

2026-04-04 05:45:34,982 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-04-04 05:45:34,998 INFO ScheduleDigitalInvoice finished.

2026-04-04 05:50:03,299 INFO ScheduleDigitalInvoice called...

2026-04-04 05:50:34,217 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-04-04 05:50:34,233 INFO ScheduleDigitalInvoice finished.

2026-04-04 05:55:03,544 INFO ScheduleDigitalInvoice called...

2026-04-04 05:55:34,452 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-04-04 05:55:34,467 INFO ScheduleDigitalInvoice finished.

2026-04-04 06:00:03,846 INFO ScheduleDigitalInvoice called...

2026-04-04 06:00:34,741 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-04-04 06:00:34,757 INFO ScheduleDigitalInvoice finished.

2026-04-04 06:05:03,246 INFO ScheduleDigitalInvoice called...

2026-04-04 06:05:06,306 INFO MakeGlAccountPostings called...

2026-04-04 06:05:07,202 INFO MakeGlAccountPostings finished.

2026-04-04 06:05:07,202 INFO MakeCreditMemoRequest called...

2026-04-04 06:05:08,298 INFO MakeCreditMemoRequest finished.

2026-04-04 06:05:08,313 INFO ScheduleDigitalInvoice finished.

2026-04-04 06:10:03,539 INFO ScheduleDigitalInvoice called...

2026-04-04 06:10:03,710 INFO MakeGlAccountPostings called...

2026-04-04 06:10:03,851 INFO MakeGlAccountPostings finished.

2026-04-04 06:10:03,867 INFO MakeCreditMemoRequest called...

2026-04-04 06:10:04,007 INFO MakeCreditMemoRequest finished.

2026-04-04 06:10:04,007 INFO ScheduleDigitalInvoice finished.

2026-04-04 06:15:03,778 INFO ScheduleDigitalInvoice called...

2026-04-04 06:15:03,950 INFO MakeGlAccountPostings called...

2026-04-04 06:15:04,075 INFO MakeGlAccountPostings finished.

2026-04-04 06:15:04,090 INFO MakeCreditMemoRequest called...

2026-04-04 06:15:04,325 INFO MakeCreditMemoRequest finished.

2026-04-04 06:15:04,325 INFO ScheduleDigitalInvoice finished.

2026-04-04 06:20:03,615 INFO ScheduleDigitalInvoice called...

2026-04-04 06:20:03,802 INFO MakeGlAccountPostings called...

2026-04-04 06:20:03,912 INFO MakeGlAccountPostings finished.

2026-04-04 06:20:03,927 INFO MakeCreditMemoRequest called...

2026-04-04 06:20:04,068 INFO MakeCreditMemoRequest finished.

2026-04-04 06:20:04,084 INFO ScheduleDigitalInvoice finished.

2026-04-04 06:25:03,256 INFO ScheduleDigitalInvoice called...

2026-04-04 06:25:03,475 INFO MakeGlAccountPostings called...

2026-04-04 06:25:03,584 INFO MakeGlAccountPostings finished.

2026-04-04 06:25:03,584 INFO MakeCreditMemoRequest called...

2026-04-04 06:25:03,725 INFO MakeCreditMemoRequest finished.

2026-04-04 06:25:03,741 INFO ScheduleDigitalInvoice finished.

2026-04-04 06:30:03,821 INFO ScheduleDigitalInvoice called...

2026-04-04 06:30:04,009 INFO MakeGlAccountPostings called...

2026-04-04 06:30:04,134 INFO MakeGlAccountPostings finished.

2026-04-04 06:30:04,149 INFO MakeCreditMemoRequest called...

2026-04-04 06:30:04,290 INFO MakeCreditMemoRequest finished.

2026-04-04 06:30:04,290 INFO ScheduleDigitalInvoice finished.

2026-04-04 06:35:03,513 INFO ScheduleDigitalInvoice called...

2026-04-04 06:35:03,685 INFO MakeGlAccountPostings called...

2026-04-04 06:35:03,810 INFO MakeGlAccountPostings finished.

2026-04-04 06:35:03,825 INFO MakeCreditMemoRequest called...

2026-04-04 06:35:04,138 INFO MakeCreditMemoRequest finished.

2026-04-04 06:35:04,154 INFO ScheduleDigitalInvoice finished.

2026-04-04 06:40:03,237 INFO ScheduleDigitalInvoice called...

2026-04-04 06:40:03,425 INFO MakeGlAccountPostings called...

2026-04-04 06:40:03,550 INFO MakeGlAccountPostings finished.

2026-04-04 06:40:03,566 INFO MakeCreditMemoRequest called...

2026-04-04 06:40:03,706 INFO MakeCreditMemoRequest finished.

2026-04-04 06:40:03,722 INFO ScheduleDigitalInvoice finished.

2026-04-04 06:45:04,035 INFO ScheduleDigitalInvoice called...

2026-04-04 06:45:04,223 INFO MakeGlAccountPostings called...

2026-04-04 06:45:04,363 INFO MakeGlAccountPostings finished.

2026-04-04 06:45:04,379 INFO MakeCreditMemoRequest called...

2026-04-04 06:45:04,535 INFO MakeCreditMemoRequest finished.

2026-04-04 06:45:04,535 INFO ScheduleDigitalInvoice finished.

2026-04-04 06:50:03,295 INFO ScheduleDigitalInvoice called...

2026-04-04 06:50:03,483 INFO MakeGlAccountPostings called...

2026-04-04 06:50:03,608 INFO MakeGlAccountPostings finished.

2026-04-04 06:50:03,623 INFO MakeCreditMemoRequest called...

2026-04-04 06:50:03,873 INFO MakeCreditMemoRequest finished.

2026-04-04 06:50:03,873 INFO ScheduleDigitalInvoice finished.

2026-04-04 06:55:03,212 INFO ScheduleDigitalInvoice called...

2026-04-04 06:55:03,399 INFO MakeGlAccountPostings called...

2026-04-04 06:55:03,524 INFO MakeGlAccountPostings finished.

2026-04-04 06:55:03,540 INFO MakeCreditMemoRequest called...

2026-04-04 06:55:03,696 INFO MakeCreditMemoRequest finished.

2026-04-04 06:55:03,696 INFO ScheduleDigitalInvoice finished.

2026-04-04 07:00:04,081 INFO ScheduleDigitalInvoice called...

2026-04-04 07:00:04,253 INFO MakeGlAccountPostings called...

2026-04-04 07:00:04,409 INFO MakeGlAccountPostings finished.

2026-04-04 07:00:04,440 INFO MakeCreditMemoRequest called...

2026-04-04 07:00:04,597 INFO MakeCreditMemoRequest finished.

2026-04-04 07:00:04,597 INFO ScheduleDigitalInvoice finished.

2026-04-04 07:05:03,247 INFO ScheduleDigitalInvoice called...

2026-04-04 07:05:03,591 INFO MakeGlAccountPostings called...

2026-04-04 07:05:03,779 INFO MakeGlAccountPostings finished.

2026-04-04 07:05:03,779 INFO MakeCreditMemoRequest called...

2026-04-04 07:05:03,919 INFO MakeCreditMemoRequest finished.

2026-04-04 07:05:03,935 INFO ScheduleDigitalInvoice finished.

2026-04-04 07:10:03,532 INFO ScheduleDigitalInvoice called...

2026-04-04 07:10:03,719 INFO MakeGlAccountPostings called...

2026-04-04 07:10:03,876 INFO MakeGlAccountPostings finished.

2026-04-04 07:10:03,876 INFO MakeCreditMemoRequest called...

2026-04-04 07:10:04,016 INFO MakeCreditMemoRequest finished.

2026-04-04 07:10:04,032 INFO ScheduleDigitalInvoice finished.

2026-04-04 07:15:03,850 INFO ScheduleDigitalInvoice called...

2026-04-04 07:15:04,022 INFO MakeGlAccountPostings called...

2026-04-04 07:15:04,147 INFO MakeGlAccountPostings finished.

2026-04-04 07:15:04,147 INFO MakeCreditMemoRequest called...

2026-04-04 07:15:04,303 INFO MakeCreditMemoRequest finished.

2026-04-04 07:15:04,303 INFO ScheduleDigitalInvoice finished.

2026-04-04 07:20:03,263 INFO ScheduleDigitalInvoice called...

2026-04-04 07:20:03,435 INFO MakeGlAccountPostings called...

2026-04-04 07:20:03,575 INFO MakeGlAccountPostings finished.

2026-04-04 07:20:03,575 INFO MakeCreditMemoRequest called...

2026-04-04 07:20:03,716 INFO MakeCreditMemoRequest finished.

2026-04-04 07:20:03,732 INFO ScheduleDigitalInvoice finished.

2026-04-04 07:25:03,251 INFO ScheduleDigitalInvoice called...

2026-04-04 07:25:03,470 INFO MakeGlAccountPostings called...

2026-04-04 07:25:03,579 INFO MakeGlAccountPostings finished.

2026-04-04 07:25:03,595 INFO MakeCreditMemoRequest called...

2026-04-04 07:25:03,751 INFO MakeCreditMemoRequest finished.

2026-04-04 07:25:03,751 INFO ScheduleDigitalInvoice finished.

2026-04-04 07:30:04,173 INFO ScheduleDigitalInvoice called...

2026-04-04 07:30:04,345 INFO MakeGlAccountPostings called...

2026-04-04 07:30:04,454 INFO MakeGlAccountPostings finished.

2026-04-04 07:30:04,470 INFO MakeCreditMemoRequest called...

2026-04-04 07:30:04,626 INFO MakeCreditMemoRequest finished.

2026-04-04 07:30:04,626 INFO ScheduleDigitalInvoice finished.

2026-04-04 07:35:03,286 INFO ScheduleDigitalInvoice called...

2026-04-04 07:35:03,490 INFO MakeGlAccountPostings called...

2026-04-04 07:35:03,630 INFO MakeGlAccountPostings finished.

2026-04-04 07:35:03,646 INFO MakeCreditMemoRequest called...

2026-04-04 07:35:03,786 INFO MakeCreditMemoRequest finished.

2026-04-04 07:35:03,786 INFO ScheduleDigitalInvoice finished.

2026-04-04 07:40:03,502 INFO ScheduleDigitalInvoice called...

2026-04-04 07:40:03,674 INFO MakeGlAccountPostings called...

2026-04-04 07:40:03,815 INFO MakeGlAccountPostings finished.

2026-04-04 07:40:03,831 INFO MakeCreditMemoRequest called...

2026-04-04 07:40:03,971 INFO MakeCreditMemoRequest finished.

2026-04-04 07:40:03,971 INFO ScheduleDigitalInvoice finished.

2026-04-04 07:45:03,857 INFO ScheduleDigitalInvoice called...

2026-04-04 07:45:04,060 INFO MakeGlAccountPostings called...

2026-04-04 07:45:04,185 INFO MakeGlAccountPostings finished.

2026-04-04 07:45:04,185 INFO MakeCreditMemoRequest called...

2026-04-04 07:45:04,341 INFO MakeCreditMemoRequest finished.

2026-04-04 07:45:04,341 INFO ScheduleDigitalInvoice finished.

2026-04-04 07:50:03,557 INFO ScheduleDigitalInvoice called...

2026-04-04 07:50:03,744 INFO MakeGlAccountPostings called...

2026-04-04 07:50:03,885 INFO MakeGlAccountPostings finished.

2026-04-04 07:50:03,900 INFO MakeCreditMemoRequest called...

2026-04-04 07:50:04,041 INFO MakeCreditMemoRequest finished.

2026-04-04 07:50:04,057 INFO ScheduleDigitalInvoice finished.

2026-04-04 07:55:03,249 INFO ScheduleDigitalInvoice called...

2026-04-04 07:55:03,421 INFO MakeGlAccountPostings called...

2026-04-04 07:55:03,577 INFO MakeGlAccountPostings finished.

2026-04-04 07:55:03,577 INFO MakeCreditMemoRequest called...

2026-04-04 07:55:03,718 INFO MakeCreditMemoRequest finished.

2026-04-04 07:55:03,733 INFO ScheduleDigitalInvoice finished.

2026-04-04 08:00:03,839 INFO ScheduleDigitalInvoice called...

2026-04-04 08:00:04,183 INFO MakeGlAccountPostings called...

2026-04-04 08:00:04,402 INFO MakeGlAccountPostings finished.

2026-04-04 08:00:04,402 INFO MakeCreditMemoRequest called...

2026-04-04 08:00:04,558 INFO MakeCreditMemoRequest finished.

2026-04-04 08:00:04,574 INFO ScheduleDigitalInvoice finished.

2026-04-04 08:05:03,566 INFO ScheduleDigitalInvoice called...

2026-04-04 08:05:03,753 INFO MakeGlAccountPostings called...

2026-04-04 08:05:03,878 INFO MakeGlAccountPostings finished.

2026-04-04 08:05:03,878 INFO MakeCreditMemoRequest called...

2026-04-04 08:05:04,019 INFO MakeCreditMemoRequest finished.

2026-04-04 08:05:04,081 INFO ScheduleDigitalInvoice finished.

2026-04-04 08:10:03,305 INFO ScheduleDigitalInvoice called...

2026-04-04 08:10:03,493 INFO MakeGlAccountPostings called...

2026-04-04 08:10:03,634 INFO MakeGlAccountPostings finished.

2026-04-04 08:10:03,634 INFO MakeCreditMemoRequest called...

2026-04-04 08:10:03,790 INFO MakeCreditMemoRequest finished.

2026-04-04 08:10:03,805 INFO ScheduleDigitalInvoice finished.

2026-04-04 08:15:04,074 INFO ScheduleDigitalInvoice called...

2026-04-04 08:15:04,261 INFO MakeGlAccountPostings called...

2026-04-04 08:15:04,402 INFO MakeGlAccountPostings finished.

2026-04-04 08:15:04,418 INFO MakeCreditMemoRequest called...

2026-04-04 08:15:04,558 INFO MakeCreditMemoRequest finished.

2026-04-04 08:15:04,558 INFO ScheduleDigitalInvoice finished.

2026-04-04 08:20:03,273 INFO ScheduleDigitalInvoice called...

2026-04-04 08:20:03,492 INFO MakeGlAccountPostings called...

2026-04-04 08:20:03,632 INFO MakeGlAccountPostings finished.

2026-04-04 08:20:03,632 INFO MakeCreditMemoRequest called...

2026-04-04 08:20:03,788 INFO MakeCreditMemoRequest finished.

2026-04-04 08:20:03,788 INFO ScheduleDigitalInvoice finished.

2026-04-04 08:25:03,258 INFO ScheduleDigitalInvoice called...

2026-04-04 08:25:03,429 INFO MakeGlAccountPostings called...

2026-04-04 08:25:03,586 INFO MakeGlAccountPostings finished.

2026-04-04 08:25:03,586 INFO MakeCreditMemoRequest called...

2026-04-04 08:25:03,742 INFO MakeCreditMemoRequest finished.

2026-04-04 08:25:03,742 INFO ScheduleDigitalInvoice finished.

2026-04-04 08:30:04,103 INFO ScheduleDigitalInvoice called...

2026-04-04 08:30:04,681 INFO MakeGlAccountPostings called...

2026-04-04 08:30:04,806 INFO MakeGlAccountPostings finished.

2026-04-04 08:30:04,822 INFO MakeCreditMemoRequest called...

2026-04-04 08:30:04,978 INFO MakeCreditMemoRequest finished.

2026-04-04 08:30:04,994 INFO ScheduleDigitalInvoice finished.

2026-04-04 08:35:03,236 INFO ScheduleDigitalInvoice called...

2026-04-04 08:35:03,392 INFO MakeGlAccountPostings called...

2026-04-04 08:35:03,502 INFO MakeGlAccountPostings finished.

2026-04-04 08:35:03,517 INFO MakeCreditMemoRequest called...

2026-04-04 08:35:03,705 INFO MakeCreditMemoRequest finished.

2026-04-04 08:35:03,705 INFO ScheduleDigitalInvoice finished.

2026-04-04 08:40:03,235 INFO ScheduleDigitalInvoice called...

2026-04-04 08:40:03,438 INFO MakeGlAccountPostings called...

2026-04-04 08:40:03,594 INFO MakeGlAccountPostings finished.

2026-04-04 08:40:03,610 INFO MakeCreditMemoRequest called...

2026-04-04 08:40:03,750 INFO MakeCreditMemoRequest finished.

2026-04-04 08:40:03,766 INFO ScheduleDigitalInvoice finished.

2026-04-04 08:45:04,083 INFO ScheduleDigitalInvoice called...

2026-04-04 08:45:04,255 INFO MakeGlAccountPostings called...

2026-04-04 08:45:04,380 INFO MakeGlAccountPostings finished.

2026-04-04 08:45:04,396 INFO MakeCreditMemoRequest called...

2026-04-04 08:45:04,536 INFO MakeCreditMemoRequest finished.

2026-04-04 08:45:04,536 INFO ScheduleDigitalInvoice finished.

2026-04-04 08:50:03,237 INFO ScheduleDigitalInvoice called...

2026-04-04 08:50:03,409 INFO MakeGlAccountPostings called...

2026-04-04 08:50:03,549 INFO MakeGlAccountPostings finished.

2026-04-04 08:50:03,565 INFO MakeCreditMemoRequest called...

2026-04-04 08:50:03,705 INFO MakeCreditMemoRequest finished.

2026-04-04 08:50:03,705 INFO ScheduleDigitalInvoice finished.

2026-04-04 08:55:03,468 INFO ScheduleDigitalInvoice called...

2026-04-04 08:55:03,656 INFO MakeGlAccountPostings called...

2026-04-04 08:55:03,812 INFO MakeGlAccountPostings finished.

2026-04-04 08:55:03,812 INFO MakeCreditMemoRequest called...

2026-04-04 08:55:03,952 INFO MakeCreditMemoRequest finished.

2026-04-04 08:55:03,968 INFO ScheduleDigitalInvoice finished.

2026-04-04 09:00:03,877 INFO ScheduleDigitalInvoice called...

2026-04-04 09:00:04,065 INFO MakeGlAccountPostings called...

2026-04-04 09:00:04,190 INFO MakeGlAccountPostings finished.

2026-04-04 09:00:04,205 INFO MakeCreditMemoRequest called...

2026-04-04 09:00:04,346 INFO MakeCreditMemoRequest finished.

2026-04-04 09:00:04,361 INFO ScheduleDigitalInvoice finished.

2026-04-04 09:05:03,259 INFO ScheduleDigitalInvoice called...

2026-04-04 09:05:03,416 INFO MakeGlAccountPostings called...

2026-04-04 09:05:03,525 INFO MakeGlAccountPostings finished.

2026-04-04 09:05:03,541 INFO MakeCreditMemoRequest called...

2026-04-04 09:05:03,713 INFO MakeCreditMemoRequest finished.

2026-04-04 09:05:03,713 INFO ScheduleDigitalInvoice finished.

2026-04-04 09:10:03,248 INFO ScheduleDigitalInvoice called...

2026-04-04 09:10:03,404 INFO MakeGlAccountPostings called...

2026-04-04 09:10:03,513 INFO MakeGlAccountPostings finished.

2026-04-04 09:10:03,529 INFO MakeCreditMemoRequest called...

2026-04-04 09:10:03,716 INFO MakeCreditMemoRequest finished.

2026-04-04 09:10:03,716 INFO ScheduleDigitalInvoice finished.

2026-04-04 09:15:04,207 INFO ScheduleDigitalInvoice called...

2026-04-04 09:15:04,394 INFO MakeGlAccountPostings called...

2026-04-04 09:15:04,519 INFO MakeGlAccountPostings finished.

2026-04-04 09:15:04,519 INFO MakeCreditMemoRequest called...

2026-04-04 09:15:04,675 INFO MakeCreditMemoRequest finished.

2026-04-04 09:15:04,675 INFO ScheduleDigitalInvoice finished.

2026-04-04 09:20:03,258 INFO ScheduleDigitalInvoice called...

2026-04-04 09:20:03,430 INFO MakeGlAccountPostings called...

2026-04-04 09:20:03,539 INFO MakeGlAccountPostings finished.

2026-04-04 09:20:03,555 INFO MakeCreditMemoRequest called...

2026-04-04 09:20:03,727 INFO MakeCreditMemoRequest finished.

2026-04-04 09:20:03,727 INFO ScheduleDigitalInvoice finished.

2026-04-04 09:25:03,497 INFO ScheduleDigitalInvoice called...

2026-04-04 09:25:03,716 INFO MakeGlAccountPostings called...

2026-04-04 09:25:03,841 INFO MakeGlAccountPostings finished.

2026-04-04 09:25:03,856 INFO MakeCreditMemoRequest called...

2026-04-04 09:25:04,185 INFO MakeCreditMemoRequest finished.

2026-04-04 09:25:04,185 INFO ScheduleDigitalInvoice finished.

2026-04-04 09:30:03,908 INFO ScheduleDigitalInvoice called...

2026-04-04 09:30:04,096 INFO MakeGlAccountPostings called...

2026-04-04 09:30:04,267 INFO MakeGlAccountPostings finished.

2026-04-04 09:30:04,283 INFO MakeCreditMemoRequest called...

2026-04-04 09:30:04,471 INFO MakeCreditMemoRequest finished.

2026-04-04 09:30:04,486 INFO ScheduleDigitalInvoice finished.

2026-04-04 09:35:03,424 INFO ScheduleDigitalInvoice called...

2026-04-04 09:35:03,595 INFO MakeGlAccountPostings called...

2026-04-04 09:35:03,783 INFO MakeGlAccountPostings finished.

2026-04-04 09:35:03,799 INFO MakeCreditMemoRequest called...

2026-04-04 09:35:03,939 INFO MakeCreditMemoRequest finished.

2026-04-04 09:35:03,955 INFO ScheduleDigitalInvoice finished.

2026-04-04 09:40:03,566 INFO ScheduleDigitalInvoice called...

2026-04-04 09:40:03,770 INFO MakeGlAccountPostings called...

2026-04-04 09:40:03,879 INFO MakeGlAccountPostings finished.

2026-04-04 09:40:03,895 INFO MakeCreditMemoRequest called...

2026-04-04 09:40:04,066 INFO MakeCreditMemoRequest finished.

2026-04-04 09:40:04,066 INFO ScheduleDigitalInvoice finished.

2026-04-04 09:45:03,912 INFO ScheduleDigitalInvoice called...

2026-04-04 09:45:04,100 INFO MakeGlAccountPostings called...

2026-04-04 09:45:04,225 INFO MakeGlAccountPostings finished.

2026-04-04 09:45:04,240 INFO MakeCreditMemoRequest called...

2026-04-04 09:45:04,397 INFO MakeCreditMemoRequest finished.

2026-04-04 09:45:04,397 INFO ScheduleDigitalInvoice finished.

2026-04-04 09:50:03,513 INFO ScheduleDigitalInvoice called...

2026-04-04 09:50:03,685 INFO MakeGlAccountPostings called...

2026-04-04 09:50:03,810 INFO MakeGlAccountPostings finished.

2026-04-04 09:50:03,826 INFO MakeCreditMemoRequest called...

2026-04-04 09:50:03,966 INFO MakeCreditMemoRequest finished.

2026-04-04 09:50:03,982 INFO ScheduleDigitalInvoice finished.

2026-04-04 09:55:03,240 INFO ScheduleDigitalInvoice called...

2026-04-04 09:55:03,412 INFO MakeGlAccountPostings called...

2026-04-04 09:55:03,521 INFO MakeGlAccountPostings finished.

2026-04-04 09:55:03,537 INFO MakeCreditMemoRequest called...

2026-04-04 09:55:03,693 INFO MakeCreditMemoRequest finished.

2026-04-04 09:55:03,709 INFO ScheduleDigitalInvoice finished.

2026-04-04 10:00:03,833 INFO ScheduleDigitalInvoice called...

2026-04-04 10:00:04,021 INFO MakeGlAccountPostings called...

2026-04-04 10:00:04,161 INFO MakeGlAccountPostings finished.

2026-04-04 10:00:04,177 INFO MakeCreditMemoRequest called...

2026-04-04 10:00:04,318 INFO MakeCreditMemoRequest finished.

2026-04-04 10:00:04,333 INFO ScheduleDigitalInvoice finished.

2026-04-04 10:05:03,499 INFO ScheduleDigitalInvoice called...

2026-04-04 10:05:03,671 INFO MakeGlAccountPostings called...

2026-04-04 10:05:03,796 INFO MakeGlAccountPostings finished.

2026-04-04 10:05:03,812 INFO MakeCreditMemoRequest called...

2026-04-04 10:05:03,953 INFO MakeCreditMemoRequest finished.

2026-04-04 10:05:03,968 INFO ScheduleDigitalInvoice finished.

2026-04-04 10:10:03,317 INFO ScheduleDigitalInvoice called...

2026-04-04 10:10:03,489 INFO MakeGlAccountPostings called...

2026-04-04 10:10:03,614 INFO MakeGlAccountPostings finished.

2026-04-04 10:10:03,614 INFO MakeCreditMemoRequest called...

2026-04-04 10:10:03,817 INFO MakeCreditMemoRequest finished.

2026-04-04 10:10:03,833 INFO ScheduleDigitalInvoice finished.

2026-04-04 10:15:04,030 INFO ScheduleDigitalInvoice called...

2026-04-04 10:15:04,233 INFO MakeGlAccountPostings called...

2026-04-04 10:15:04,389 INFO MakeGlAccountPostings finished.

2026-04-04 10:15:04,405 INFO MakeCreditMemoRequest called...

2026-04-04 10:15:04,608 INFO MakeCreditMemoRequest finished.

2026-04-04 10:15:04,608 INFO ScheduleDigitalInvoice finished.

2026-04-04 10:20:03,253 INFO ScheduleDigitalInvoice called...

2026-04-04 10:20:03,425 INFO MakeGlAccountPostings called...

2026-04-04 10:20:03,566 INFO MakeGlAccountPostings finished.

2026-04-04 10:20:03,581 INFO MakeCreditMemoRequest called...

2026-04-04 10:20:03,753 INFO MakeCreditMemoRequest finished.

2026-04-04 10:20:03,753 INFO ScheduleDigitalInvoice finished.

2026-04-04 10:25:03,253 INFO ScheduleDigitalInvoice called...

2026-04-04 10:25:03,425 INFO MakeGlAccountPostings called...

2026-04-04 10:25:03,550 INFO MakeGlAccountPostings finished.

2026-04-04 10:25:03,550 INFO MakeCreditMemoRequest called...

2026-04-04 10:25:03,722 INFO MakeCreditMemoRequest finished.

2026-04-04 10:25:03,722 INFO ScheduleDigitalInvoice finished.

2026-04-04 10:30:04,077 INFO ScheduleDigitalInvoice called...

2026-04-04 10:30:04,233 INFO MakeGlAccountPostings called...

2026-04-04 10:30:04,358 INFO MakeGlAccountPostings finished.

2026-04-04 10:30:04,358 INFO MakeCreditMemoRequest called...

2026-04-04 10:30:04,530 INFO MakeCreditMemoRequest finished.

2026-04-04 10:30:04,530 INFO ScheduleDigitalInvoice finished.

2026-04-04 10:35:03,271 INFO ScheduleDigitalInvoice called...

2026-04-04 10:35:03,443 INFO MakeGlAccountPostings called...

2026-04-04 10:35:03,553 INFO MakeGlAccountPostings finished.

2026-04-04 10:35:03,568 INFO MakeCreditMemoRequest called...

2026-04-04 10:35:03,756 INFO MakeCreditMemoRequest finished.

2026-04-04 10:35:03,771 INFO ScheduleDigitalInvoice finished.

2026-04-04 10:40:03,494 INFO ScheduleDigitalInvoice called...

2026-04-04 10:40:03,681 INFO MakeGlAccountPostings called...

2026-04-04 10:40:03,822 INFO MakeGlAccountPostings finished.

2026-04-04 10:40:03,838 INFO MakeCreditMemoRequest called...

2026-04-04 10:40:03,994 INFO MakeCreditMemoRequest finished.

2026-04-04 10:40:03,994 INFO ScheduleDigitalInvoice finished.

2026-04-04 10:45:03,867 INFO ScheduleDigitalInvoice called...

2026-04-04 10:45:04,039 INFO MakeGlAccountPostings called...

2026-04-04 10:45:04,149 INFO MakeGlAccountPostings finished.

2026-04-04 10:45:04,164 INFO MakeCreditMemoRequest called...

2026-04-04 10:45:04,305 INFO MakeCreditMemoRequest finished.

2026-04-04 10:45:04,321 INFO ScheduleDigitalInvoice finished.

2026-04-04 10:50:03,321 INFO ScheduleDigitalInvoice called...

2026-04-04 10:50:03,493 INFO MakeGlAccountPostings called...

2026-04-04 10:50:03,602 INFO MakeGlAccountPostings finished.

2026-04-04 10:50:03,618 INFO MakeCreditMemoRequest called...

2026-04-04 10:50:03,790 INFO MakeCreditMemoRequest finished.

2026-04-04 10:50:03,790 INFO ScheduleDigitalInvoice finished.

2026-04-04 10:55:03,570 INFO ScheduleDigitalInvoice called...

2026-04-04 10:55:03,757 INFO MakeGlAccountPostings called...

2026-04-04 10:55:03,882 INFO MakeGlAccountPostings finished.

2026-04-04 10:55:03,898 INFO MakeCreditMemoRequest called...

2026-04-04 10:55:04,038 INFO MakeCreditMemoRequest finished.

2026-04-04 10:55:04,054 INFO ScheduleDigitalInvoice finished.

2026-04-04 11:00:03,793 INFO ScheduleDigitalInvoice called...

2026-04-04 11:00:03,965 INFO MakeGlAccountPostings called...

2026-04-04 11:00:04,105 INFO MakeGlAccountPostings finished.

2026-04-04 11:00:04,121 INFO MakeCreditMemoRequest called...

2026-04-04 11:00:04,262 INFO MakeCreditMemoRequest finished.

2026-04-04 11:00:04,277 INFO ScheduleDigitalInvoice finished.

2026-04-04 11:05:03,491 INFO ScheduleDigitalInvoice called...

2026-04-04 11:05:03,662 INFO MakeGlAccountPostings called...

2026-04-04 11:05:03,819 INFO MakeGlAccountPostings finished.

2026-04-04 11:05:03,834 INFO MakeCreditMemoRequest called...

2026-04-04 11:05:03,991 INFO MakeCreditMemoRequest finished.

2026-04-04 11:05:04,006 INFO ScheduleDigitalInvoice finished.

2026-04-04 11:10:03,288 INFO ScheduleDigitalInvoice called...

2026-04-04 11:10:03,460 INFO MakeGlAccountPostings called...

2026-04-04 11:10:03,601 INFO MakeGlAccountPostings finished.

2026-04-04 11:10:03,616 INFO MakeCreditMemoRequest called...

2026-04-04 11:10:03,772 INFO MakeCreditMemoRequest finished.

2026-04-04 11:10:03,788 INFO ScheduleDigitalInvoice finished.

2026-04-04 11:15:03,817 INFO ScheduleDigitalInvoice called...

2026-04-04 11:15:03,989 INFO MakeGlAccountPostings called...

2026-04-04 11:15:04,114 INFO MakeGlAccountPostings finished.

2026-04-04 11:15:04,130 INFO MakeCreditMemoRequest called...

2026-04-04 11:15:04,270 INFO MakeCreditMemoRequest finished.

2026-04-04 11:15:04,286 INFO ScheduleDigitalInvoice finished.

2026-04-04 11:20:03,552 INFO ScheduleDigitalInvoice called...

2026-04-04 11:20:03,708 INFO MakeGlAccountPostings called...

2026-04-04 11:20:03,849 INFO MakeGlAccountPostings finished.

2026-04-04 11:20:03,864 INFO MakeCreditMemoRequest called...

2026-04-04 11:20:04,005 INFO MakeCreditMemoRequest finished.

2026-04-04 11:20:04,005 INFO ScheduleDigitalInvoice finished.

2026-04-04 11:25:03,265 INFO ScheduleDigitalInvoice called...

2026-04-04 11:25:03,437 INFO MakeGlAccountPostings called...

2026-04-04 11:25:03,562 INFO MakeGlAccountPostings finished.

2026-04-04 11:25:03,578 INFO MakeCreditMemoRequest called...

2026-04-04 11:25:03,718 INFO MakeCreditMemoRequest finished.

2026-04-04 11:25:03,718 INFO ScheduleDigitalInvoice finished.

2026-04-04 11:30:03,858 INFO ScheduleDigitalInvoice called...

2026-04-04 11:30:04,030 INFO MakeGlAccountPostings called...

2026-04-04 11:30:04,155 INFO MakeGlAccountPostings finished.

2026-04-04 11:30:04,171 INFO MakeCreditMemoRequest called...

2026-04-04 11:30:04,311 INFO MakeCreditMemoRequest finished.

2026-04-04 11:30:04,327 INFO ScheduleDigitalInvoice finished.

2026-04-04 11:35:03,504 INFO ScheduleDigitalInvoice called...

2026-04-04 11:35:03,675 INFO MakeGlAccountPostings called...

2026-04-04 11:35:03,816 INFO MakeGlAccountPostings finished.

2026-04-04 11:35:03,832 INFO MakeCreditMemoRequest called...

2026-04-04 11:35:03,972 INFO MakeCreditMemoRequest finished.

2026-04-04 11:35:03,988 INFO ScheduleDigitalInvoice finished.

2026-04-04 11:40:03,491 INFO ScheduleDigitalInvoice called...

2026-04-04 11:40:03,647 INFO MakeGlAccountPostings called...

2026-04-04 11:40:03,772 INFO MakeGlAccountPostings finished.

2026-04-04 11:40:03,772 INFO MakeCreditMemoRequest called...

2026-04-04 11:40:03,944 INFO MakeCreditMemoRequest finished.

2026-04-04 11:40:03,960 INFO ScheduleDigitalInvoice finished.

2026-04-04 11:45:03,785 INFO ScheduleDigitalInvoice called...

2026-04-04 11:45:03,957 INFO MakeGlAccountPostings called...

2026-04-04 11:45:04,082 INFO MakeGlAccountPostings finished.

2026-04-04 11:45:04,098 INFO MakeCreditMemoRequest called...

2026-04-04 11:45:04,238 INFO MakeCreditMemoRequest finished.

2026-04-04 11:45:04,254 INFO ScheduleDigitalInvoice finished.

2026-04-04 11:50:03,261 INFO ScheduleDigitalInvoice called...

2026-04-04 11:50:03,417 INFO MakeGlAccountPostings called...

2026-04-04 11:50:03,542 INFO MakeGlAccountPostings finished.

2026-04-04 11:50:03,557 INFO MakeCreditMemoRequest called...

2026-04-04 11:50:03,698 INFO MakeCreditMemoRequest finished.

2026-04-04 11:50:03,714 INFO ScheduleDigitalInvoice finished.

2026-04-04 11:55:03,568 INFO ScheduleDigitalInvoice called...

2026-04-04 11:55:03,755 INFO MakeGlAccountPostings called...

2026-04-04 11:55:03,912 INFO MakeGlAccountPostings finished.

2026-04-04 11:55:03,927 INFO MakeCreditMemoRequest called...

2026-04-04 11:55:04,099 INFO MakeCreditMemoRequest finished.

2026-04-04 11:55:04,099 INFO ScheduleDigitalInvoice finished.

2026-04-04 12:00:03,845 INFO ScheduleDigitalInvoice called...

2026-04-04 12:00:04,017 INFO MakeGlAccountPostings called...

2026-04-04 12:00:04,157 INFO MakeGlAccountPostings finished.

2026-04-04 12:00:04,157 INFO MakeCreditMemoRequest called...

2026-04-04 12:00:04,298 INFO MakeCreditMemoRequest finished.

2026-04-04 12:00:04,314 INFO ScheduleDigitalInvoice finished.

2026-04-04 12:05:03,260 INFO ScheduleDigitalInvoice called...

2026-04-04 12:05:03,432 INFO MakeGlAccountPostings called...

2026-04-04 12:05:03,557 INFO MakeGlAccountPostings finished.

2026-04-04 12:05:03,557 INFO MakeCreditMemoRequest called...

2026-04-04 12:05:03,714 INFO MakeCreditMemoRequest finished.

2026-04-04 12:05:03,714 INFO ScheduleDigitalInvoice finished.

2026-04-04 12:10:03,597 INFO ScheduleDigitalInvoice called...

2026-04-04 12:10:03,769 INFO MakeGlAccountPostings called...

2026-04-04 12:10:03,925 INFO MakeGlAccountPostings finished.

2026-04-04 12:10:03,925 INFO MakeCreditMemoRequest called...

2026-04-04 12:10:04,066 INFO MakeCreditMemoRequest finished.

2026-04-04 12:10:04,081 INFO ScheduleDigitalInvoice finished.

2026-04-04 12:15:03,738 INFO ScheduleDigitalInvoice called...

2026-04-04 12:15:03,926 INFO MakeGlAccountPostings called...

2026-04-04 12:15:04,082 INFO MakeGlAccountPostings finished.

2026-04-04 12:15:04,098 INFO MakeCreditMemoRequest called...

2026-04-04 12:15:04,238 INFO MakeCreditMemoRequest finished.

2026-04-04 12:15:04,238 INFO ScheduleDigitalInvoice finished.

2026-04-04 12:20:03,458 INFO ScheduleDigitalInvoice called...

2026-04-04 12:20:03,614 INFO MakeGlAccountPostings called...

2026-04-04 12:20:03,724 INFO MakeGlAccountPostings finished.

2026-04-04 12:20:03,739 INFO MakeCreditMemoRequest called...

2026-04-04 12:20:03,896 INFO MakeCreditMemoRequest finished.

2026-04-04 12:20:03,911 INFO ScheduleDigitalInvoice finished.

2026-04-04 12:25:03,243 INFO ScheduleDigitalInvoice called...

2026-04-04 12:25:03,399 INFO MakeGlAccountPostings called...

2026-04-04 12:25:03,540 INFO MakeGlAccountPostings finished.

2026-04-04 12:25:03,540 INFO MakeCreditMemoRequest called...

2026-04-04 12:25:03,681 INFO MakeCreditMemoRequest finished.

2026-04-04 12:25:03,696 INFO ScheduleDigitalInvoice finished.

2026-04-04 12:30:03,800 INFO ScheduleDigitalInvoice called...

2026-04-04 12:30:04,003 INFO MakeGlAccountPostings called...

2026-04-04 12:30:04,128 INFO MakeGlAccountPostings finished.

2026-04-04 12:30:04,128 INFO MakeCreditMemoRequest called...

2026-04-04 12:30:04,300 INFO MakeCreditMemoRequest finished.

2026-04-04 12:30:04,316 INFO ScheduleDigitalInvoice finished.

2026-04-04 12:35:03,508 INFO ScheduleDigitalInvoice called...

2026-04-04 12:35:03,680 INFO MakeGlAccountPostings called...

2026-04-04 12:35:03,790 INFO MakeGlAccountPostings finished.

2026-04-04 12:35:03,790 INFO MakeCreditMemoRequest called...

2026-04-04 12:35:03,977 INFO MakeCreditMemoRequest finished.

2026-04-04 12:35:03,977 INFO ScheduleDigitalInvoice finished.

2026-04-04 12:40:03,252 INFO ScheduleDigitalInvoice called...

2026-04-04 12:40:03,424 INFO MakeGlAccountPostings called...

2026-04-04 12:40:03,549 INFO MakeGlAccountPostings finished.

2026-04-04 12:40:03,549 INFO MakeCreditMemoRequest called...

2026-04-04 12:40:03,705 INFO MakeCreditMemoRequest finished.

2026-04-04 12:40:03,737 INFO ScheduleDigitalInvoice finished.

2026-04-04 12:45:04,034 INFO ScheduleDigitalInvoice called...

2026-04-04 12:45:04,222 INFO MakeGlAccountPostings called...

2026-04-04 12:45:04,347 INFO MakeGlAccountPostings finished.

2026-04-04 12:45:04,362 INFO MakeCreditMemoRequest called...

2026-04-04 12:45:04,503 INFO MakeCreditMemoRequest finished.

2026-04-04 12:45:04,519 INFO ScheduleDigitalInvoice finished.

2026-04-04 12:50:03,392 INFO ScheduleDigitalInvoice called...

2026-04-04 12:50:03,580 INFO MakeGlAccountPostings called...

2026-04-04 12:50:03,689 INFO MakeGlAccountPostings finished.

2026-04-04 12:50:03,705 INFO MakeCreditMemoRequest called...

2026-04-04 12:50:03,892 INFO MakeCreditMemoRequest finished.

2026-04-04 12:50:03,892 INFO ScheduleDigitalInvoice finished.

2026-04-04 12:55:03,210 INFO ScheduleDigitalInvoice called...

2026-04-04 12:55:03,382 INFO MakeGlAccountPostings called...

2026-04-04 12:55:03,491 INFO MakeGlAccountPostings finished.

2026-04-04 12:55:03,507 INFO MakeCreditMemoRequest called...

2026-04-04 12:55:03,648 INFO MakeCreditMemoRequest finished.

2026-04-04 12:55:03,648 INFO ScheduleDigitalInvoice finished.

2026-04-04 13:00:04,106 INFO ScheduleDigitalInvoice called...

2026-04-04 13:00:04,294 INFO MakeGlAccountPostings called...

2026-04-04 13:00:04,434 INFO MakeGlAccountPostings finished.

2026-04-04 13:00:04,450 INFO MakeCreditMemoRequest called...

2026-04-04 13:00:04,591 INFO MakeCreditMemoRequest finished.

2026-04-04 13:00:04,606 INFO ScheduleDigitalInvoice finished.

2026-04-04 13:05:03,249 INFO ScheduleDigitalInvoice called...

2026-04-04 13:05:03,405 INFO MakeGlAccountPostings called...

2026-04-04 13:05:03,530 INFO MakeGlAccountPostings finished.

2026-04-04 13:05:03,545 INFO MakeCreditMemoRequest called...

2026-04-04 13:05:03,686 INFO MakeCreditMemoRequest finished.

2026-04-04 13:05:03,702 INFO ScheduleDigitalInvoice finished.

2026-04-04 13:10:03,523 INFO ScheduleDigitalInvoice called...

2026-04-04 13:10:03,695 INFO MakeGlAccountPostings called...

2026-04-04 13:10:03,836 INFO MakeGlAccountPostings finished.

2026-04-04 13:10:03,851 INFO MakeCreditMemoRequest called...

2026-04-04 13:10:04,007 INFO MakeCreditMemoRequest finished.

2026-04-04 13:10:04,023 INFO ScheduleDigitalInvoice finished.

2026-04-04 13:15:03,766 INFO ScheduleDigitalInvoice called...

2026-04-04 13:15:03,970 INFO MakeGlAccountPostings called...

2026-04-04 13:15:04,095 INFO MakeGlAccountPostings finished.

2026-04-04 13:15:04,095 INFO MakeCreditMemoRequest called...

2026-04-04 13:15:04,235 INFO MakeCreditMemoRequest finished.

2026-04-04 13:15:04,251 INFO ScheduleDigitalInvoice finished.

2026-04-04 13:20:03,266 INFO ScheduleDigitalInvoice called...

2026-04-04 13:20:03,438 INFO MakeGlAccountPostings called...

2026-04-04 13:20:03,563 INFO MakeGlAccountPostings finished.

2026-04-04 13:20:03,563 INFO MakeCreditMemoRequest called...

2026-04-04 13:20:03,719 INFO MakeCreditMemoRequest finished.

2026-04-04 13:20:03,719 INFO ScheduleDigitalInvoice finished.

2026-04-04 13:25:03,525 INFO ScheduleDigitalInvoice called...

2026-04-04 13:25:03,696 INFO MakeGlAccountPostings called...

2026-04-04 13:25:03,806 INFO MakeGlAccountPostings finished.

2026-04-04 13:25:03,821 INFO MakeCreditMemoRequest called...

2026-04-04 13:25:04,025 INFO MakeCreditMemoRequest finished.

2026-04-04 13:25:04,025 INFO ScheduleDigitalInvoice finished.

2026-04-04 13:30:03,837 INFO ScheduleDigitalInvoice called...

2026-04-04 13:30:04,056 INFO MakeGlAccountPostings called...

2026-04-04 13:30:04,181 INFO MakeGlAccountPostings finished.

2026-04-04 13:30:04,196 INFO MakeCreditMemoRequest called...

2026-04-04 13:30:04,337 INFO MakeCreditMemoRequest finished.

2026-04-04 13:30:04,368 INFO ScheduleDigitalInvoice finished.

2026-04-04 13:35:03,566 INFO ScheduleDigitalInvoice called...

2026-04-04 13:35:03,738 INFO MakeGlAccountPostings called...

2026-04-04 13:35:03,847 INFO MakeGlAccountPostings finished.

2026-04-04 13:35:03,863 INFO MakeCreditMemoRequest called...

2026-04-04 13:35:04,050 INFO MakeCreditMemoRequest finished.

2026-04-04 13:35:04,066 INFO ScheduleDigitalInvoice finished.

2026-04-04 13:40:03,238 INFO ScheduleDigitalInvoice called...

2026-04-04 13:40:03,394 INFO MakeGlAccountPostings called...

2026-04-04 13:40:03,519 INFO MakeGlAccountPostings finished.

2026-04-04 13:40:03,519 INFO MakeCreditMemoRequest called...

2026-04-04 13:40:03,660 INFO MakeCreditMemoRequest finished.

2026-04-04 13:40:03,675 INFO ScheduleDigitalInvoice finished.

2026-04-04 13:45:03,800 INFO ScheduleDigitalInvoice called...

2026-04-04 13:45:04,019 INFO MakeGlAccountPostings called...

2026-04-04 13:45:04,144 INFO MakeGlAccountPostings finished.

2026-04-04 13:45:04,159 INFO MakeCreditMemoRequest called...

2026-04-04 13:45:04,331 INFO MakeCreditMemoRequest finished.

2026-04-04 13:45:04,347 INFO ScheduleDigitalInvoice finished.

2026-04-04 13:50:03,556 INFO ScheduleDigitalInvoice called...

2026-04-04 13:50:03,712 INFO MakeGlAccountPostings called...

2026-04-04 13:50:03,853 INFO MakeGlAccountPostings finished.

2026-04-04 13:50:03,868 INFO MakeCreditMemoRequest called...

2026-04-04 13:50:04,040 INFO MakeCreditMemoRequest finished.

2026-04-04 13:50:04,040 INFO ScheduleDigitalInvoice finished.

2026-04-04 13:55:03,268 INFO ScheduleDigitalInvoice called...

2026-04-04 13:55:03,455 INFO MakeGlAccountPostings called...

2026-04-04 13:55:03,596 INFO MakeGlAccountPostings finished.

2026-04-04 13:55:03,596 INFO MakeCreditMemoRequest called...

2026-04-04 13:55:03,737 INFO MakeCreditMemoRequest finished.

2026-04-04 13:55:03,752 INFO ScheduleDigitalInvoice finished.

2026-04-04 14:00:03,847 INFO ScheduleDigitalInvoice called...

2026-04-04 14:00:04,034 INFO MakeGlAccountPostings called...

2026-04-04 14:00:04,159 INFO MakeGlAccountPostings finished.

2026-04-04 14:00:04,159 INFO MakeCreditMemoRequest called...

2026-04-04 14:00:04,316 INFO MakeCreditMemoRequest finished.

2026-04-04 14:00:04,316 INFO ScheduleDigitalInvoice finished.

2026-04-04 14:05:03,497 INFO ScheduleDigitalInvoice called...

2026-04-04 14:05:03,685 INFO MakeGlAccountPostings called...

2026-04-04 14:05:03,810 INFO MakeGlAccountPostings finished.

2026-04-04 14:05:03,826 INFO MakeCreditMemoRequest called...

2026-04-04 14:05:03,966 INFO MakeCreditMemoRequest finished.

2026-04-04 14:05:03,966 INFO ScheduleDigitalInvoice finished.

2026-04-04 14:10:03,451 INFO ScheduleDigitalInvoice called...

2026-04-04 14:10:03,607 INFO MakeGlAccountPostings called...

2026-04-04 14:10:03,732 INFO MakeGlAccountPostings finished.

2026-04-04 14:10:03,748 INFO MakeCreditMemoRequest called...

2026-04-04 14:10:03,904 INFO MakeCreditMemoRequest finished.

2026-04-04 14:10:03,904 INFO ScheduleDigitalInvoice finished.

2026-04-04 14:15:03,830 INFO ScheduleDigitalInvoice called...

2026-04-04 14:15:04,002 INFO MakeGlAccountPostings called...

2026-04-04 14:15:04,142 INFO MakeGlAccountPostings finished.

2026-04-04 14:15:04,158 INFO MakeCreditMemoRequest called...

2026-04-04 14:15:04,299 INFO MakeCreditMemoRequest finished.

2026-04-04 14:15:04,314 INFO ScheduleDigitalInvoice finished.

2026-04-04 14:20:03,308 INFO ScheduleDigitalInvoice called...

2026-04-04 14:20:03,495 INFO MakeGlAccountPostings called...

2026-04-04 14:20:03,667 INFO MakeGlAccountPostings finished.

2026-04-04 14:20:03,683 INFO MakeCreditMemoRequest called...

2026-04-04 14:20:03,824 INFO MakeCreditMemoRequest finished.

2026-04-04 14:20:03,824 INFO ScheduleDigitalInvoice finished.

2026-04-04 14:25:03,512 INFO ScheduleDigitalInvoice called...

2026-04-04 14:25:03,684 INFO MakeGlAccountPostings called...

2026-04-04 14:25:03,825 INFO MakeGlAccountPostings finished.

2026-04-04 14:25:03,840 INFO MakeCreditMemoRequest called...

2026-04-04 14:25:03,966 INFO MakeCreditMemoRequest finished.

2026-04-04 14:25:03,981 INFO ScheduleDigitalInvoice finished.

2026-04-04 14:30:03,797 INFO ScheduleDigitalInvoice called...

2026-04-04 14:30:03,954 INFO MakeGlAccountPostings called...

2026-04-04 14:30:04,110 INFO MakeGlAccountPostings finished.

2026-04-04 14:30:04,126 INFO MakeCreditMemoRequest called...

2026-04-04 14:30:04,266 INFO MakeCreditMemoRequest finished.

2026-04-04 14:30:04,282 INFO ScheduleDigitalInvoice finished.

2026-04-04 14:35:03,510 INFO ScheduleDigitalInvoice called...

2026-04-04 14:35:03,666 INFO MakeGlAccountPostings called...

2026-04-04 14:35:03,791 INFO MakeGlAccountPostings finished.

2026-04-04 14:35:03,791 INFO MakeCreditMemoRequest called...

2026-04-04 14:35:03,932 INFO MakeCreditMemoRequest finished.

2026-04-04 14:35:03,947 INFO ScheduleDigitalInvoice finished.

2026-04-04 14:40:03,318 INFO ScheduleDigitalInvoice called...

2026-04-04 14:40:03,490 INFO MakeGlAccountPostings called...

2026-04-04 14:40:03,599 INFO MakeGlAccountPostings finished.

2026-04-04 14:40:03,599 INFO MakeCreditMemoRequest called...

2026-04-04 14:40:03,740 INFO MakeCreditMemoRequest finished.

2026-04-04 14:40:03,755 INFO ScheduleDigitalInvoice finished.

2026-04-04 14:45:03,843 INFO ScheduleDigitalInvoice called...

2026-04-04 14:45:04,015 INFO MakeGlAccountPostings called...

2026-04-04 14:45:04,203 INFO MakeGlAccountPostings finished.

2026-04-04 14:45:04,218 INFO MakeCreditMemoRequest called...

2026-04-04 14:45:04,375 INFO MakeCreditMemoRequest finished.

2026-04-04 14:45:04,375 INFO ScheduleDigitalInvoice finished.

2026-04-04 14:50:03,254 INFO ScheduleDigitalInvoice called...

2026-04-04 14:50:03,442 INFO MakeGlAccountPostings called...

2026-04-04 14:50:03,598 INFO MakeGlAccountPostings finished.

2026-04-04 14:50:03,614 INFO MakeCreditMemoRequest called...

2026-04-04 14:50:03,770 INFO MakeCreditMemoRequest finished.

2026-04-04 14:50:03,770 INFO ScheduleDigitalInvoice finished.

2026-04-04 14:55:03,530 INFO ScheduleDigitalInvoice called...

2026-04-04 14:55:03,717 INFO MakeGlAccountPostings called...

2026-04-04 14:55:03,858 INFO MakeGlAccountPostings finished.

2026-04-04 14:55:03,858 INFO MakeCreditMemoRequest called...

2026-04-04 14:55:03,999 INFO MakeCreditMemoRequest finished.

2026-04-04 14:55:04,014 INFO ScheduleDigitalInvoice finished.

2026-04-04 15:00:03,816 INFO ScheduleDigitalInvoice called...

2026-04-04 15:00:04,003 INFO MakeGlAccountPostings called...

2026-04-04 15:00:04,175 INFO MakeGlAccountPostings finished.

2026-04-04 15:00:04,191 INFO MakeCreditMemoRequest called...

2026-04-04 15:00:04,331 INFO MakeCreditMemoRequest finished.

2026-04-04 15:00:04,347 INFO ScheduleDigitalInvoice finished.

2026-04-04 15:05:03,519 INFO ScheduleDigitalInvoice called...

2026-04-04 15:05:03,691 INFO MakeGlAccountPostings called...

2026-04-04 15:05:03,863 INFO MakeGlAccountPostings finished.

2026-04-04 15:05:03,863 INFO MakeCreditMemoRequest called...

2026-04-04 15:05:04,035 INFO MakeCreditMemoRequest finished.

2026-04-04 15:05:04,050 INFO ScheduleDigitalInvoice finished.

2026-04-04 15:10:03,298 INFO ScheduleDigitalInvoice called...

2026-04-04 15:10:03,470 INFO MakeGlAccountPostings called...

2026-04-04 15:10:03,642 INFO MakeGlAccountPostings finished.

2026-04-04 15:10:03,658 INFO MakeCreditMemoRequest called...

2026-04-04 15:10:03,814 INFO MakeCreditMemoRequest finished.

2026-04-04 15:10:03,814 INFO ScheduleDigitalInvoice finished.

2026-04-04 15:15:03,766 INFO ScheduleDigitalInvoice called...

2026-04-04 15:15:03,954 INFO MakeGlAccountPostings called...

2026-04-04 15:15:04,063 INFO MakeGlAccountPostings finished.

2026-04-04 15:15:04,079 INFO MakeCreditMemoRequest called...

2026-04-04 15:15:04,251 INFO MakeCreditMemoRequest finished.

2026-04-04 15:15:04,266 INFO ScheduleDigitalInvoice finished.

2026-04-04 15:20:03,722 INFO ScheduleDigitalInvoice called...

2026-04-04 15:20:03,894 INFO MakeGlAccountPostings called...

2026-04-04 15:20:04,035 INFO MakeGlAccountPostings finished.

2026-04-04 15:20:04,035 INFO MakeCreditMemoRequest called...

2026-04-04 15:20:04,207 INFO MakeCreditMemoRequest finished.

2026-04-04 15:20:04,222 INFO ScheduleDigitalInvoice finished.

2026-04-04 15:25:03,236 INFO ScheduleDigitalInvoice called...

2026-04-04 15:25:03,689 INFO MakeGlAccountPostings called...

2026-04-04 15:25:03,814 INFO MakeGlAccountPostings finished.

2026-04-04 15:25:03,814 INFO MakeCreditMemoRequest called...

2026-04-04 15:25:03,955 INFO MakeCreditMemoRequest finished.

2026-04-04 15:25:03,970 INFO ScheduleDigitalInvoice finished.

2026-04-04 15:30:03,825 INFO ScheduleDigitalInvoice called...

2026-04-04 15:30:03,997 INFO MakeGlAccountPostings called...

2026-04-04 15:30:04,122 INFO MakeGlAccountPostings finished.

2026-04-04 15:30:04,138 INFO MakeCreditMemoRequest called...

2026-04-04 15:30:04,294 INFO MakeCreditMemoRequest finished.

2026-04-04 15:30:04,310 INFO ScheduleDigitalInvoice finished.

2026-04-04 15:35:03,539 INFO ScheduleDigitalInvoice called...

2026-04-04 15:35:03,727 INFO MakeGlAccountPostings called...

2026-04-04 15:35:03,867 INFO MakeGlAccountPostings finished.

2026-04-04 15:35:03,883 INFO MakeCreditMemoRequest called...

2026-04-04 15:35:04,024 INFO MakeCreditMemoRequest finished.

2026-04-04 15:35:04,039 INFO ScheduleDigitalInvoice finished.

2026-04-04 15:40:03,296 INFO ScheduleDigitalInvoice called...

2026-04-04 15:40:03,468 INFO MakeGlAccountPostings called...

2026-04-04 15:40:03,593 INFO MakeGlAccountPostings finished.

2026-04-04 15:40:03,609 INFO MakeCreditMemoRequest called...

2026-04-04 15:40:03,734 INFO MakeCreditMemoRequest finished.

2026-04-04 15:40:03,749 INFO ScheduleDigitalInvoice finished.

2026-04-04 15:45:04,115 INFO ScheduleDigitalInvoice called...

2026-04-04 15:45:04,302 INFO MakeGlAccountPostings called...

2026-04-04 15:45:04,427 INFO MakeGlAccountPostings finished.

2026-04-04 15:45:04,458 INFO MakeCreditMemoRequest called...

2026-04-04 15:45:04,599 INFO MakeCreditMemoRequest finished.

2026-04-04 15:45:04,599 INFO ScheduleDigitalInvoice finished.

2026-04-04 15:50:03,283 INFO ScheduleDigitalInvoice called...

2026-04-04 15:50:03,439 INFO MakeGlAccountPostings called...

2026-04-04 15:50:03,564 INFO MakeGlAccountPostings finished.

2026-04-04 15:50:03,580 INFO MakeCreditMemoRequest called...

2026-04-04 15:50:03,721 INFO MakeCreditMemoRequest finished.

2026-04-04 15:50:03,721 INFO ScheduleDigitalInvoice finished.

2026-04-04 15:55:03,254 INFO ScheduleDigitalInvoice called...

2026-04-04 15:55:03,411 INFO MakeGlAccountPostings called...

2026-04-04 15:55:03,520 INFO MakeGlAccountPostings finished.

2026-04-04 15:55:03,520 INFO MakeCreditMemoRequest called...

2026-04-04 15:55:03,676 INFO MakeCreditMemoRequest finished.

2026-04-04 15:55:03,692 INFO ScheduleDigitalInvoice finished.

2026-04-04 16:00:04,122 INFO ScheduleDigitalInvoice called...

2026-04-04 16:00:04,325 INFO MakeGlAccountPostings called...

2026-04-04 16:00:04,482 INFO MakeGlAccountPostings finished.

2026-04-04 16:00:04,497 INFO MakeCreditMemoRequest called...

2026-04-04 16:00:04,638 INFO MakeCreditMemoRequest finished.

2026-04-04 16:00:04,638 INFO ScheduleDigitalInvoice finished.

2026-04-04 16:05:03,347 INFO ScheduleDigitalInvoice called...

2026-04-04 16:05:04,209 INFO MakeGlAccountPostings called...

2026-04-04 16:05:04,366 INFO MakeGlAccountPostings finished.

2026-04-04 16:05:04,381 INFO MakeCreditMemoRequest called...

2026-04-04 16:05:04,694 INFO MakeCreditMemoRequest finished.

2026-04-04 16:05:04,709 INFO ScheduleDigitalInvoice finished.

2026-04-04 16:10:03,521 INFO ScheduleDigitalInvoice called...

2026-04-04 16:10:03,693 INFO MakeGlAccountPostings called...

2026-04-04 16:10:03,818 INFO MakeGlAccountPostings finished.

2026-04-04 16:10:03,818 INFO MakeCreditMemoRequest called...

2026-04-04 16:10:03,959 INFO MakeCreditMemoRequest finished.

2026-04-04 16:10:03,959 INFO ScheduleDigitalInvoice finished.

2026-04-04 16:15:03,808 INFO ScheduleDigitalInvoice called...

2026-04-04 16:15:04,011 INFO MakeGlAccountPostings called...

2026-04-04 16:15:04,183 INFO MakeGlAccountPostings finished.

2026-04-04 16:15:04,199 INFO MakeCreditMemoRequest called...

2026-04-04 16:15:04,355 INFO MakeCreditMemoRequest finished.

2026-04-04 16:15:04,371 INFO ScheduleDigitalInvoice finished.

2026-04-04 16:20:03,315 INFO ScheduleDigitalInvoice called...

2026-04-04 16:20:03,472 INFO MakeGlAccountPostings called...

2026-04-04 16:20:03,628 INFO MakeGlAccountPostings finished.

2026-04-04 16:20:03,628 INFO MakeCreditMemoRequest called...

2026-04-04 16:20:03,987 INFO MakeCreditMemoRequest finished.

2026-04-04 16:20:03,987 INFO ScheduleDigitalInvoice finished.

2026-04-04 16:25:03,506 INFO ScheduleDigitalInvoice called...

2026-04-04 16:25:03,678 INFO MakeGlAccountPostings called...

2026-04-04 16:25:03,849 INFO MakeGlAccountPostings finished.

2026-04-04 16:25:03,849 INFO MakeCreditMemoRequest called...

2026-04-04 16:25:04,006 INFO MakeCreditMemoRequest finished.

2026-04-04 16:25:04,006 INFO ScheduleDigitalInvoice finished.

2026-04-04 16:30:03,835 INFO ScheduleDigitalInvoice called...

2026-04-04 16:30:04,023 INFO MakeGlAccountPostings called...

2026-04-04 16:30:04,132 INFO MakeGlAccountPostings finished.

2026-04-04 16:30:04,148 INFO MakeCreditMemoRequest called...

2026-04-04 16:30:04,320 INFO MakeCreditMemoRequest finished.

2026-04-04 16:30:04,335 INFO ScheduleDigitalInvoice finished.

2026-04-04 16:35:03,495 INFO ScheduleDigitalInvoice called...

2026-04-04 16:35:03,651 INFO MakeGlAccountPostings called...

2026-04-04 16:35:03,792 INFO MakeGlAccountPostings finished.

2026-04-04 16:35:03,792 INFO MakeCreditMemoRequest called...

2026-04-04 16:35:03,932 INFO MakeCreditMemoRequest finished.

2026-04-04 16:35:03,964 INFO ScheduleDigitalInvoice finished.

2026-04-04 16:40:03,233 INFO ScheduleDigitalInvoice called...

2026-04-04 16:40:03,389 INFO MakeGlAccountPostings called...

2026-04-04 16:40:03,514 INFO MakeGlAccountPostings finished.

2026-04-04 16:40:03,530 INFO MakeCreditMemoRequest called...

2026-04-04 16:40:03,670 INFO MakeCreditMemoRequest finished.

2026-04-04 16:40:03,717 INFO ScheduleDigitalInvoice finished.

2026-04-04 16:45:03,781 INFO ScheduleDigitalInvoice called...

2026-04-04 16:45:03,953 INFO MakeGlAccountPostings called...

2026-04-04 16:45:04,078 INFO MakeGlAccountPostings finished.

2026-04-04 16:45:04,093 INFO MakeCreditMemoRequest called...

2026-04-04 16:45:04,250 INFO MakeCreditMemoRequest finished.

2026-04-04 16:45:04,265 INFO ScheduleDigitalInvoice finished.

2026-04-04 16:50:03,500 INFO ScheduleDigitalInvoice called...

2026-04-04 16:50:03,657 INFO MakeGlAccountPostings called...

2026-04-04 16:50:03,766 INFO MakeGlAccountPostings finished.

2026-04-04 16:50:03,782 INFO MakeCreditMemoRequest called...

2026-04-04 16:50:03,938 INFO MakeCreditMemoRequest finished.

2026-04-04 16:50:03,938 INFO ScheduleDigitalInvoice finished.

2026-04-04 16:55:03,250 INFO ScheduleDigitalInvoice called...

2026-04-04 16:55:03,406 INFO MakeGlAccountPostings called...

2026-04-04 16:55:03,515 INFO MakeGlAccountPostings finished.

2026-04-04 16:55:03,531 INFO MakeCreditMemoRequest called...

2026-04-04 16:55:03,672 INFO MakeCreditMemoRequest finished.

2026-04-04 16:55:03,672 INFO ScheduleDigitalInvoice finished.

2026-04-04 17:00:03,807 INFO ScheduleDigitalInvoice called...

2026-04-04 17:00:04,010 INFO MakeGlAccountPostings called...

2026-04-04 17:00:04,150 INFO MakeGlAccountPostings finished.

2026-04-04 17:00:04,166 INFO MakeCreditMemoRequest called...

2026-04-04 17:00:04,353 INFO MakeCreditMemoRequest finished.

2026-04-04 17:00:04,353 INFO ScheduleDigitalInvoice finished.

2026-04-04 17:05:03,540 INFO ScheduleDigitalInvoice called...

2026-04-04 17:05:03,712 INFO MakeGlAccountPostings called...

2026-04-04 17:05:03,884 INFO MakeGlAccountPostings finished.

2026-04-04 17:05:03,899 INFO MakeCreditMemoRequest called...

2026-04-04 17:05:04,056 INFO MakeCreditMemoRequest finished.

2026-04-04 17:05:04,056 INFO ScheduleDigitalInvoice finished.

2026-04-04 17:10:03,272 INFO ScheduleDigitalInvoice called...

2026-04-04 17:10:03,460 INFO MakeGlAccountPostings called...

2026-04-04 17:10:03,600 INFO MakeGlAccountPostings finished.

2026-04-04 17:10:03,616 INFO MakeCreditMemoRequest called...

2026-04-04 17:10:03,772 INFO MakeCreditMemoRequest finished.

2026-04-04 17:10:03,772 INFO ScheduleDigitalInvoice finished.

2026-04-04 17:15:04,009 INFO ScheduleDigitalInvoice called...

2026-04-04 17:15:04,181 INFO MakeGlAccountPostings called...

2026-04-04 17:15:04,368 INFO MakeGlAccountPostings finished.

2026-04-04 17:15:04,384 INFO MakeCreditMemoRequest called...

2026-04-04 17:15:04,524 INFO MakeCreditMemoRequest finished.

2026-04-04 17:15:04,540 INFO ScheduleDigitalInvoice finished.

2026-04-04 17:20:03,247 INFO ScheduleDigitalInvoice called...

2026-04-04 17:20:03,419 INFO MakeGlAccountPostings called...

2026-04-04 17:20:03,529 INFO MakeGlAccountPostings finished.

2026-04-04 17:20:03,544 INFO MakeCreditMemoRequest called...

2026-04-04 17:20:03,701 INFO MakeCreditMemoRequest finished.

2026-04-04 17:20:03,716 INFO ScheduleDigitalInvoice finished.

2026-04-04 17:25:03,223 INFO ScheduleDigitalInvoice called...

2026-04-04 17:25:03,380 INFO MakeGlAccountPostings called...

2026-04-04 17:25:03,520 INFO MakeGlAccountPostings finished.

2026-04-04 17:25:03,536 INFO MakeCreditMemoRequest called...

2026-04-04 17:25:03,677 INFO MakeCreditMemoRequest finished.

2026-04-04 17:25:03,677 INFO ScheduleDigitalInvoice finished.

2026-04-04 17:30:04,084 INFO ScheduleDigitalInvoice called...

2026-04-04 17:30:04,255 INFO MakeGlAccountPostings called...

2026-04-04 17:30:04,396 INFO MakeGlAccountPostings finished.

2026-04-04 17:30:04,412 INFO MakeCreditMemoRequest called...

2026-04-04 17:30:04,568 INFO MakeCreditMemoRequest finished.

2026-04-04 17:30:04,568 INFO ScheduleDigitalInvoice finished.

2026-04-04 17:35:03,382 INFO ScheduleDigitalInvoice called...

2026-04-04 17:35:03,523 INFO MakeGlAccountPostings called...

2026-04-04 17:35:03,679 INFO MakeGlAccountPostings finished.

2026-04-04 17:35:03,679 INFO MakeCreditMemoRequest called...

2026-04-04 17:35:03,835 INFO MakeCreditMemoRequest finished.

2026-04-04 17:35:03,835 INFO ScheduleDigitalInvoice finished.

2026-04-04 17:40:03,283 INFO ScheduleDigitalInvoice called...

2026-04-04 17:40:03,470 INFO MakeGlAccountPostings called...

2026-04-04 17:40:03,642 INFO MakeGlAccountPostings finished.

2026-04-04 17:40:03,658 INFO MakeCreditMemoRequest called...

2026-04-04 17:40:03,814 INFO MakeCreditMemoRequest finished.

2026-04-04 17:40:03,814 INFO ScheduleDigitalInvoice finished.

2026-04-04 17:45:04,203 INFO ScheduleDigitalInvoice called...

2026-04-04 17:45:04,406 INFO MakeGlAccountPostings called...

2026-04-04 17:45:04,531 INFO MakeGlAccountPostings finished.

2026-04-04 17:45:04,547 INFO MakeCreditMemoRequest called...

2026-04-04 17:45:04,688 INFO MakeCreditMemoRequest finished.

2026-04-04 17:45:04,688 INFO ScheduleDigitalInvoice finished.

2026-04-04 17:50:03,290 INFO ScheduleDigitalInvoice called...

2026-04-04 17:50:03,493 INFO MakeGlAccountPostings called...

2026-04-04 17:50:03,650 INFO MakeGlAccountPostings finished.

2026-04-04 17:50:03,665 INFO MakeCreditMemoRequest called...

2026-04-04 17:50:03,790 INFO MakeCreditMemoRequest finished.

2026-04-04 17:50:03,806 INFO ScheduleDigitalInvoice finished.

2026-04-04 17:55:03,458 INFO ScheduleDigitalInvoice called...

2026-04-04 17:55:03,646 INFO MakeGlAccountPostings called...

2026-04-04 17:55:03,771 INFO MakeGlAccountPostings finished.

2026-04-04 17:55:03,802 INFO MakeCreditMemoRequest called...

2026-04-04 17:55:03,943 INFO MakeCreditMemoRequest finished.

2026-04-04 17:55:03,943 INFO ScheduleDigitalInvoice finished.

2026-04-04 18:00:03,795 INFO ScheduleDigitalInvoice called...

2026-04-04 18:00:03,998 INFO MakeGlAccountPostings called...

2026-04-04 18:00:04,108 INFO MakeGlAccountPostings finished.

2026-04-04 18:00:04,123 INFO MakeCreditMemoRequest called...

2026-04-04 18:00:04,280 INFO MakeCreditMemoRequest finished.

2026-04-04 18:00:04,280 INFO ScheduleDigitalInvoice finished.

2026-04-04 18:05:03,224 INFO ScheduleDigitalInvoice called...

2026-04-04 18:05:03,380 INFO MakeGlAccountPostings called...

2026-04-04 18:05:03,505 INFO MakeGlAccountPostings finished.

2026-04-04 18:05:03,521 INFO MakeCreditMemoRequest called...

2026-04-04 18:05:03,677 INFO MakeCreditMemoRequest finished.

2026-04-04 18:05:03,677 INFO ScheduleDigitalInvoice finished.

2026-04-04 18:10:03,252 INFO ScheduleDigitalInvoice called...

2026-04-04 18:10:03,565 INFO MakeGlAccountPostings called...

2026-04-04 18:10:03,721 INFO MakeGlAccountPostings finished.

2026-04-04 18:10:03,721 INFO MakeCreditMemoRequest called...

2026-04-04 18:10:03,877 INFO MakeCreditMemoRequest finished.

2026-04-04 18:10:03,877 INFO ScheduleDigitalInvoice finished.

2026-04-04 18:15:04,034 INFO ScheduleDigitalInvoice called...

2026-04-04 18:15:05,066 INFO MakeGlAccountPostings called...

2026-04-04 18:15:05,254 INFO MakeGlAccountPostings finished.

2026-04-04 18:15:05,269 INFO MakeCreditMemoRequest called...

2026-04-04 18:15:05,425 INFO MakeCreditMemoRequest finished.

2026-04-04 18:15:05,441 INFO ScheduleDigitalInvoice finished.

2026-04-04 18:20:03,466 INFO ScheduleDigitalInvoice called...

2026-04-04 18:20:03,654 INFO MakeGlAccountPostings called...

2026-04-04 18:20:03,763 INFO MakeGlAccountPostings finished.

2026-04-04 18:20:03,779 INFO MakeCreditMemoRequest called...

2026-04-04 18:20:03,951 INFO MakeCreditMemoRequest finished.

2026-04-04 18:20:03,951 INFO ScheduleDigitalInvoice finished.

2026-04-04 18:25:03,227 INFO ScheduleDigitalInvoice called...

2026-04-04 18:25:03,383 INFO MakeGlAccountPostings called...

2026-04-04 18:25:03,508 INFO MakeGlAccountPostings finished.

2026-04-04 18:25:03,508 INFO MakeCreditMemoRequest called...

2026-04-04 18:25:03,649 INFO MakeCreditMemoRequest finished.

2026-04-04 18:25:03,664 INFO ScheduleDigitalInvoice finished.

2026-04-04 18:30:03,798 INFO ScheduleDigitalInvoice called...

2026-04-04 18:30:03,986 INFO MakeGlAccountPostings called...

2026-04-04 18:30:04,142 INFO MakeGlAccountPostings finished.

2026-04-04 18:30:04,142 INFO MakeCreditMemoRequest called...

2026-04-04 18:30:04,282 INFO MakeCreditMemoRequest finished.

2026-04-04 18:30:04,298 INFO ScheduleDigitalInvoice finished.

2026-04-04 18:35:03,262 INFO ScheduleDigitalInvoice called...

2026-04-04 18:35:03,418 INFO MakeGlAccountPostings called...

2026-04-04 18:35:03,558 INFO MakeGlAccountPostings finished.

2026-04-04 18:35:03,558 INFO MakeCreditMemoRequest called...

2026-04-04 18:35:03,699 INFO MakeCreditMemoRequest finished.

2026-04-04 18:35:03,715 INFO ScheduleDigitalInvoice finished.

2026-04-04 18:40:03,532 INFO ScheduleDigitalInvoice called...

2026-04-04 18:40:03,735 INFO MakeGlAccountPostings called...

2026-04-04 18:40:03,891 INFO MakeGlAccountPostings finished.

2026-04-04 18:40:03,891 INFO MakeCreditMemoRequest called...

2026-04-04 18:40:04,032 INFO MakeCreditMemoRequest finished.

2026-04-04 18:40:04,048 INFO ScheduleDigitalInvoice finished.

2026-04-04 18:45:03,975 INFO ScheduleDigitalInvoice called...

2026-04-04 18:45:04,163 INFO MakeGlAccountPostings called...

2026-04-04 18:45:04,304 INFO MakeGlAccountPostings finished.

2026-04-04 18:45:04,304 INFO MakeCreditMemoRequest called...

2026-04-04 18:45:04,491 INFO MakeCreditMemoRequest finished.

2026-04-04 18:45:04,491 INFO ScheduleDigitalInvoice finished.

2026-04-04 18:50:03,256 INFO ScheduleDigitalInvoice called...

2026-04-04 18:50:03,428 INFO MakeGlAccountPostings called...

2026-04-04 18:50:03,537 INFO MakeGlAccountPostings finished.

2026-04-04 18:50:03,553 INFO MakeCreditMemoRequest called...

2026-04-04 18:50:03,693 INFO MakeCreditMemoRequest finished.

2026-04-04 18:50:03,709 INFO ScheduleDigitalInvoice finished.

2026-04-04 18:55:03,343 INFO ScheduleDigitalInvoice called...

2026-04-04 18:55:03,515 INFO MakeGlAccountPostings called...

2026-04-04 18:55:03,656 INFO MakeGlAccountPostings finished.

2026-04-04 18:55:03,656 INFO MakeCreditMemoRequest called...

2026-04-04 18:55:03,797 INFO MakeCreditMemoRequest finished.

2026-04-04 18:55:03,797 INFO ScheduleDigitalInvoice finished.

2026-04-04 19:00:04,034 INFO ScheduleDigitalInvoice called...

2026-04-04 19:00:04,221 INFO MakeGlAccountPostings called...

2026-04-04 19:00:04,346 INFO MakeGlAccountPostings finished.

2026-04-04 19:00:04,362 INFO MakeCreditMemoRequest called...

2026-04-04 19:00:04,565 INFO MakeCreditMemoRequest finished.

2026-04-04 19:00:04,580 INFO ScheduleDigitalInvoice finished.

2026-04-04 19:05:03,239 INFO ScheduleDigitalInvoice called...

2026-04-04 19:05:49,514 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 19:05:49,530 INFO ScheduleDigitalInvoice finished.

2026-04-04 19:10:03,494 INFO ScheduleDigitalInvoice called...

2026-04-04 19:10:49,787 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 19:10:49,803 INFO ScheduleDigitalInvoice finished.

2026-04-04 19:15:03,764 INFO ScheduleDigitalInvoice called...

2026-04-04 19:15:50,021 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 19:15:50,037 INFO ScheduleDigitalInvoice finished.

2026-04-04 19:20:03,306 INFO ScheduleDigitalInvoice called...

2026-04-04 19:20:49,595 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 19:20:49,610 INFO ScheduleDigitalInvoice finished.

2026-04-04 19:25:03,484 INFO ScheduleDigitalInvoice called...

2026-04-04 19:25:49,775 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 19:25:49,791 INFO ScheduleDigitalInvoice finished.

2026-04-04 19:30:03,847 INFO ScheduleDigitalInvoice called...

2026-04-04 19:30:50,125 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 19:30:50,141 INFO ScheduleDigitalInvoice finished.

2026-04-04 19:35:03,243 INFO ScheduleDigitalInvoice called...

2026-04-04 19:35:49,497 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 19:35:49,513 INFO ScheduleDigitalInvoice finished.

2026-04-04 19:40:03,585 INFO ScheduleDigitalInvoice called...

2026-04-04 19:40:49,869 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 19:40:49,884 INFO ScheduleDigitalInvoice finished.

2026-04-04 19:45:03,756 INFO ScheduleDigitalInvoice called...

2026-04-04 19:45:50,020 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 19:45:50,036 INFO ScheduleDigitalInvoice finished.

2026-04-04 19:50:03,230 INFO ScheduleDigitalInvoice called...

2026-04-04 19:50:49,514 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 19:50:49,530 INFO ScheduleDigitalInvoice finished.

2026-04-04 19:55:03,541 INFO ScheduleDigitalInvoice called...

2026-04-04 19:55:49,813 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 19:55:49,829 INFO ScheduleDigitalInvoice finished.

2026-04-04 20:00:03,897 INFO ScheduleDigitalInvoice called...

2026-04-04 20:00:50,180 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 20:00:50,195 INFO ScheduleDigitalInvoice finished.

2026-04-04 20:05:03,661 INFO ScheduleDigitalInvoice called...

2026-04-04 20:05:49,933 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 20:05:49,949 INFO ScheduleDigitalInvoice finished.

2026-04-04 20:10:03,259 INFO ScheduleDigitalInvoice called...

2026-04-04 20:10:49,523 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 20:10:49,539 INFO ScheduleDigitalInvoice finished.

2026-04-04 20:15:03,773 INFO ScheduleDigitalInvoice called...

2026-04-04 20:15:50,064 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 20:15:50,079 INFO ScheduleDigitalInvoice finished.

2026-04-04 20:20:03,505 INFO ScheduleDigitalInvoice called...

2026-04-04 20:20:49,789 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 20:20:49,805 INFO ScheduleDigitalInvoice finished.

2026-04-04 20:25:03,249 INFO ScheduleDigitalInvoice called...

2026-04-04 20:25:49,536 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 20:25:49,551 INFO ScheduleDigitalInvoice finished.

2026-04-04 20:30:03,806 INFO ScheduleDigitalInvoice called...

2026-04-04 20:30:50,085 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 20:30:50,100 INFO ScheduleDigitalInvoice finished.

2026-04-04 20:35:03,722 INFO ScheduleDigitalInvoice called...

2026-04-04 20:35:49,988 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 20:35:50,003 INFO ScheduleDigitalInvoice finished.

2026-04-04 20:40:03,244 INFO ScheduleDigitalInvoice called...

2026-04-04 20:40:49,525 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 20:40:49,540 INFO ScheduleDigitalInvoice finished.

2026-04-04 20:45:03,992 INFO ScheduleDigitalInvoice called...

2026-04-04 20:45:50,293 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 20:45:50,308 INFO ScheduleDigitalInvoice finished.

2026-04-04 20:50:03,299 INFO ScheduleDigitalInvoice called...

2026-04-04 20:50:49,568 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 20:50:49,599 INFO ScheduleDigitalInvoice finished.

2026-04-04 20:55:03,227 INFO ScheduleDigitalInvoice called...

2026-04-04 20:55:49,507 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 20:55:49,523 INFO ScheduleDigitalInvoice finished.

2026-04-04 21:00:03,843 INFO ScheduleDigitalInvoice called...

2026-04-04 21:00:50,124 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 21:00:50,139 INFO ScheduleDigitalInvoice finished.

2026-04-04 21:05:03,501 INFO ScheduleDigitalInvoice called...

2026-04-04 21:05:49,814 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 21:05:49,829 INFO ScheduleDigitalInvoice finished.

2026-04-04 21:10:03,286 INFO ScheduleDigitalInvoice called...

2026-04-04 21:10:49,561 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 21:10:49,577 INFO ScheduleDigitalInvoice finished.

2026-04-04 21:15:04,011 INFO ScheduleDigitalInvoice called...

2026-04-04 21:15:50,294 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 21:15:50,310 INFO ScheduleDigitalInvoice finished.

2026-04-04 21:20:03,281 INFO ScheduleDigitalInvoice called...

2026-04-04 21:20:49,549 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 21:20:49,565 INFO ScheduleDigitalInvoice finished.

2026-04-04 21:25:03,265 INFO ScheduleDigitalInvoice called...

2026-04-04 21:25:49,532 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 21:25:49,548 INFO ScheduleDigitalInvoice finished.

2026-04-04 21:30:04,133 INFO ScheduleDigitalInvoice called...

2026-04-04 21:30:50,406 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 21:30:50,422 INFO ScheduleDigitalInvoice finished.

2026-04-04 21:35:03,227 INFO ScheduleDigitalInvoice called...

2026-04-04 21:35:49,501 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 21:35:49,517 INFO ScheduleDigitalInvoice finished.

2026-04-04 21:40:03,509 INFO ScheduleDigitalInvoice called...

2026-04-04 21:40:49,792 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 21:40:49,807 INFO ScheduleDigitalInvoice finished.

2026-04-04 21:45:03,779 INFO ScheduleDigitalInvoice called...

2026-04-04 21:45:50,053 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 21:45:50,068 INFO ScheduleDigitalInvoice finished.

2026-04-04 21:50:03,246 INFO ScheduleDigitalInvoice called...

2026-04-04 21:50:49,538 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 21:50:49,553 INFO ScheduleDigitalInvoice finished.

2026-04-04 21:55:03,502 INFO ScheduleDigitalInvoice called...

2026-04-04 21:55:49,812 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 21:55:49,828 INFO ScheduleDigitalInvoice finished.

2026-04-04 22:00:03,804 INFO ScheduleDigitalInvoice called...

2026-04-04 22:00:50,109 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 22:00:50,125 INFO ScheduleDigitalInvoice finished.

2026-04-04 22:05:03,474 INFO ScheduleDigitalInvoice called...

2026-04-04 22:05:49,739 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 22:05:49,754 INFO ScheduleDigitalInvoice finished.

2026-04-04 22:10:03,292 INFO ScheduleDigitalInvoice called...

2026-04-04 22:10:49,573 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.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)

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-04-04 22:10:49,589 INFO ScheduleDigitalInvoice finished.