Bonjour à tous,

J'obtiens l'erreur suivante lorsque je tente une connexion au sevreur Firebird:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
 
System.DllNotFoundException: Unable to load shared library 'secur32' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable: 
/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.2/secur32.so: cannot open shared object file: No such file or directory
/home/manu/Dev/xxxxx/Solution/solution_backend/api/bin/Debug/net7.0/secur32.so: cannot open shared object file: No such file or directory
/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.2/libsecur32.so: cannot open shared object file: No such file or directory
/home/manu/Dev/xxxxx/Solution/solution_backend/api/bin/Debug/net7.0/libsecur32.so: cannot open shared object file: No such file or directory
/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.2/secur32: cannot open shared object file: No such file or directory
/home/manu/Dev/xxxxx/Solution/solution_backend/api/bin/Debug/net7.0/secur32: cannot open shared object file: No such file or directory
/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.2/libsecur32: cannot open shared object file: No such file or directory
/home/manu/Dev/xxxxx/Solution/solution_backend/api/bin/Debug/net7.0/libsecur32: cannot open shared object file: No such file or directory
 
   at FirebirdSql.Data.Client.Managed.Sspi.SspiHelper.AcquireCredentialsHandle(String pszPrincipal, String pszPackage, Int32 fCredentialUse, IntPtr PAuthenticationID, IntPtr pAuthData, Int32 pGetKeyFn, IntPtr pvGetKeyArgument, SecHandle& phCredential, SecInteger& ptsExpiry)
   at FirebirdSql.Data.Client.Managed.Sspi.SspiHelper.InitializeClientCredentials()
   at FirebirdSql.Data.Client.Managed.Sspi.SspiHelper.InitializeClientSecurity()
   at FirebirdSql.Data.Client.Managed.AuthBlock.UserIdentificationData()
   at FirebirdSql.Data.Client.Managed.GdsConnection.Identify(String database)
   at FirebirdSql.Data.Client.ClientFactory.CreateManagedDatabase(ConnectionString options)
   at FirebirdSql.Data.Client.ClientFactory.CreateDatabase(ConnectionString options)
   at FirebirdSql.Data.FirebirdClient.FbConnectionInternal.Connect()
   at FirebirdSql.Data.FirebirdClient.FbConnection.Open()
   at api.Controller.LoginController.ConnectionExists(Credentials credentials) in /home/manu/Dev/xxxxx/Solution/solution_backend/api/Controller/LoginController.cs:line 170
   at api.Controller.LoginController.ProcessAuthenticate(Credentials credentials) in /home/manu/Dev/xxxxx/Solution/solution_backend/api/Controller/LoginController.cs:line 81
   at api.Controller.LoginController.Authenticate(Credentials credentials) in /home/manu/Dev/xxxxx/Solution/solution_backend/api/Controller/LoginController.cs:line 59
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
   at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddlewareImpl.Invoke(HttpContext context)
Environnement:

Ubuntu 22.04
IDE Rider
Application ASP .net core 7.0.2 c#11
FirebirdSql.Data.FirebirdClient 9.1.1

J'ai bien tenté d'installer la lib Win32.Interop.Secur32 mais j'ai toujours l'erreur.