Dear Community:
We are wanting to deploy a Framework.net 5.0 web application with EntityFramework as a means of connection to an Informix database and on Windows Server 2019 IIS.
An exception occurs when establishing the connection with the database:
ERROR [58005] [IBM][DB2.NET] SQL0902 An unexpected exception has occurred in Process: 10188 Thread 6 AppDomain: Name:InvoicesFacilitator\r\nThere are no context policies. Function: AESEncryptADONET (Encryption Info)\n CallStack: at System.Environment.get_StackTrace()\r\n at IBM.Data.Db2.DB2ConnPool.HandleUnknownErrors(String strFncMsg, Exception exception, Boolean bThrow)\r\n at IBM.Data.Db2.DB2ConnPool.EncryptString(String value)\r\n at IBM.Data.Db2.DB2ConnPool.ReplaceConnectionStringParms(DB2Connection connection, String szValue, DB2ConnSettings& pSettings, DB2ConnSettingsInternal& pSettingsInternal, Boolean bAttach, Boolean pushDownStrAppended)\r\n at IBM.Data.Db2.DB2Connection.set_ConnectionString(String value)\r\n at IBM.Data.Db2.DB2Connection..ctor(String connectionString)\r\n at IBM.EntityFrameworkCore.Storage.Internal.Db2SqlConnection.CreateDbConnection()\r\n at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.get_DbConnection()\r\n at Microsoft.EntityFrameworkCore.RelationalDatabaseFacadeExtensions.GetDbConnection(DatabaseFacade databaseFacade)\r\n at BnkInvFnd.DataAccess.Repository.Data.TbaseContext.obtenerDatosSQL(String lsSQL) in E:\\_Documentos jbarbery\\Documentos\\07-Fuentes\\Proyectos en GIT\\BankInvoicesFinder\\BnkInvFnd.DataAccess\\Repository\\Data\\TbaseContext.cs:line 27\r\n at BnkInvFnd.DataAccess.Repository.TbaseRepository.getInvoicesByCage(Int32 liCage, String lsNit, DateTime ldFechaInicio, DateTime ldFechaFin, UInt32 liPagina) in E:\\_Documentos jbarbery\\Documentos\\07-Fuentes\\Proyectos en GIT\\BankInvoicesFinder\\BnkInvFnd.DataAccess\\Repository\\TbaseRepository.cs:line 108\r\n at BnkInvFnd.Services.Finder.buscarFacturas(UInt32 liPagina) in E:\\_Documentos jbarbery\\Documentos\\07-Fuentes\\Proyectos en GIT\\BankInvoicesFinder\\BnkInvFnd.Services\\Finder.cs:line 45\r\n at InvoicesFacilitator.Controllers.InvoicesController.buscarFacturas(InSearchInvoices value) in E:\\_Documentos jbarbery\\Documentos\\07-Fuentes\\Proyectos en GIT\\BankInvoicesFinder\\InvoicesFacilitator\\Controllers\\InvoicesController.cs:line 60\r\n at lambda_method2(Closure , Object , Object[] )\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)\r\n at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeAsync()\r\n at Microsoft.AspNetCore.Mvc.Routing.ActionEndpointFactory.<>c__DisplayClass7_0.<CreateRequestDelegate>b__0(HttpContext context)\r\n at Microsoft.AspNetCore.Routing.EndpointMiddleware.Invoke(HttpContext httpContext)\r\n at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)\r\n at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)\r\n at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)\r\n at Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware.Invoke(HttpContext httpContext)\r\n at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)\r\n at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)\r\n at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)\r\n at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)\r\n at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)\r\n at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)\r\n at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)\r\n at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass5_1.<UseMiddleware>b__2(HttpContext context)\r\n at Microsoft.AspNetCore.Builder.Extensions.UsePathBaseMiddleware.Invoke(HttpContext context)\r\n at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)\r\n at Microsoft.AspNetCore.Builder.Extensions.UsePathBaseMiddleware.Invoke(HttpContext context)\r\n at Microsoft.AspNetCore.HostFiltering.HostFilteringMiddleware.Invoke(HttpContext context)\r\n at Microsoft.AspNetCore.Hosting.HostingApplication.ProcessRequestAsync(Context context)\r\n at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContextOfT`1.ProcessRequestAsync()\r\n at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)\r\n at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContextOfT`1.ProcessRequestAsync()\r\n at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContext.HandleRequest()\r\n at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)\r\n at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContext.HandleRequest()\r\n at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContext.Execute()\r\n at System.Threading.ThreadPoolWorkQueue.Dispatch()\r\n at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback() InnerException Message: AESEncryptADONET - Encryption - no error information available Check InnerException property for more detail. SQLSTATE=58005
We have tried to set the folder location "clidriver" and "clidriver / bin" in the Windows environment variables but have not been successful.
We would appreciate guidance on this topic.
Sincerely,
JBV
------------------------------
Jesus Barbery Vargas
------------------------------
#DataManagementGlobal#DataServerDrivers