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

2026-03-30 00:00:35,034 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-03-30 00:00:35,080 INFO ScheduleDigitalInvoice finished.

2026-03-30 00:05:03,507 INFO ScheduleDigitalInvoice called...

2026-03-30 00:05:34,409 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-03-30 00:05:34,424 INFO ScheduleDigitalInvoice finished.

2026-03-30 00:10:03,562 INFO ScheduleDigitalInvoice called...

2026-03-30 00:10:34,489 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-03-30 00:10:34,489 INFO ScheduleDigitalInvoice finished.

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

2026-03-30 00:15:35,030 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-03-30 00:15:35,046 INFO ScheduleDigitalInvoice finished.

2026-03-30 00:20:03,856 INFO ScheduleDigitalInvoice called...

2026-03-30 00:20:34,758 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-03-30 00:20:34,773 INFO ScheduleDigitalInvoice finished.

2026-03-30 00:25:03,484 INFO ScheduleDigitalInvoice called...

2026-03-30 00:25:34,403 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-03-30 00:25:34,418 INFO ScheduleDigitalInvoice finished.

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

2026-03-30 00:30:35,080 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-03-30 00:30:35,096 INFO ScheduleDigitalInvoice finished.

2026-03-30 00:35:03,614 INFO ScheduleDigitalInvoice called...

2026-03-30 00:35:34,518 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-03-30 00:35:34,518 INFO ScheduleDigitalInvoice finished.

2026-03-30 00:40:03,466 INFO ScheduleDigitalInvoice called...

2026-03-30 00:40:34,377 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-03-30 00:40:34,377 INFO ScheduleDigitalInvoice finished.

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

2026-03-30 00:45:35,150 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-03-30 00:45:35,150 INFO ScheduleDigitalInvoice finished.

2026-03-30 00:50:03,522 INFO ScheduleDigitalInvoice called...

2026-03-30 00:50: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-03-30 00:50:34,423 INFO ScheduleDigitalInvoice finished.

2026-03-30 00:55:03,496 INFO ScheduleDigitalInvoice called...

2026-03-30 00:55:34,381 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-03-30 00:55:34,381 INFO ScheduleDigitalInvoice finished.

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

2026-03-30 01:00:35,526 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-03-30 01:00:35,542 INFO ScheduleDigitalInvoice finished.

2026-03-30 01:05:03,463 INFO ScheduleDigitalInvoice called...

2026-03-30 01:05:34,332 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-03-30 01:05:34,348 INFO ScheduleDigitalInvoice finished.

2026-03-30 01:10:03,520 INFO ScheduleDigitalInvoice called...

2026-03-30 01:10:34,447 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-03-30 01:10:34,447 INFO ScheduleDigitalInvoice finished.

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

2026-03-30 01:15:35,009 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-03-30 01:15:35,024 INFO ScheduleDigitalInvoice finished.

2026-03-30 01:20:03,562 INFO ScheduleDigitalInvoice called...

2026-03-30 01:20:34,484 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-03-30 01:20:34,484 INFO ScheduleDigitalInvoice finished.

2026-03-30 01:25:03,741 INFO ScheduleDigitalInvoice called...

2026-03-30 01:25:34,640 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-03-30 01:25:34,640 INFO ScheduleDigitalInvoice finished.

2026-03-30 01:30:04,447 INFO ScheduleDigitalInvoice called...

2026-03-30 01:30:35,361 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-03-30 01:30:35,361 INFO ScheduleDigitalInvoice finished.

2026-03-30 01:35:03,635 INFO ScheduleDigitalInvoice called...

2026-03-30 01:35:34,524 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-03-30 01:35:34,524 INFO ScheduleDigitalInvoice finished.

2026-03-30 01:40:03,402 INFO ScheduleDigitalInvoice called...

2026-03-30 01:40:34,330 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-03-30 01:40:34,330 INFO ScheduleDigitalInvoice finished.

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

2026-03-30 01:45:34,995 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-03-30 01:45:35,011 INFO ScheduleDigitalInvoice finished.

2026-03-30 01:50:03,626 INFO ScheduleDigitalInvoice called...

2026-03-30 01:50:34,521 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-03-30 01:50:34,537 INFO ScheduleDigitalInvoice finished.

2026-03-30 01:55:03,792 INFO ScheduleDigitalInvoice called...

2026-03-30 01:55:34,686 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-03-30 01:55:34,701 INFO ScheduleDigitalInvoice finished.

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

2026-03-30 02:00:35,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.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-03-30 02:00:35,539 INFO ScheduleDigitalInvoice finished.

2026-03-30 02:05:03,485 INFO ScheduleDigitalInvoice called...

2026-03-30 02:05:34,352 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-03-30 02:05:34,367 INFO ScheduleDigitalInvoice finished.

2026-03-30 02:10:03,384 INFO ScheduleDigitalInvoice called...

2026-03-30 02:10:34,279 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-03-30 02:10:34,279 INFO ScheduleDigitalInvoice finished.

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

2026-03-30 02:15:34,941 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-03-30 02:15:34,941 INFO ScheduleDigitalInvoice finished.

2026-03-30 02:20:03,410 INFO ScheduleDigitalInvoice called...

2026-03-30 02:20:34,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.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-03-30 02:20:34,309 INFO ScheduleDigitalInvoice finished.

2026-03-30 02:25:03,670 INFO ScheduleDigitalInvoice called...

2026-03-30 02:25:34,528 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-03-30 02:25:34,544 INFO ScheduleDigitalInvoice finished.

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

2026-03-30 02:30:35,716 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-03-30 02:30:35,731 INFO ScheduleDigitalInvoice finished.

2026-03-30 02:35:03,509 INFO ScheduleDigitalInvoice called...

2026-03-30 02:35:34,412 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-03-30 02:35:34,412 INFO ScheduleDigitalInvoice finished.

2026-03-30 02:40:03,515 INFO ScheduleDigitalInvoice called...

2026-03-30 02:40:34,401 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-03-30 02:40:34,417 INFO ScheduleDigitalInvoice finished.

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

2026-03-30 02:45:35,137 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-03-30 02:45:35,152 INFO ScheduleDigitalInvoice finished.

2026-03-30 02:50:03,583 INFO ScheduleDigitalInvoice called...

2026-03-30 02:50:34,500 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-03-30 02:50:34,500 INFO ScheduleDigitalInvoice finished.

2026-03-30 02:55:03,548 INFO ScheduleDigitalInvoice called...

2026-03-30 02:55:34,430 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-03-30 02:55:34,445 INFO ScheduleDigitalInvoice finished.

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

2026-03-30 03:00:35,044 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-03-30 03:00:35,044 INFO ScheduleDigitalInvoice finished.

2026-03-30 03:05:03,435 INFO ScheduleDigitalInvoice called...

2026-03-30 03:05:34,311 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-03-30 03:05:34,327 INFO ScheduleDigitalInvoice finished.

2026-03-30 03:10:03,406 INFO ScheduleDigitalInvoice called...

2026-03-30 03:10:34,274 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-03-30 03:10:34,274 INFO ScheduleDigitalInvoice finished.

2026-03-30 03:15:04,594 INFO ScheduleDigitalInvoice called...

2026-03-30 03:15:35,491 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-03-30 03:15:35,491 INFO ScheduleDigitalInvoice finished.

2026-03-30 03:20:03,616 INFO ScheduleDigitalInvoice called...

2026-03-30 03:20:34,511 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-03-30 03:20:34,526 INFO ScheduleDigitalInvoice finished.

2026-03-30 03:25:03,406 INFO ScheduleDigitalInvoice called...

2026-03-30 03:25:34,305 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-03-30 03:25:34,321 INFO ScheduleDigitalInvoice finished.

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

2026-03-30 03:30:35,295 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-03-30 03:30:35,295 INFO ScheduleDigitalInvoice finished.

2026-03-30 03:35:03,661 INFO ScheduleDigitalInvoice called...

2026-03-30 03:35:34,553 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-03-30 03:35:34,568 INFO ScheduleDigitalInvoice finished.

2026-03-30 03:40:03,401 INFO ScheduleDigitalInvoice called...

2026-03-30 03:40:34,267 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-03-30 03:40:34,298 INFO ScheduleDigitalInvoice finished.

2026-03-30 03:45:04,239 INFO ScheduleDigitalInvoice called...

2026-03-30 03:45:35,148 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-03-30 03:45:35,148 INFO ScheduleDigitalInvoice finished.

2026-03-30 03:50:03,640 INFO ScheduleDigitalInvoice called...

2026-03-30 03:50:34,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.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-03-30 03:50:34,552 INFO ScheduleDigitalInvoice finished.

2026-03-30 03:55:03,554 INFO ScheduleDigitalInvoice called...

2026-03-30 03:55:34,440 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-03-30 03:55:34,456 INFO ScheduleDigitalInvoice finished.

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

2026-03-30 04:00:35,675 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-03-30 04:00:35,675 INFO ScheduleDigitalInvoice finished.

2026-03-30 04:05:03,765 INFO ScheduleDigitalInvoice called...

2026-03-30 04:05:34,651 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-03-30 04:05:34,667 INFO ScheduleDigitalInvoice finished.

2026-03-30 04:10:03,511 INFO ScheduleDigitalInvoice called...

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

2026-03-30 04:15:04,106 INFO ScheduleDigitalInvoice called...

2026-03-30 04:15:35,009 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-03-30 04:15:35,028 INFO ScheduleDigitalInvoice finished.

2026-03-30 04:20:03,460 INFO ScheduleDigitalInvoice called...

2026-03-30 04:20:34,374 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-03-30 04:20:34,390 INFO ScheduleDigitalInvoice finished.

2026-03-30 04:25:03,682 INFO ScheduleDigitalInvoice called...

2026-03-30 04:25:34,585 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-03-30 04:25:34,601 INFO ScheduleDigitalInvoice finished.

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

2026-03-30 04:30:35,541 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-03-30 04:30:35,556 INFO ScheduleDigitalInvoice finished.

2026-03-30 04:35:03,468 INFO ScheduleDigitalInvoice called...

2026-03-30 04:35:34,352 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-03-30 04:35:34,368 INFO ScheduleDigitalInvoice finished.

2026-03-30 04:40:03,390 INFO ScheduleDigitalInvoice called...

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

2026-03-30 04:45:04,107 INFO ScheduleDigitalInvoice called...

2026-03-30 04:45:35,015 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-03-30 04:45:35,015 INFO ScheduleDigitalInvoice finished.

2026-03-30 04:50:03,597 INFO ScheduleDigitalInvoice called...

2026-03-30 04:50:34,491 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-03-30 04:50:34,507 INFO ScheduleDigitalInvoice finished.

2026-03-30 04:55:03,958 INFO ScheduleDigitalInvoice called...

2026-03-30 04:55:34,859 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-03-30 04:55:34,875 INFO ScheduleDigitalInvoice finished.

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

2026-03-30 05:00:35,117 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-03-30 05:00:35,132 INFO ScheduleDigitalInvoice finished.

2026-03-30 05:05:03,539 INFO ScheduleDigitalInvoice called...

2026-03-30 05:05:34,440 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-03-30 05:05:34,456 INFO ScheduleDigitalInvoice finished.

2026-03-30 05:10:03,543 INFO ScheduleDigitalInvoice called...

2026-03-30 05:10: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-03-30 05:10:34,448 INFO ScheduleDigitalInvoice finished.

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

2026-03-30 05:15:35,135 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-03-30 05:15:35,151 INFO ScheduleDigitalInvoice finished.

2026-03-30 05:20:03,511 INFO ScheduleDigitalInvoice called...

2026-03-30 05:20: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-03-30 05:20:34,431 INFO ScheduleDigitalInvoice finished.

2026-03-30 05:25:03,566 INFO ScheduleDigitalInvoice called...

2026-03-30 05:25: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-03-30 05:25:34,436 INFO ScheduleDigitalInvoice finished.

2026-03-30 05:30:04,296 INFO ScheduleDigitalInvoice called...

2026-03-30 05:30:35,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-03-30 05:30:35,195 INFO ScheduleDigitalInvoice finished.

2026-03-30 05:35:03,541 INFO ScheduleDigitalInvoice called...

2026-03-30 05:35:34,437 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-03-30 05:35:34,453 INFO ScheduleDigitalInvoice finished.

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

2026-03-30 05:40: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-03-30 05:40:34,994 INFO ScheduleDigitalInvoice finished.

2026-03-30 05:45:04,267 INFO ScheduleDigitalInvoice called...

2026-03-30 05:45:35,188 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-03-30 05:45:35,188 INFO ScheduleDigitalInvoice finished.

2026-03-30 05:50:03,428 INFO ScheduleDigitalInvoice called...

2026-03-30 05:50:34,346 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-03-30 05:50:34,346 INFO ScheduleDigitalInvoice finished.

2026-03-30 05:55:03,406 INFO ScheduleDigitalInvoice called...

2026-03-30 05:55:34,312 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-03-30 05:55:34,327 INFO ScheduleDigitalInvoice finished.

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

2026-03-30 06:00:35,464 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-03-30 06:00:35,480 INFO ScheduleDigitalInvoice finished.

2026-03-30 06:05:03,452 INFO ScheduleDigitalInvoice called...

2026-03-30 06:05:09,141 INFO MakeGlAccountPostings called...

2026-03-30 06:05:10,620 INFO MakeGlAccountPostings finished.

2026-03-30 06:05:10,620 INFO MakeCreditMemoRequest called...

2026-03-30 06:05:11,120 INFO MakeCreditMemoRequest finished.

2026-03-30 06:05:11,120 INFO ScheduleDigitalInvoice finished.

2026-03-30 06:10:03,560 INFO ScheduleDigitalInvoice called...

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

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

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

2026-03-30 06:10:04,596 INFO MakeCreditMemoRequest finished.

2026-03-30 06:10:04,612 INFO ScheduleDigitalInvoice finished.

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

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

2026-03-30 06:15:04,724 INFO MakeGlAccountPostings finished.

2026-03-30 06:15:04,724 INFO MakeCreditMemoRequest called...

2026-03-30 06:15:04,997 INFO MakeCreditMemoRequest finished.

2026-03-30 06:15:05,012 INFO ScheduleDigitalInvoice finished.

2026-03-30 06:20:03,502 INFO ScheduleDigitalInvoice called...

2026-03-30 06:20:03,689 INFO MakeGlAccountPostings called...

2026-03-30 06:20:03,846 INFO MakeGlAccountPostings finished.

2026-03-30 06:20:03,846 INFO MakeCreditMemoRequest called...

2026-03-30 06:20:04,086 INFO MakeCreditMemoRequest finished.

2026-03-30 06:20:04,086 INFO ScheduleDigitalInvoice finished.

2026-03-30 06:25:03,676 INFO ScheduleDigitalInvoice called...

2026-03-30 06:25:03,847 INFO MakeGlAccountPostings called...

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

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

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

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

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

2026-03-30 06:30:04,353 INFO MakeGlAccountPostings called...

2026-03-30 06:30:04,494 INFO MakeGlAccountPostings finished.

2026-03-30 06:30:04,494 INFO MakeCreditMemoRequest called...

2026-03-30 06:30:04,650 INFO MakeCreditMemoRequest finished.

2026-03-30 06:30:04,650 INFO ScheduleDigitalInvoice finished.

2026-03-30 06:35:03,592 INFO ScheduleDigitalInvoice called...

2026-03-30 06:35:03,795 INFO MakeGlAccountPostings called...

2026-03-30 06:35:03,936 INFO MakeGlAccountPostings finished.

2026-03-30 06:35:03,936 INFO MakeCreditMemoRequest called...

2026-03-30 06:35:04,092 INFO MakeCreditMemoRequest finished.

2026-03-30 06:35:04,092 INFO ScheduleDigitalInvoice finished.

2026-03-30 06:40:03,568 INFO ScheduleDigitalInvoice called...

2026-03-30 06:40:03,740 INFO MakeGlAccountPostings called...

2026-03-30 06:40:03,865 INFO MakeGlAccountPostings finished.

2026-03-30 06:40:03,865 INFO MakeCreditMemoRequest called...

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

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

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

2026-03-30 06:45:04,509 INFO MakeGlAccountPostings called...

2026-03-30 06:45:04,634 INFO MakeGlAccountPostings finished.

2026-03-30 06:45:04,634 INFO MakeCreditMemoRequest called...

2026-03-30 06:45:04,790 INFO MakeCreditMemoRequest finished.

2026-03-30 06:45:04,790 INFO ScheduleDigitalInvoice finished.

2026-03-30 06:50:03,554 INFO ScheduleDigitalInvoice called...

2026-03-30 06:50:03,758 INFO MakeGlAccountPostings called...

2026-03-30 06:50:03,883 INFO MakeGlAccountPostings finished.

2026-03-30 06:50:03,883 INFO MakeCreditMemoRequest called...

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

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

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

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

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

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

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

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

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

2026-03-30 07:00:04,500 INFO MakeGlAccountPostings called...

2026-03-30 07:00:04,625 INFO MakeGlAccountPostings finished.

2026-03-30 07:00:04,625 INFO MakeCreditMemoRequest called...

2026-03-30 07:00:04,796 INFO MakeCreditMemoRequest finished.

2026-03-30 07:00:04,796 INFO ScheduleDigitalInvoice finished.

2026-03-30 07:05:03,564 INFO ScheduleDigitalInvoice called...

2026-03-30 07:05:03,736 INFO MakeGlAccountPostings called...

2026-03-30 07:05:03,861 INFO MakeGlAccountPostings finished.

2026-03-30 07:05:03,861 INFO MakeCreditMemoRequest called...

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

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

2026-03-30 07:10:03,661 INFO ScheduleDigitalInvoice called...

2026-03-30 07:10:03,833 INFO MakeGlAccountPostings called...

2026-03-30 07:10:03,958 INFO MakeGlAccountPostings finished.

2026-03-30 07:10:03,958 INFO MakeCreditMemoRequest called...

2026-03-30 07:10:04,114 INFO MakeCreditMemoRequest finished.

2026-03-30 07:10:04,114 INFO ScheduleDigitalInvoice finished.

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

2026-03-30 07:15:04,453 INFO MakeGlAccountPostings called...

2026-03-30 07:15:04,594 INFO MakeGlAccountPostings finished.

2026-03-30 07:15:04,594 INFO MakeCreditMemoRequest called...

2026-03-30 07:15:04,766 INFO MakeCreditMemoRequest finished.

2026-03-30 07:15:04,766 INFO ScheduleDigitalInvoice finished.

2026-03-30 07:20:03,644 INFO ScheduleDigitalInvoice called...

2026-03-30 07:20:03,831 INFO MakeGlAccountPostings called...

2026-03-30 07:20:03,972 INFO MakeGlAccountPostings finished.

2026-03-30 07:20:03,972 INFO MakeCreditMemoRequest called...

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

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

2026-03-30 07:25:03,546 INFO ScheduleDigitalInvoice called...

2026-03-30 07:25:03,702 INFO MakeGlAccountPostings called...

2026-03-30 07:25:03,858 INFO MakeGlAccountPostings finished.

2026-03-30 07:25:03,858 INFO MakeCreditMemoRequest called...

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

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

2026-03-30 07:30:04,237 INFO ScheduleDigitalInvoice called...

2026-03-30 07:30:04,471 INFO MakeGlAccountPostings called...

2026-03-30 07:30:04,628 INFO MakeGlAccountPostings finished.

2026-03-30 07:30:04,628 INFO MakeCreditMemoRequest called...

2026-03-30 07:30:04,784 INFO MakeCreditMemoRequest finished.

2026-03-30 07:30:04,784 INFO ScheduleDigitalInvoice finished.

2026-03-30 07:35:03,727 INFO ScheduleDigitalInvoice called...

2026-03-30 07:35:03,899 INFO MakeGlAccountPostings called...

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

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

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

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

2026-03-30 07:40:03,543 INFO ScheduleDigitalInvoice called...

2026-03-30 07:40:03,715 INFO MakeGlAccountPostings called...

2026-03-30 07:40:03,965 INFO MakeGlAccountPostings finished.

2026-03-30 07:40:03,965 INFO MakeCreditMemoRequest called...

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

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

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

2026-03-30 07:45:04,859 INFO MakeGlAccountPostings called...

2026-03-30 07:45:04,999 INFO MakeGlAccountPostings finished.

2026-03-30 07:45:04,999 INFO MakeCreditMemoRequest called...

2026-03-30 07:45:05,171 INFO MakeCreditMemoRequest finished.

2026-03-30 07:45:05,171 INFO ScheduleDigitalInvoice finished.

2026-03-30 07:50:03,610 INFO ScheduleDigitalInvoice called...

2026-03-30 07:50:03,782 INFO MakeGlAccountPostings called...

2026-03-30 07:50:03,923 INFO MakeGlAccountPostings finished.

2026-03-30 07:50:03,923 INFO MakeCreditMemoRequest called...

2026-03-30 07:50:04,079 INFO MakeCreditMemoRequest finished.

2026-03-30 07:50:04,079 INFO ScheduleDigitalInvoice finished.

2026-03-30 07:55:03,575 INFO ScheduleDigitalInvoice called...

2026-03-30 07:55:03,763 INFO MakeGlAccountPostings called...

2026-03-30 07:55:03,919 INFO MakeGlAccountPostings finished.

2026-03-30 07:55:03,935 INFO MakeCreditMemoRequest called...

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

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

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

2026-03-30 08:00:04,359 INFO MakeGlAccountPostings called...

2026-03-30 08:00:04,484 INFO MakeGlAccountPostings finished.

2026-03-30 08:00:04,484 INFO MakeCreditMemoRequest called...

2026-03-30 08:00:04,656 INFO MakeCreditMemoRequest finished.

2026-03-30 08:00:04,656 INFO ScheduleDigitalInvoice finished.

2026-03-30 08:05:03,554 INFO ScheduleDigitalInvoice called...

2026-03-30 08:05:03,741 INFO MakeGlAccountPostings called...

2026-03-30 08:05:03,882 INFO MakeGlAccountPostings finished.

2026-03-30 08:05:03,897 INFO MakeCreditMemoRequest called...

2026-03-30 08:05:04,038 INFO MakeCreditMemoRequest finished.

2026-03-30 08:05:04,054 INFO ScheduleDigitalInvoice finished.

2026-03-30 08:10:03,551 INFO ScheduleDigitalInvoice called...

2026-03-30 08:10:03,708 INFO MakeGlAccountPostings called...

2026-03-30 08:10:03,833 INFO MakeGlAccountPostings finished.

2026-03-30 08:10:03,833 INFO MakeCreditMemoRequest called...

2026-03-30 08:10:03,989 INFO MakeCreditMemoRequest finished.

2026-03-30 08:10:03,989 INFO ScheduleDigitalInvoice finished.

2026-03-30 08:15:04,240 INFO ScheduleDigitalInvoice called...

2026-03-30 08:15:04,599 INFO MakeGlAccountPostings called...

2026-03-30 08:15:04,740 INFO MakeGlAccountPostings finished.

2026-03-30 08:15:04,740 INFO MakeCreditMemoRequest called...

2026-03-30 08:15:04,896 INFO MakeCreditMemoRequest finished.

2026-03-30 08:15:04,896 INFO ScheduleDigitalInvoice finished.

2026-03-30 08:20:03,798 INFO ScheduleDigitalInvoice called...

2026-03-30 08:20:03,970 INFO MakeGlAccountPostings called...

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

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

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

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

2026-03-30 08:25:03,524 INFO ScheduleDigitalInvoice called...

2026-03-30 08:25:03,696 INFO MakeGlAccountPostings called...

2026-03-30 08:25:03,821 INFO MakeGlAccountPostings finished.

2026-03-30 08:25:03,821 INFO MakeCreditMemoRequest called...

2026-03-30 08:25:03,961 INFO MakeCreditMemoRequest finished.

2026-03-30 08:25:03,977 INFO ScheduleDigitalInvoice finished.

2026-03-30 08:30:04,212 INFO ScheduleDigitalInvoice called...

2026-03-30 08:30:04,431 INFO MakeGlAccountPostings called...

2026-03-30 08:30:04,556 INFO MakeGlAccountPostings finished.

2026-03-30 08:30:04,556 INFO MakeCreditMemoRequest called...

2026-03-30 08:30:04,712 INFO MakeCreditMemoRequest finished.

2026-03-30 08:30:04,712 INFO ScheduleDigitalInvoice finished.

2026-03-30 08:35:03,494 INFO ScheduleDigitalInvoice called...

2026-03-30 08:35:03,651 INFO MakeGlAccountPostings called...

2026-03-30 08:35:03,791 INFO MakeGlAccountPostings finished.

2026-03-30 08:35:03,791 INFO MakeCreditMemoRequest called...

2026-03-30 08:35:03,963 INFO MakeCreditMemoRequest finished.

2026-03-30 08:35:03,963 INFO ScheduleDigitalInvoice finished.

2026-03-30 08:40:03,358 INFO ScheduleDigitalInvoice called...

2026-03-30 08:40:03,530 INFO MakeGlAccountPostings called...

2026-03-30 08:40:03,671 INFO MakeGlAccountPostings finished.

2026-03-30 08:40:03,671 INFO MakeCreditMemoRequest called...

2026-03-30 08:40:03,827 INFO MakeCreditMemoRequest finished.

2026-03-30 08:40:03,827 INFO ScheduleDigitalInvoice finished.

2026-03-30 08:45:04,190 INFO ScheduleDigitalInvoice called...

2026-03-30 08:45:04,696 INFO MakeGlAccountPostings called...

2026-03-30 08:45:04,821 INFO MakeGlAccountPostings finished.

2026-03-30 08:45:04,837 INFO MakeCreditMemoRequest called...

2026-03-30 08:45:05,009 INFO MakeCreditMemoRequest finished.

2026-03-30 08:45:05,009 INFO ScheduleDigitalInvoice finished.

2026-03-30 08:50:03,511 INFO ScheduleDigitalInvoice called...

2026-03-30 08:50:03,667 INFO MakeGlAccountPostings called...

2026-03-30 08:50:03,792 INFO MakeGlAccountPostings finished.

2026-03-30 08:50:03,792 INFO MakeCreditMemoRequest called...

2026-03-30 08:50:03,949 INFO MakeCreditMemoRequest finished.

2026-03-30 08:50:03,964 INFO ScheduleDigitalInvoice finished.

2026-03-30 08:55:03,473 INFO ScheduleDigitalInvoice called...

2026-03-30 08:55:03,645 INFO MakeGlAccountPostings called...

2026-03-30 08:55:03,754 INFO MakeGlAccountPostings finished.

2026-03-30 08:55:03,864 INFO MakeCreditMemoRequest called...

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

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

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

2026-03-30 09:00:04,494 INFO MakeGlAccountPostings called...

2026-03-30 09:00:04,634 INFO MakeGlAccountPostings finished.

2026-03-30 09:00:04,634 INFO MakeCreditMemoRequest called...

2026-03-30 09:00:04,806 INFO MakeCreditMemoRequest finished.

2026-03-30 09:00:04,806 INFO ScheduleDigitalInvoice finished.

2026-03-30 09:05:03,648 INFO ScheduleDigitalInvoice called...

2026-03-30 09:05:03,820 INFO MakeGlAccountPostings called...

2026-03-30 09:05:03,930 INFO MakeGlAccountPostings finished.

2026-03-30 09:05:03,945 INFO MakeCreditMemoRequest called...

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

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

2026-03-30 09:10:03,602 INFO ScheduleDigitalInvoice called...

2026-03-30 09:10:03,805 INFO MakeGlAccountPostings called...

2026-03-30 09:10:03,914 INFO MakeGlAccountPostings finished.

2026-03-30 09:10:03,930 INFO MakeCreditMemoRequest called...

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

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

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

2026-03-30 09:15:04,460 INFO MakeGlAccountPostings called...

2026-03-30 09:15:04,616 INFO MakeGlAccountPostings finished.

2026-03-30 09:15:04,616 INFO MakeCreditMemoRequest called...

2026-03-30 09:15:04,772 INFO MakeCreditMemoRequest finished.

2026-03-30 09:15:04,788 INFO ScheduleDigitalInvoice finished.

2026-03-30 09:20:03,596 INFO ScheduleDigitalInvoice called...

2026-03-30 09:20:03,768 INFO MakeGlAccountPostings called...

2026-03-30 09:20:03,924 INFO MakeGlAccountPostings finished.

2026-03-30 09:20:03,924 INFO MakeCreditMemoRequest called...

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

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

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

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

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

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

2026-03-30 09:25:04,762 INFO MakeCreditMemoRequest finished.

2026-03-30 09:25:04,777 INFO ScheduleDigitalInvoice finished.

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

2026-03-30 09:30:04,459 INFO MakeGlAccountPostings called...

2026-03-30 09:30:04,584 INFO MakeGlAccountPostings finished.

2026-03-30 09:30:04,584 INFO MakeCreditMemoRequest called...

2026-03-30 09:30:04,771 INFO MakeCreditMemoRequest finished.

2026-03-30 09:30:04,771 INFO ScheduleDigitalInvoice finished.

2026-03-30 09:35:03,549 INFO ScheduleDigitalInvoice called...

2026-03-30 09:35:03,721 INFO MakeGlAccountPostings called...

2026-03-30 09:35:03,846 INFO MakeGlAccountPostings finished.

2026-03-30 09:35:03,846 INFO MakeCreditMemoRequest called...

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

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

2026-03-30 09:40:03,574 INFO ScheduleDigitalInvoice called...

2026-03-30 09:40:03,793 INFO MakeGlAccountPostings called...

2026-03-30 09:40:03,918 INFO MakeGlAccountPostings finished.

2026-03-30 09:40:03,949 INFO MakeCreditMemoRequest called...

2026-03-30 09:40:04,105 INFO MakeCreditMemoRequest finished.

2026-03-30 09:40:04,121 INFO ScheduleDigitalInvoice finished.

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

2026-03-30 09:45:04,369 INFO MakeGlAccountPostings called...

2026-03-30 09:45:04,541 INFO MakeGlAccountPostings finished.

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

2026-03-30 09:45:04,697 INFO MakeCreditMemoRequest finished.

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

2026-03-30 09:50:03,680 INFO ScheduleDigitalInvoice called...

2026-03-30 09:50:03,868 INFO MakeGlAccountPostings called...

2026-03-30 09:50:03,993 INFO MakeGlAccountPostings finished.

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

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

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

2026-03-30 09:55:03,520 INFO ScheduleDigitalInvoice called...

2026-03-30 09:55:03,691 INFO MakeGlAccountPostings called...

2026-03-30 09:55:03,863 INFO MakeGlAccountPostings finished.

2026-03-30 09:55:03,863 INFO MakeCreditMemoRequest called...

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

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

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

2026-03-30 10:00:04,717 INFO MakeGlAccountPostings called...

2026-03-30 10:00:04,967 INFO MakeGlAccountPostings finished.

2026-03-30 10:00:04,967 INFO MakeCreditMemoRequest called...

2026-03-30 10:00:05,155 INFO MakeCreditMemoRequest finished.

2026-03-30 10:00:05,155 INFO ScheduleDigitalInvoice finished.

2026-03-30 10:05:03,381 INFO ScheduleDigitalInvoice called...

2026-03-30 10:05:03,663 INFO MakeGlAccountPostings called...

2026-03-30 10:05:03,850 INFO MakeGlAccountPostings finished.

2026-03-30 10:05:03,850 INFO MakeCreditMemoRequest called...

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

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

2026-03-30 10:10:03,639 INFO ScheduleDigitalInvoice called...

2026-03-30 10:10:03,811 INFO MakeGlAccountPostings called...

2026-03-30 10:10:03,936 INFO MakeGlAccountPostings finished.

2026-03-30 10:10:03,936 INFO MakeCreditMemoRequest called...

2026-03-30 10:10:04,108 INFO MakeCreditMemoRequest finished.

2026-03-30 10:10:04,123 INFO ScheduleDigitalInvoice finished.

2026-03-30 10:15:04,220 INFO ScheduleDigitalInvoice called...

2026-03-30 10:15:04,392 INFO MakeGlAccountPostings called...

2026-03-30 10:15:04,532 INFO MakeGlAccountPostings finished.

2026-03-30 10:15:04,532 INFO MakeCreditMemoRequest called...

2026-03-30 10:15:04,720 INFO MakeCreditMemoRequest finished.

2026-03-30 10:15:04,720 INFO ScheduleDigitalInvoice finished.

2026-03-30 10:20:03,900 INFO ScheduleDigitalInvoice called...

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

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

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

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

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

2026-03-30 10:25:03,570 INFO ScheduleDigitalInvoice called...

2026-03-30 10:25:03,773 INFO MakeGlAccountPostings called...

2026-03-30 10:25:03,898 INFO MakeGlAccountPostings finished.

2026-03-30 10:25:03,898 INFO MakeCreditMemoRequest called...

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

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

2026-03-30 10:30:04,320 INFO ScheduleDigitalInvoice called...

2026-03-30 10:30:04,523 INFO MakeGlAccountPostings called...

2026-03-30 10:30:04,679 INFO MakeGlAccountPostings finished.

2026-03-30 10:30:04,679 INFO MakeCreditMemoRequest called...

2026-03-30 10:30:04,835 INFO MakeCreditMemoRequest finished.

2026-03-30 10:30:04,851 INFO ScheduleDigitalInvoice finished.

2026-03-30 10:35:03,547 INFO ScheduleDigitalInvoice called...

2026-03-30 10:35:03,719 INFO MakeGlAccountPostings called...

2026-03-30 10:35:03,844 INFO MakeGlAccountPostings finished.

2026-03-30 10:35:03,844 INFO MakeCreditMemoRequest called...

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

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

2026-03-30 10:40:03,507 INFO ScheduleDigitalInvoice called...

2026-03-30 10:40:03,726 INFO MakeGlAccountPostings called...

2026-03-30 10:40:03,866 INFO MakeGlAccountPostings finished.

2026-03-30 10:40:03,866 INFO MakeCreditMemoRequest called...

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

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

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

2026-03-30 10:45:04,605 INFO MakeGlAccountPostings called...

2026-03-30 10:45:04,746 INFO MakeGlAccountPostings finished.

2026-03-30 10:45:04,746 INFO MakeCreditMemoRequest called...

2026-03-30 10:45:04,918 INFO MakeCreditMemoRequest finished.

2026-03-30 10:45:04,918 INFO ScheduleDigitalInvoice finished.

2026-03-30 10:50:03,472 INFO ScheduleDigitalInvoice called...

2026-03-30 10:50:03,675 INFO MakeGlAccountPostings called...

2026-03-30 10:50:03,800 INFO MakeGlAccountPostings finished.

2026-03-30 10:50:03,800 INFO MakeCreditMemoRequest called...

2026-03-30 10:50:03,956 INFO MakeCreditMemoRequest finished.

2026-03-30 10:50:03,972 INFO ScheduleDigitalInvoice finished.

2026-03-30 10:55:03,786 INFO ScheduleDigitalInvoice called...

2026-03-30 10:55:03,942 INFO MakeGlAccountPostings called...

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

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

2026-03-30 10:55:04,239 INFO MakeCreditMemoRequest finished.

2026-03-30 10:55:04,239 INFO ScheduleDigitalInvoice finished.

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

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

2026-03-30 11:00:04,525 INFO MakeGlAccountPostings finished.

2026-03-30 11:00:04,525 INFO MakeCreditMemoRequest called...

2026-03-30 11:00:04,697 INFO MakeCreditMemoRequest finished.

2026-03-30 11:00:04,697 INFO ScheduleDigitalInvoice finished.

2026-03-30 11:05:03,540 INFO ScheduleDigitalInvoice called...

2026-03-30 11:05:03,728 INFO MakeGlAccountPostings called...

2026-03-30 11:05:03,868 INFO MakeGlAccountPostings finished.

2026-03-30 11:05:03,868 INFO MakeCreditMemoRequest called...

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

2026-03-30 11:05:04,025 INFO ScheduleDigitalInvoice finished.

2026-03-30 11:10:03,591 INFO ScheduleDigitalInvoice called...

2026-03-30 11:10:03,763 INFO MakeGlAccountPostings called...

2026-03-30 11:10:03,888 INFO MakeGlAccountPostings finished.

2026-03-30 11:10:03,904 INFO MakeCreditMemoRequest called...

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

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

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

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

2026-03-30 11:15:05,070 INFO MakeGlAccountPostings finished.

2026-03-30 11:15:05,086 INFO MakeCreditMemoRequest called...

2026-03-30 11:15:05,258 INFO MakeCreditMemoRequest finished.

2026-03-30 11:15:05,273 INFO ScheduleDigitalInvoice finished.

2026-03-30 11:20:03,547 INFO ScheduleDigitalInvoice called...

2026-03-30 11:20:03,719 INFO MakeGlAccountPostings called...

2026-03-30 11:20:03,860 INFO MakeGlAccountPostings finished.

2026-03-30 11:20:03,891 INFO MakeCreditMemoRequest called...

2026-03-30 11:20:04,032 INFO MakeCreditMemoRequest finished.

2026-03-30 11:20:04,032 INFO ScheduleDigitalInvoice finished.

2026-03-30 11:25:03,515 INFO ScheduleDigitalInvoice called...

2026-03-30 11:25:03,703 INFO MakeGlAccountPostings called...

2026-03-30 11:25:03,828 INFO MakeGlAccountPostings finished.

2026-03-30 11:25:03,828 INFO MakeCreditMemoRequest called...

2026-03-30 11:25:03,968 INFO MakeCreditMemoRequest finished.

2026-03-30 11:25:03,984 INFO ScheduleDigitalInvoice finished.

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

2026-03-30 11:30:04,326 INFO MakeGlAccountPostings called...

2026-03-30 11:30:04,451 INFO MakeGlAccountPostings finished.

2026-03-30 11:30:04,466 INFO MakeCreditMemoRequest called...

2026-03-30 11:30:04,622 INFO MakeCreditMemoRequest finished.

2026-03-30 11:30:04,622 INFO ScheduleDigitalInvoice finished.

2026-03-30 11:35:03,636 INFO ScheduleDigitalInvoice called...

2026-03-30 11:35:03,808 INFO MakeGlAccountPostings called...

2026-03-30 11:35:03,949 INFO MakeGlAccountPostings finished.

2026-03-30 11:35:03,949 INFO MakeCreditMemoRequest called...

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

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

2026-03-30 11:40:03,556 INFO ScheduleDigitalInvoice called...

2026-03-30 11:40:03,744 INFO MakeGlAccountPostings called...

2026-03-30 11:40:03,869 INFO MakeGlAccountPostings finished.

2026-03-30 11:40:03,869 INFO MakeCreditMemoRequest called...

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

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

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

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

2026-03-30 11:45:04,441 INFO MakeGlAccountPostings finished.

2026-03-30 11:45:04,457 INFO MakeCreditMemoRequest called...

2026-03-30 11:45:04,597 INFO MakeCreditMemoRequest finished.

2026-03-30 11:45:04,613 INFO ScheduleDigitalInvoice finished.

2026-03-30 11:50:03,400 INFO ScheduleDigitalInvoice called...

2026-03-30 11:50:03,556 INFO MakeGlAccountPostings called...

2026-03-30 11:50:03,681 INFO MakeGlAccountPostings finished.

2026-03-30 11:50:03,697 INFO MakeCreditMemoRequest called...

2026-03-30 11:50:03,868 INFO MakeCreditMemoRequest finished.

2026-03-30 11:50:03,884 INFO ScheduleDigitalInvoice finished.

2026-03-30 11:55:03,566 INFO ScheduleDigitalInvoice called...

2026-03-30 11:55:03,738 INFO MakeGlAccountPostings called...

2026-03-30 11:55:03,863 INFO MakeGlAccountPostings finished.

2026-03-30 11:55:03,878 INFO MakeCreditMemoRequest called...

2026-03-30 11:55:04,019 INFO MakeCreditMemoRequest finished.

2026-03-30 11:55:04,035 INFO ScheduleDigitalInvoice finished.

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

2026-03-30 12:00:04,434 INFO MakeGlAccountPostings called...

2026-03-30 12:00:04,575 INFO MakeGlAccountPostings finished.

2026-03-30 12:00:04,575 INFO MakeCreditMemoRequest called...

2026-03-30 12:00:04,731 INFO MakeCreditMemoRequest finished.

2026-03-30 12:00:04,747 INFO ScheduleDigitalInvoice finished.

2026-03-30 12:05:03,617 INFO ScheduleDigitalInvoice called...

2026-03-30 12:05:03,789 INFO MakeGlAccountPostings called...

2026-03-30 12:05:03,929 INFO MakeGlAccountPostings finished.

2026-03-30 12:05:03,929 INFO MakeCreditMemoRequest called...

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

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

2026-03-30 12:10:03,596 INFO ScheduleDigitalInvoice called...

2026-03-30 12:10:03,963 INFO MakeGlAccountPostings called...

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

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

2026-03-30 12:10:04,260 INFO MakeCreditMemoRequest finished.

2026-03-30 12:10:04,260 INFO ScheduleDigitalInvoice finished.

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

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

2026-03-30 12:15:05,101 INFO MakeGlAccountPostings finished.

2026-03-30 12:15:05,101 INFO MakeCreditMemoRequest called...

2026-03-30 12:15:05,257 INFO MakeCreditMemoRequest finished.

2026-03-30 12:15:05,257 INFO ScheduleDigitalInvoice finished.

2026-03-30 12:20:03,560 INFO ScheduleDigitalInvoice called...

2026-03-30 12:20:03,732 INFO MakeGlAccountPostings called...

2026-03-30 12:20:03,857 INFO MakeGlAccountPostings finished.

2026-03-30 12:20:03,857 INFO MakeCreditMemoRequest called...

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

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

2026-03-30 12:25:03,437 INFO ScheduleDigitalInvoice called...

2026-03-30 12:25:03,609 INFO MakeGlAccountPostings called...

2026-03-30 12:25:03,718 INFO MakeGlAccountPostings finished.

2026-03-30 12:25:03,734 INFO MakeCreditMemoRequest called...

2026-03-30 12:25:03,890 INFO MakeCreditMemoRequest finished.

2026-03-30 12:25:03,890 INFO ScheduleDigitalInvoice finished.

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

2026-03-30 12:30:04,568 INFO MakeGlAccountPostings called...

2026-03-30 12:30:04,693 INFO MakeGlAccountPostings finished.

2026-03-30 12:30:04,709 INFO MakeCreditMemoRequest called...

2026-03-30 12:30:04,865 INFO MakeCreditMemoRequest finished.

2026-03-30 12:30:04,865 INFO ScheduleDigitalInvoice finished.

2026-03-30 12:35:03,501 INFO ScheduleDigitalInvoice called...

2026-03-30 12:35:03,657 INFO MakeGlAccountPostings called...

2026-03-30 12:35:03,798 INFO MakeGlAccountPostings finished.

2026-03-30 12:35:03,798 INFO MakeCreditMemoRequest called...

2026-03-30 12:35:03,939 INFO MakeCreditMemoRequest finished.

2026-03-30 12:35:03,939 INFO ScheduleDigitalInvoice finished.

2026-03-30 12:40:03,622 INFO ScheduleDigitalInvoice called...

2026-03-30 12:40:03,809 INFO MakeGlAccountPostings called...

2026-03-30 12:40:03,935 INFO MakeGlAccountPostings finished.

2026-03-30 12:40:03,935 INFO MakeCreditMemoRequest called...

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

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

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

2026-03-30 12:45:04,397 INFO MakeGlAccountPostings called...

2026-03-30 12:45:04,522 INFO MakeGlAccountPostings finished.

2026-03-30 12:45:04,538 INFO MakeCreditMemoRequest called...

2026-03-30 12:45:04,694 INFO MakeCreditMemoRequest finished.

2026-03-30 12:45:04,694 INFO ScheduleDigitalInvoice finished.

2026-03-30 12:50:03,530 INFO ScheduleDigitalInvoice called...

2026-03-30 12:50:03,702 INFO MakeGlAccountPostings called...

2026-03-30 12:50:03,842 INFO MakeGlAccountPostings finished.

2026-03-30 12:50:03,842 INFO MakeCreditMemoRequest called...

2026-03-30 12:50:03,998 INFO MakeCreditMemoRequest finished.

2026-03-30 12:50:03,998 INFO ScheduleDigitalInvoice finished.

2026-03-30 12:55:03,532 INFO ScheduleDigitalInvoice called...

2026-03-30 12:55:03,703 INFO MakeGlAccountPostings called...

2026-03-30 12:55:03,828 INFO MakeGlAccountPostings finished.

2026-03-30 12:55:03,828 INFO MakeCreditMemoRequest called...

2026-03-30 12:55:03,969 INFO MakeCreditMemoRequest finished.

2026-03-30 12:55:03,985 INFO ScheduleDigitalInvoice finished.

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

2026-03-30 13:00:04,543 INFO MakeGlAccountPostings called...

2026-03-30 13:00:04,699 INFO MakeGlAccountPostings finished.

2026-03-30 13:00:04,699 INFO MakeCreditMemoRequest called...

2026-03-30 13:00:04,871 INFO MakeCreditMemoRequest finished.

2026-03-30 13:00:04,871 INFO ScheduleDigitalInvoice finished.

2026-03-30 13:05:03,928 INFO ScheduleDigitalInvoice called...

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

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

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

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

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

2026-03-30 13:10:03,703 INFO ScheduleDigitalInvoice called...

2026-03-30 13:10:03,875 INFO MakeGlAccountPostings called...

2026-03-30 13:10:03,984 INFO MakeGlAccountPostings finished.

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

2026-03-30 13:10:04,172 INFO MakeCreditMemoRequest finished.

2026-03-30 13:10:04,172 INFO ScheduleDigitalInvoice finished.

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

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

2026-03-30 13:15:04,643 INFO MakeGlAccountPostings finished.

2026-03-30 13:15:04,643 INFO MakeCreditMemoRequest called...

2026-03-30 13:15:04,800 INFO MakeCreditMemoRequest finished.

2026-03-30 13:15:04,815 INFO ScheduleDigitalInvoice finished.

2026-03-30 13:20:03,511 INFO ScheduleDigitalInvoice called...

2026-03-30 13:20:03,699 INFO MakeGlAccountPostings called...

2026-03-30 13:20:03,871 INFO MakeGlAccountPostings finished.

2026-03-30 13:20:03,871 INFO MakeCreditMemoRequest called...

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

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

2026-03-30 13:25:03,586 INFO ScheduleDigitalInvoice called...

2026-03-30 13:25:03,773 INFO MakeGlAccountPostings called...

2026-03-30 13:25:03,883 INFO MakeGlAccountPostings finished.

2026-03-30 13:25:03,883 INFO MakeCreditMemoRequest called...

2026-03-30 13:25:04,039 INFO MakeCreditMemoRequest finished.

2026-03-30 13:25:04,039 INFO ScheduleDigitalInvoice finished.

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

2026-03-30 13:30:04,476 INFO MakeGlAccountPostings called...

2026-03-30 13:30:04,617 INFO MakeGlAccountPostings finished.

2026-03-30 13:30:04,617 INFO MakeCreditMemoRequest called...

2026-03-30 13:30:04,773 INFO MakeCreditMemoRequest finished.

2026-03-30 13:30:04,773 INFO ScheduleDigitalInvoice finished.

2026-03-30 13:35:03,676 INFO ScheduleDigitalInvoice called...

2026-03-30 13:35:03,863 INFO MakeGlAccountPostings called...

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

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

2026-03-30 13:35:04,160 INFO MakeCreditMemoRequest finished.

2026-03-30 13:35:04,160 INFO ScheduleDigitalInvoice finished.

2026-03-30 13:40:03,573 INFO ScheduleDigitalInvoice called...

2026-03-30 13:40:03,777 INFO MakeGlAccountPostings called...

2026-03-30 13:40:03,902 INFO MakeGlAccountPostings finished.

2026-03-30 13:40:03,902 INFO MakeCreditMemoRequest called...

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

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

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

2026-03-30 13:45:04,484 INFO MakeGlAccountPostings called...

2026-03-30 13:45:04,625 INFO MakeGlAccountPostings finished.

2026-03-30 13:45:04,625 INFO MakeCreditMemoRequest called...

2026-03-30 13:45:04,797 INFO MakeCreditMemoRequest finished.

2026-03-30 13:45:04,797 INFO ScheduleDigitalInvoice finished.

2026-03-30 13:50:03,551 INFO ScheduleDigitalInvoice called...

2026-03-30 13:50:03,723 INFO MakeGlAccountPostings called...

2026-03-30 13:50:03,848 INFO MakeGlAccountPostings finished.

2026-03-30 13:50:03,848 INFO MakeCreditMemoRequest called...

2026-03-30 13:50:04,004 INFO MakeCreditMemoRequest finished.

2026-03-30 13:50:04,004 INFO ScheduleDigitalInvoice finished.

2026-03-30 13:55:03,578 INFO ScheduleDigitalInvoice called...

2026-03-30 13:55:03,735 INFO MakeGlAccountPostings called...

2026-03-30 13:55:03,860 INFO MakeGlAccountPostings finished.

2026-03-30 13:55:03,860 INFO MakeCreditMemoRequest called...

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

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

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

2026-03-30 14:00:04,748 INFO MakeGlAccountPostings called...

2026-03-30 14:00:04,873 INFO MakeGlAccountPostings finished.

2026-03-30 14:00:04,873 INFO MakeCreditMemoRequest called...

2026-03-30 14:00:05,061 INFO MakeCreditMemoRequest finished.

2026-03-30 14:00:05,076 INFO ScheduleDigitalInvoice finished.

2026-03-30 14:05:03,844 INFO ScheduleDigitalInvoice called...

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

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

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

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

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

2026-03-30 14:10:03,433 INFO ScheduleDigitalInvoice called...

2026-03-30 14:10:03,590 INFO MakeGlAccountPostings called...

2026-03-30 14:10:03,730 INFO MakeGlAccountPostings finished.

2026-03-30 14:10:03,730 INFO MakeCreditMemoRequest called...

2026-03-30 14:10:03,886 INFO MakeCreditMemoRequest finished.

2026-03-30 14:10:03,886 INFO ScheduleDigitalInvoice finished.

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

2026-03-30 14:15:04,593 INFO MakeGlAccountPostings called...

2026-03-30 14:15:04,718 INFO MakeGlAccountPostings finished.

2026-03-30 14:15:04,718 INFO MakeCreditMemoRequest called...

2026-03-30 14:15:04,874 INFO MakeCreditMemoRequest finished.

2026-03-30 14:15:04,890 INFO ScheduleDigitalInvoice finished.

2026-03-30 14:20:03,529 INFO ScheduleDigitalInvoice called...

2026-03-30 14:20:03,748 INFO MakeGlAccountPostings called...

2026-03-30 14:20:03,904 INFO MakeGlAccountPostings finished.

2026-03-30 14:20:03,904 INFO MakeCreditMemoRequest called...

2026-03-30 14:20:04,060 INFO MakeCreditMemoRequest finished.

2026-03-30 14:20:04,060 INFO ScheduleDigitalInvoice finished.

2026-03-30 14:25:04,124 INFO ScheduleDigitalInvoice called...

2026-03-30 14:25:04,327 INFO MakeGlAccountPostings called...

2026-03-30 14:25:04,483 INFO MakeGlAccountPostings finished.

2026-03-30 14:25:04,483 INFO MakeCreditMemoRequest called...

2026-03-30 14:25:04,655 INFO MakeCreditMemoRequest finished.

2026-03-30 14:25:04,671 INFO ScheduleDigitalInvoice finished.

2026-03-30 14:30:04,323 INFO ScheduleDigitalInvoice called...

2026-03-30 14:30:04,573 INFO MakeGlAccountPostings called...

2026-03-30 14:30:04,698 INFO MakeGlAccountPostings finished.

2026-03-30 14:30:04,714 INFO MakeCreditMemoRequest called...

2026-03-30 14:30:04,870 INFO MakeCreditMemoRequest finished.

2026-03-30 14:30:04,870 INFO ScheduleDigitalInvoice finished.

2026-03-30 14:35:03,486 INFO ScheduleDigitalInvoice called...

2026-03-30 14:35:03,658 INFO MakeGlAccountPostings called...

2026-03-30 14:35:03,799 INFO MakeGlAccountPostings finished.

2026-03-30 14:35:03,799 INFO MakeCreditMemoRequest called...

2026-03-30 14:35:03,955 INFO MakeCreditMemoRequest finished.

2026-03-30 14:35:03,971 INFO ScheduleDigitalInvoice finished.

2026-03-30 14:40:03,474 INFO ScheduleDigitalInvoice called...

2026-03-30 14:40:03,630 INFO MakeGlAccountPostings called...

2026-03-30 14:40:03,771 INFO MakeGlAccountPostings finished.

2026-03-30 14:40:03,787 INFO MakeCreditMemoRequest called...

2026-03-30 14:40:03,943 INFO MakeCreditMemoRequest finished.

2026-03-30 14:40:03,943 INFO ScheduleDigitalInvoice finished.

2026-03-30 14:45:04,403 INFO ScheduleDigitalInvoice called...

2026-03-30 14:45:04,590 INFO MakeGlAccountPostings called...

2026-03-30 14:45:04,700 INFO MakeGlAccountPostings finished.

2026-03-30 14:45:04,715 INFO MakeCreditMemoRequest called...

2026-03-30 14:45:05,278 INFO MakeCreditMemoRequest finished.

2026-03-30 14:45:05,278 INFO ScheduleDigitalInvoice finished.

2026-03-30 14:50:03,586 INFO ScheduleDigitalInvoice called...

2026-03-30 14:50:03,758 INFO MakeGlAccountPostings called...

2026-03-30 14:50:03,868 INFO MakeGlAccountPostings finished.

2026-03-30 14:50:03,883 INFO MakeCreditMemoRequest called...

2026-03-30 14:50:04,055 INFO MakeCreditMemoRequest finished.

2026-03-30 14:50:04,055 INFO ScheduleDigitalInvoice finished.

2026-03-30 14:55:03,632 INFO ScheduleDigitalInvoice called...

2026-03-30 14:55:03,866 INFO MakeGlAccountPostings called...

2026-03-30 14:55:03,991 INFO MakeGlAccountPostings finished.

2026-03-30 14:55:04,007 INFO MakeCreditMemoRequest called...

2026-03-30 14:55:04,147 INFO MakeCreditMemoRequest finished.

2026-03-30 14:55:04,147 INFO ScheduleDigitalInvoice finished.

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

2026-03-30 15:00:04,559 INFO MakeGlAccountPostings called...

2026-03-30 15:00:04,700 INFO MakeGlAccountPostings finished.

2026-03-30 15:00:04,700 INFO MakeCreditMemoRequest called...

2026-03-30 15:00:04,872 INFO MakeCreditMemoRequest finished.

2026-03-30 15:00:04,888 INFO ScheduleDigitalInvoice finished.

2026-03-30 15:05:03,621 INFO ScheduleDigitalInvoice called...

2026-03-30 15:05:03,808 INFO MakeGlAccountPostings called...

2026-03-30 15:05:03,933 INFO MakeGlAccountPostings finished.

2026-03-30 15:05:03,933 INFO MakeCreditMemoRequest called...

2026-03-30 15:05:04,089 INFO MakeCreditMemoRequest finished.

2026-03-30 15:05:04,089 INFO ScheduleDigitalInvoice finished.

2026-03-30 15:10:03,529 INFO ScheduleDigitalInvoice called...

2026-03-30 15:10:03,685 INFO MakeGlAccountPostings called...

2026-03-30 15:10:03,810 INFO MakeGlAccountPostings finished.

2026-03-30 15:10:03,810 INFO MakeCreditMemoRequest called...

2026-03-30 15:10:03,982 INFO MakeCreditMemoRequest finished.

2026-03-30 15:10:03,982 INFO ScheduleDigitalInvoice finished.

2026-03-30 15:15:04,213 INFO ScheduleDigitalInvoice called...

2026-03-30 15:15:04,448 INFO MakeGlAccountPostings called...

2026-03-30 15:15:04,573 INFO MakeGlAccountPostings finished.

2026-03-30 15:15:04,573 INFO MakeCreditMemoRequest called...

2026-03-30 15:15:04,729 INFO MakeCreditMemoRequest finished.

2026-03-30 15:15:04,745 INFO ScheduleDigitalInvoice finished.

2026-03-30 15:20:03,477 INFO ScheduleDigitalInvoice called...

2026-03-30 15:20:03,649 INFO MakeGlAccountPostings called...

2026-03-30 15:20:03,758 INFO MakeGlAccountPostings finished.

2026-03-30 15:20:03,774 INFO MakeCreditMemoRequest called...

2026-03-30 15:20:03,914 INFO MakeCreditMemoRequest finished.

2026-03-30 15:20:03,930 INFO ScheduleDigitalInvoice finished.

2026-03-30 15:25:03,440 INFO ScheduleDigitalInvoice called...

2026-03-30 15:25:03,815 INFO MakeGlAccountPostings called...

2026-03-30 15:25:03,956 INFO MakeGlAccountPostings finished.

2026-03-30 15:25:03,956 INFO MakeCreditMemoRequest called...

2026-03-30 15:25:04,112 INFO MakeCreditMemoRequest finished.

2026-03-30 15:25:04,112 INFO ScheduleDigitalInvoice finished.

2026-03-30 15:30:04,283 INFO ScheduleDigitalInvoice called...

2026-03-30 15:30:04,471 INFO MakeGlAccountPostings called...

2026-03-30 15:30:04,611 INFO MakeGlAccountPostings finished.

2026-03-30 15:30:04,627 INFO MakeCreditMemoRequest called...

2026-03-30 15:30:04,783 INFO MakeCreditMemoRequest finished.

2026-03-30 15:30:04,783 INFO ScheduleDigitalInvoice finished.

2026-03-30 15:35:03,670 INFO ScheduleDigitalInvoice called...

2026-03-30 15:35:03,873 INFO MakeGlAccountPostings called...

2026-03-30 15:35:03,998 INFO MakeGlAccountPostings finished.

2026-03-30 15:35:03,998 INFO MakeCreditMemoRequest called...

2026-03-30 15:35:04,154 INFO MakeCreditMemoRequest finished.

2026-03-30 15:35:04,154 INFO ScheduleDigitalInvoice finished.

2026-03-30 15:40:03,672 INFO ScheduleDigitalInvoice called...

2026-03-30 15:40:03,844 INFO MakeGlAccountPostings called...

2026-03-30 15:40:03,985 INFO MakeGlAccountPostings finished.

2026-03-30 15:40:03,985 INFO MakeCreditMemoRequest called...

2026-03-30 15:40:04,157 INFO MakeCreditMemoRequest finished.

2026-03-30 15:40:04,157 INFO ScheduleDigitalInvoice finished.

2026-03-30 15:45:04,220 INFO ScheduleDigitalInvoice called...

2026-03-30 15:45:04,407 INFO MakeGlAccountPostings called...

2026-03-30 15:45:04,532 INFO MakeGlAccountPostings finished.

2026-03-30 15:45:04,532 INFO MakeCreditMemoRequest called...

2026-03-30 15:45:04,688 INFO MakeCreditMemoRequest finished.

2026-03-30 15:45:04,704 INFO ScheduleDigitalInvoice finished.

2026-03-30 15:50:03,561 INFO ScheduleDigitalInvoice called...

2026-03-30 15:50:03,733 INFO MakeGlAccountPostings called...

2026-03-30 15:50:03,874 INFO MakeGlAccountPostings finished.

2026-03-30 15:50:03,874 INFO MakeCreditMemoRequest called...

2026-03-30 15:50:04,030 INFO MakeCreditMemoRequest finished.

2026-03-30 15:50:04,030 INFO ScheduleDigitalInvoice finished.

2026-03-30 15:55:03,517 INFO ScheduleDigitalInvoice called...

2026-03-30 15:55:03,689 INFO MakeGlAccountPostings called...

2026-03-30 15:55:03,830 INFO MakeGlAccountPostings finished.

2026-03-30 15:55:03,830 INFO MakeCreditMemoRequest called...

2026-03-30 15:55:03,986 INFO MakeCreditMemoRequest finished.

2026-03-30 15:55:03,986 INFO ScheduleDigitalInvoice finished.

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

2026-03-30 16:00:04,426 INFO MakeGlAccountPostings called...

2026-03-30 16:00:04,567 INFO MakeGlAccountPostings finished.

2026-03-30 16:00:04,567 INFO MakeCreditMemoRequest called...

2026-03-30 16:00:04,723 INFO MakeCreditMemoRequest finished.

2026-03-30 16:00:04,723 INFO ScheduleDigitalInvoice finished.

2026-03-30 16:05:03,627 INFO ScheduleDigitalInvoice called...

2026-03-30 16:05:03,831 INFO MakeGlAccountPostings called...

2026-03-30 16:05:03,956 INFO MakeGlAccountPostings finished.

2026-03-30 16:05:03,956 INFO MakeCreditMemoRequest called...

2026-03-30 16:05:04,143 INFO MakeCreditMemoRequest finished.

2026-03-30 16:05:04,143 INFO ScheduleDigitalInvoice finished.

2026-03-30 16:10:03,649 INFO ScheduleDigitalInvoice called...

2026-03-30 16:10:03,868 INFO MakeGlAccountPostings called...

2026-03-30 16:10:04,008 INFO MakeGlAccountPostings finished.

2026-03-30 16:10:04,008 INFO MakeCreditMemoRequest called...

2026-03-30 16:10:04,196 INFO MakeCreditMemoRequest finished.

2026-03-30 16:10:04,196 INFO ScheduleDigitalInvoice finished.

2026-03-30 16:15:04,468 INFO ScheduleDigitalInvoice called...

2026-03-30 16:15:04,671 INFO MakeGlAccountPostings called...

2026-03-30 16:15:04,796 INFO MakeGlAccountPostings finished.

2026-03-30 16:15:04,796 INFO MakeCreditMemoRequest called...

2026-03-30 16:15:04,968 INFO MakeCreditMemoRequest finished.

2026-03-30 16:15:04,968 INFO ScheduleDigitalInvoice finished.

2026-03-30 16:20:03,615 INFO ScheduleDigitalInvoice called...

2026-03-30 16:20:03,787 INFO MakeGlAccountPostings called...

2026-03-30 16:20:03,943 INFO MakeGlAccountPostings finished.

2026-03-30 16:20:03,943 INFO MakeCreditMemoRequest called...

2026-03-30 16:20:04,115 INFO MakeCreditMemoRequest finished.

2026-03-30 16:20:04,131 INFO ScheduleDigitalInvoice finished.

2026-03-30 16:25:03,614 INFO ScheduleDigitalInvoice called...

2026-03-30 16:25:03,786 INFO MakeGlAccountPostings called...

2026-03-30 16:25:03,911 INFO MakeGlAccountPostings finished.

2026-03-30 16:25:03,926 INFO MakeCreditMemoRequest called...

2026-03-30 16:25:04,083 INFO MakeCreditMemoRequest finished.

2026-03-30 16:25:04,083 INFO ScheduleDigitalInvoice finished.

2026-03-30 16:30:04,729 INFO ScheduleDigitalInvoice called...

2026-03-30 16:30:04,916 INFO MakeGlAccountPostings called...

2026-03-30 16:30:05,057 INFO MakeGlAccountPostings finished.

2026-03-30 16:30:05,057 INFO MakeCreditMemoRequest called...

2026-03-30 16:30:05,245 INFO MakeCreditMemoRequest finished.

2026-03-30 16:30:05,260 INFO ScheduleDigitalInvoice finished.

2026-03-30 16:35:03,581 INFO ScheduleDigitalInvoice called...

2026-03-30 16:35:03,737 INFO MakeGlAccountPostings called...

2026-03-30 16:35:03,878 INFO MakeGlAccountPostings finished.

2026-03-30 16:35:03,878 INFO MakeCreditMemoRequest called...

2026-03-30 16:35:04,019 INFO MakeCreditMemoRequest finished.

2026-03-30 16:35:04,019 INFO ScheduleDigitalInvoice finished.

2026-03-30 16:40:03,528 INFO ScheduleDigitalInvoice called...

2026-03-30 16:40:03,684 INFO MakeGlAccountPostings called...

2026-03-30 16:40:03,809 INFO MakeGlAccountPostings finished.

2026-03-30 16:40:03,825 INFO MakeCreditMemoRequest called...

2026-03-30 16:40:03,966 INFO MakeCreditMemoRequest finished.

2026-03-30 16:40:03,981 INFO ScheduleDigitalInvoice finished.

2026-03-30 16:45:04,356 INFO ScheduleDigitalInvoice called...

2026-03-30 16:45:04,543 INFO MakeGlAccountPostings called...

2026-03-30 16:45:04,668 INFO MakeGlAccountPostings finished.

2026-03-30 16:45:04,668 INFO MakeCreditMemoRequest called...

2026-03-30 16:45:04,824 INFO MakeCreditMemoRequest finished.

2026-03-30 16:45:04,824 INFO ScheduleDigitalInvoice finished.

2026-03-30 16:50:03,484 INFO ScheduleDigitalInvoice called...

2026-03-30 16:50:03,656 INFO MakeGlAccountPostings called...

2026-03-30 16:50:03,797 INFO MakeGlAccountPostings finished.

2026-03-30 16:50:03,797 INFO MakeCreditMemoRequest called...

2026-03-30 16:50:03,953 INFO MakeCreditMemoRequest finished.

2026-03-30 16:50:03,953 INFO ScheduleDigitalInvoice finished.

2026-03-30 16:55:03,548 INFO ScheduleDigitalInvoice called...

2026-03-30 16:55:03,705 INFO MakeGlAccountPostings called...

2026-03-30 16:55:03,830 INFO MakeGlAccountPostings finished.

2026-03-30 16:55:03,830 INFO MakeCreditMemoRequest called...

2026-03-30 16:55:03,986 INFO MakeCreditMemoRequest finished.

2026-03-30 16:55:03,986 INFO ScheduleDigitalInvoice finished.

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

2026-03-30 17:00:04,442 INFO MakeGlAccountPostings called...

2026-03-30 17:00:04,583 INFO MakeGlAccountPostings finished.

2026-03-30 17:00:04,614 INFO MakeCreditMemoRequest called...

2026-03-30 17:00:04,755 INFO MakeCreditMemoRequest finished.

2026-03-30 17:00:04,770 INFO ScheduleDigitalInvoice finished.

2026-03-30 17:05:03,575 INFO ScheduleDigitalInvoice called...

2026-03-30 17:05:03,794 INFO MakeGlAccountPostings called...

2026-03-30 17:05:03,919 INFO MakeGlAccountPostings finished.

2026-03-30 17:05:03,919 INFO MakeCreditMemoRequest called...

2026-03-30 17:05:04,075 INFO MakeCreditMemoRequest finished.

2026-03-30 17:05:04,075 INFO ScheduleDigitalInvoice finished.

2026-03-30 17:10:03,768 INFO ScheduleDigitalInvoice called...

2026-03-30 17:10:04,049 INFO MakeGlAccountPostings called...

2026-03-30 17:10:04,190 INFO MakeGlAccountPostings finished.

2026-03-30 17:10:04,190 INFO MakeCreditMemoRequest called...

2026-03-30 17:10:04,346 INFO MakeCreditMemoRequest finished.

2026-03-30 17:10:04,346 INFO ScheduleDigitalInvoice finished.

2026-03-30 17:15:04,408 INFO ScheduleDigitalInvoice called...

2026-03-30 17:15:04,689 INFO MakeGlAccountPostings called...

2026-03-30 17:15:04,877 INFO MakeGlAccountPostings finished.

2026-03-30 17:15:04,877 INFO MakeCreditMemoRequest called...

2026-03-30 17:15:05,127 INFO MakeCreditMemoRequest finished.

2026-03-30 17:15:05,127 INFO ScheduleDigitalInvoice finished.

2026-03-30 17:20:03,524 INFO ScheduleDigitalInvoice called...

2026-03-30 17:20:03,712 INFO MakeGlAccountPostings called...

2026-03-30 17:20:03,915 INFO MakeGlAccountPostings finished.

2026-03-30 17:20:03,915 INFO MakeCreditMemoRequest called...

2026-03-30 17:20:04,087 INFO MakeCreditMemoRequest finished.

2026-03-30 17:20:04,087 INFO ScheduleDigitalInvoice finished.

2026-03-30 17:25:03,969 INFO ScheduleDigitalInvoice called...

2026-03-30 17:25:04,141 INFO MakeGlAccountPostings called...

2026-03-30 17:25:04,251 INFO MakeGlAccountPostings finished.

2026-03-30 17:25:04,266 INFO MakeCreditMemoRequest called...

2026-03-30 17:25:04,438 INFO MakeCreditMemoRequest finished.

2026-03-30 17:25:04,438 INFO ScheduleDigitalInvoice finished.

2026-03-30 17:30:04,376 INFO ScheduleDigitalInvoice called...

2026-03-30 17:30:04,563 INFO MakeGlAccountPostings called...

2026-03-30 17:30:04,704 INFO MakeGlAccountPostings finished.

2026-03-30 17:30:04,704 INFO MakeCreditMemoRequest called...

2026-03-30 17:30:04,860 INFO MakeCreditMemoRequest finished.

2026-03-30 17:30:04,860 INFO ScheduleDigitalInvoice finished.

2026-03-30 17:35:03,580 INFO ScheduleDigitalInvoice called...

2026-03-30 17:35:03,783 INFO MakeGlAccountPostings called...

2026-03-30 17:35:03,908 INFO MakeGlAccountPostings finished.

2026-03-30 17:35:03,908 INFO MakeCreditMemoRequest called...

2026-03-30 17:35:04,064 INFO MakeCreditMemoRequest finished.

2026-03-30 17:35:04,064 INFO ScheduleDigitalInvoice finished.

2026-03-30 17:40:03,482 INFO ScheduleDigitalInvoice called...

2026-03-30 17:40:03,654 INFO MakeGlAccountPostings called...

2026-03-30 17:40:03,763 INFO MakeGlAccountPostings finished.

2026-03-30 17:40:03,779 INFO MakeCreditMemoRequest called...

2026-03-30 17:40:03,919 INFO MakeCreditMemoRequest finished.

2026-03-30 17:40:03,919 INFO ScheduleDigitalInvoice finished.

2026-03-30 17:45:04,213 INFO ScheduleDigitalInvoice called...

2026-03-30 17:45:04,595 INFO MakeGlAccountPostings called...

2026-03-30 17:45:04,845 INFO MakeGlAccountPostings finished.

2026-03-30 17:45:04,845 INFO MakeCreditMemoRequest called...

2026-03-30 17:45:05,017 INFO MakeCreditMemoRequest finished.

2026-03-30 17:45:05,017 INFO ScheduleDigitalInvoice finished.

2026-03-30 17:50:03,540 INFO ScheduleDigitalInvoice called...

2026-03-30 17:50:03,728 INFO MakeGlAccountPostings called...

2026-03-30 17:50:03,853 INFO MakeGlAccountPostings finished.

2026-03-30 17:50:03,853 INFO MakeCreditMemoRequest called...

2026-03-30 17:50:03,993 INFO MakeCreditMemoRequest finished.

2026-03-30 17:50:03,993 INFO ScheduleDigitalInvoice finished.

2026-03-30 17:55:03,685 INFO ScheduleDigitalInvoice called...

2026-03-30 17:55:03,873 INFO MakeGlAccountPostings called...

2026-03-30 17:55:03,998 INFO MakeGlAccountPostings finished.

2026-03-30 17:55:03,998 INFO MakeCreditMemoRequest called...

2026-03-30 17:55:04,154 INFO MakeCreditMemoRequest finished.

2026-03-30 17:55:04,154 INFO ScheduleDigitalInvoice finished.

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

2026-03-30 18:00:04,558 INFO MakeGlAccountPostings called...

2026-03-30 18:00:04,683 INFO MakeGlAccountPostings finished.

2026-03-30 18:00:04,699 INFO MakeCreditMemoRequest called...

2026-03-30 18:00:04,871 INFO MakeCreditMemoRequest finished.

2026-03-30 18:00:04,871 INFO ScheduleDigitalInvoice finished.

2026-03-30 18:05:03,497 INFO ScheduleDigitalInvoice called...

2026-03-30 18:05:03,685 INFO MakeGlAccountPostings called...

2026-03-30 18:05:03,825 INFO MakeGlAccountPostings finished.

2026-03-30 18:05:03,841 INFO MakeCreditMemoRequest called...

2026-03-30 18:05:03,997 INFO MakeCreditMemoRequest finished.

2026-03-30 18:05:03,997 INFO ScheduleDigitalInvoice finished.

2026-03-30 18:10:03,591 INFO ScheduleDigitalInvoice called...

2026-03-30 18:10:05,296 INFO MakeGlAccountPostings called...

2026-03-30 18:10:05,562 INFO MakeGlAccountPostings finished.

2026-03-30 18:10:05,562 INFO MakeCreditMemoRequest called...

2026-03-30 18:10:06,421 INFO MakeCreditMemoRequest finished.

2026-03-30 18:10:06,421 INFO ScheduleDigitalInvoice finished.

2026-03-30 18:15:04,647 INFO ScheduleDigitalInvoice called...

2026-03-30 18:15:04,835 INFO MakeGlAccountPostings called...

2026-03-30 18:15:04,960 INFO MakeGlAccountPostings finished.

2026-03-30 18:15:04,960 INFO MakeCreditMemoRequest called...

2026-03-30 18:15:05,132 INFO MakeCreditMemoRequest finished.

2026-03-30 18:15:05,132 INFO ScheduleDigitalInvoice finished.

2026-03-30 18:20:03,522 INFO ScheduleDigitalInvoice called...

2026-03-30 18:20:03,694 INFO MakeGlAccountPostings called...

2026-03-30 18:20:03,819 INFO MakeGlAccountPostings finished.

2026-03-30 18:20:03,819 INFO MakeCreditMemoRequest called...

2026-03-30 18:20:03,960 INFO MakeCreditMemoRequest finished.

2026-03-30 18:20:03,960 INFO ScheduleDigitalInvoice finished.

2026-03-30 18:25:03,645 INFO ScheduleDigitalInvoice called...

2026-03-30 18:25:03,832 INFO MakeGlAccountPostings called...

2026-03-30 18:25:03,942 INFO MakeGlAccountPostings finished.

2026-03-30 18:25:03,957 INFO MakeCreditMemoRequest called...

2026-03-30 18:25:04,098 INFO MakeCreditMemoRequest finished.

2026-03-30 18:25:04,114 INFO ScheduleDigitalInvoice finished.

2026-03-30 18:30:04,207 INFO ScheduleDigitalInvoice called...

2026-03-30 18:30:04,410 INFO MakeGlAccountPostings called...

2026-03-30 18:30:04,535 INFO MakeGlAccountPostings finished.

2026-03-30 18:30:04,535 INFO MakeCreditMemoRequest called...

2026-03-30 18:30:04,707 INFO MakeCreditMemoRequest finished.

2026-03-30 18:30:04,707 INFO ScheduleDigitalInvoice finished.

2026-03-30 18:35:03,556 INFO ScheduleDigitalInvoice called...

2026-03-30 18:35:03,712 INFO MakeGlAccountPostings called...

2026-03-30 18:35:03,853 INFO MakeGlAccountPostings finished.

2026-03-30 18:35:03,868 INFO MakeCreditMemoRequest called...

2026-03-30 18:35:04,009 INFO MakeCreditMemoRequest finished.

2026-03-30 18:35:04,009 INFO ScheduleDigitalInvoice finished.

2026-03-30 18:40:03,495 INFO ScheduleDigitalInvoice called...

2026-03-30 18:40:03,667 INFO MakeGlAccountPostings called...

2026-03-30 18:40:03,792 INFO MakeGlAccountPostings finished.

2026-03-30 18:40:03,792 INFO MakeCreditMemoRequest called...

2026-03-30 18:40:03,948 INFO MakeCreditMemoRequest finished.

2026-03-30 18:40:03,964 INFO ScheduleDigitalInvoice finished.

2026-03-30 18:45:04,289 INFO ScheduleDigitalInvoice called...

2026-03-30 18:45:04,477 INFO MakeGlAccountPostings called...

2026-03-30 18:45:04,602 INFO MakeGlAccountPostings finished.

2026-03-30 18:45:04,617 INFO MakeCreditMemoRequest called...

2026-03-30 18:45:04,758 INFO MakeCreditMemoRequest finished.

2026-03-30 18:45:04,758 INFO ScheduleDigitalInvoice finished.

2026-03-30 18:50:03,643 INFO ScheduleDigitalInvoice called...

2026-03-30 18:50:03,830 INFO MakeGlAccountPostings called...

2026-03-30 18:50:03,955 INFO MakeGlAccountPostings finished.

2026-03-30 18:50:03,955 INFO MakeCreditMemoRequest called...

2026-03-30 18:50:04,096 INFO MakeCreditMemoRequest finished.

2026-03-30 18:50:04,112 INFO ScheduleDigitalInvoice finished.

2026-03-30 18:55:03,670 INFO ScheduleDigitalInvoice called...

2026-03-30 18:55:03,857 INFO MakeGlAccountPostings called...

2026-03-30 18:55:03,967 INFO MakeGlAccountPostings finished.

2026-03-30 18:55:03,982 INFO MakeCreditMemoRequest called...

2026-03-30 18:55:04,139 INFO MakeCreditMemoRequest finished.

2026-03-30 18:55:04,139 INFO ScheduleDigitalInvoice finished.

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

2026-03-30 19:00:04,468 INFO MakeGlAccountPostings called...

2026-03-30 19:00:04,593 INFO MakeGlAccountPostings finished.

2026-03-30 19:00:04,593 INFO MakeCreditMemoRequest called...

2026-03-30 19:00:04,749 INFO MakeCreditMemoRequest finished.

2026-03-30 19:00:04,765 INFO ScheduleDigitalInvoice finished.

2026-03-30 19:05:03,564 INFO ScheduleDigitalInvoice called...

2026-03-30 19:05:03,736 INFO MakeGlAccountPostings called...

2026-03-30 19:05:03,986 INFO MakeGlAccountPostings finished.

2026-03-30 19:05:03,986 INFO MakeCreditMemoRequest called...

2026-03-30 19:05:04,158 INFO MakeCreditMemoRequest finished.

2026-03-30 19:05:04,268 INFO ScheduleDigitalInvoice finished.

2026-03-30 19:10:03,581 INFO ScheduleDigitalInvoice called...

2026-03-30 19:10:34,466 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-03-30 19:10:34,482 INFO ScheduleDigitalInvoice finished.

2026-03-30 19:15:04,953 INFO ScheduleDigitalInvoice called...

2026-03-30 19:15:35,846 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-03-30 19:15:35,846 INFO ScheduleDigitalInvoice finished.

2026-03-30 19:20:03,441 INFO ScheduleDigitalInvoice called...

2026-03-30 19:20:34,344 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-03-30 19:20:34,359 INFO ScheduleDigitalInvoice finished.

2026-03-30 19:25:03,392 INFO ScheduleDigitalInvoice called...

2026-03-30 19:25:34,332 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-03-30 19:25:34,332 INFO ScheduleDigitalInvoice finished.

2026-03-30 19:30:04,250 INFO ScheduleDigitalInvoice called...

2026-03-30 19:30:35,154 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-03-30 19:30:35,154 INFO ScheduleDigitalInvoice finished.

2026-03-30 19:35:03,592 INFO ScheduleDigitalInvoice called...

2026-03-30 19:35:34,465 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-03-30 19:35:34,465 INFO ScheduleDigitalInvoice finished.

2026-03-30 19:40:03,699 INFO ScheduleDigitalInvoice called...

2026-03-30 19:40:34,605 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-03-30 19:40:34,620 INFO ScheduleDigitalInvoice finished.

2026-03-30 19:45:04,784 INFO ScheduleDigitalInvoice called...

2026-03-30 19:45:35,744 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-03-30 19:45:35,760 INFO ScheduleDigitalInvoice finished.

2026-03-30 19:50:03,486 INFO ScheduleDigitalInvoice called...

2026-03-30 19:50: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-03-30 19:50:34,393 INFO ScheduleDigitalInvoice finished.

2026-03-30 19:55:03,524 INFO ScheduleDigitalInvoice called...

2026-03-30 19:55:34,414 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-03-30 19:55:34,430 INFO ScheduleDigitalInvoice finished.

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

2026-03-30 20:00:35,456 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-03-30 20:00:35,456 INFO ScheduleDigitalInvoice finished.

2026-03-30 20:05:03,841 INFO ScheduleDigitalInvoice called...

2026-03-30 20:05:34,745 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-03-30 20:05:34,745 INFO ScheduleDigitalInvoice finished.

2026-03-30 20:10:03,545 INFO ScheduleDigitalInvoice called...

2026-03-30 20:10:34,429 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-03-30 20:10:34,445 INFO ScheduleDigitalInvoice finished.

2026-03-30 20:15:04,278 INFO ScheduleDigitalInvoice called...

2026-03-30 20:15:35,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-03-30 20:15:35,170 INFO ScheduleDigitalInvoice finished.

2026-03-30 20:20:03,489 INFO ScheduleDigitalInvoice called...

2026-03-30 20:20:34,428 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-03-30 20:20:34,428 INFO ScheduleDigitalInvoice finished.

2026-03-30 20:25:03,501 INFO ScheduleDigitalInvoice called...

2026-03-30 20:25:34,426 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-03-30 20:25:34,426 INFO ScheduleDigitalInvoice finished.

2026-03-30 20:30:04,276 INFO ScheduleDigitalInvoice called...

2026-03-30 20:30:35,165 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-03-30 20:30:35,165 INFO ScheduleDigitalInvoice finished.

2026-03-30 20:35:03,538 INFO ScheduleDigitalInvoice called...

2026-03-30 20:35:34,420 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-03-30 20:35:34,435 INFO ScheduleDigitalInvoice finished.

2026-03-30 20:40:03,878 INFO ScheduleDigitalInvoice called...

2026-03-30 20:40:34,804 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-03-30 20:40:34,804 INFO ScheduleDigitalInvoice finished.