Unhandled Exception #91
Unanswered
TehSmithster
asked this question in
Q&A
Replies: 1 comment
-
Hey @TehSmithster I think the issue is there isn't a valid OIDCConfig signing and encryption cert https://github.com/Resgrid/Core/blob/master/Core/Resgrid.Config/OidcConfig.cs#L18 you can set all the values in the Config project via Environment variables https://resgrid-core.readthedocs.io/en/latest/docker/index.html#settings-1. In the Resgrid.Console CLI app there is a GenOidcCerts command you can run to generate both certificates, you'll just need to them populate the string into the env variables. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Good early morning!
I am trying to get Resgrid to work on my computer. Here are my two issues:
.wslconfig has not appeared in my user profile so I cannot edit the access to 25GB of RAM Docker is installed and has loaded the variables and it does allow me to run the webservices, but it fails. I am assuming that this is because I cannot reconfigure the .wslconfig to meet the minimum specs for the program to work correctly. Below is what happens when I run the 'resgridwebservices.'
2022-12-22 02:29:48 [INFO wait] --------------------------------------------------------
2022-12-22 02:29:48 [INFO wait] docker-compose-wait 2.9.0
2022-12-22 02:29:48 [INFO wait] ---------------------------
2022-12-22 02:29:48 [DEBUG wait] Starting with configuration:
2022-12-22 02:29:48 [DEBUG wait] - Hosts to be waiting for: []
2022-12-22 02:29:48 [DEBUG wait] - Paths to be waiting for: []
2022-12-22 02:29:48 [DEBUG wait] - Timeout before failure: 30 seconds
2022-12-22 02:29:48 [DEBUG wait] - TCP connection timeout before retry: 5 seconds
2022-12-22 02:29:48 [DEBUG wait] - Sleeping time before checking for hosts/paths availability: 0 seconds
2022-12-22 02:29:48 [DEBUG wait] - Sleeping time once all hosts/paths are available: 0 seconds
2022-12-22 02:29:48 [DEBUG wait] - Sleeping time between retries: 1 seconds
2022-12-22 02:29:48 [DEBUG wait] --------------------------------------------------------
2022-12-22 02:29:48 [INFO wait] docker-compose-wait - Everything's fine, the application can now start!
2022-12-22 02:29:48 [INFO wait] --------------------------------------------------------
2022-12-22 02:29:49 Unhandled exception. System.Security.Cryptography.CryptographicException: m_safeCertContext is an invalid handle.
2022-12-22 02:29:49 at System.Security.Cryptography.X509Certificates.X509Certificate.ThrowIfInvalid()
2022-12-22 02:29:49 at System.Security.Cryptography.X509Certificates.X509Certificate2.get_Version()
2022-12-22 02:29:49 at Microsoft.Extensions.DependencyInjection.OpenIddictServerBuilder.AddEncryptionCertificate(X509Certificate2 certificate)
2022-12-22 02:29:49 at Resgrid.Web.ServicesCore.Startup.<>c.b__17_11(OpenIddictServerBuilder options) in /src/Web/Resgrid.Web.ServicesCore/Startup.cs:line 428
2022-12-22 02:29:49 at Microsoft.Extensions.DependencyInjection.OpenIddictServerExtensions.AddServer(OpenIddictBuilder builder, Action
1 configuration) 2022-12-22 02:29:49 at Resgrid.Web.ServicesCore.Startup.ConfigureServices(IServiceCollection services) in /src/Web/Resgrid.Web.ServicesCore/Startup.cs:line 394 2022-12-22 02:29:49 at System.RuntimeMethodHandle.InvokeMethod(Object target, Span
1& arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)2022-12-22 02:29:49 at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
2022-12-22 02:29:49 at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services)
2022-12-22 02:29:49 at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass9_0.g__Startup|0(IServiceCollection serviceCollection)
2022-12-22 02:29:49 at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection services)
2022-12-22 02:29:49 at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass8_0.b__0(IServiceCollection services)
2022-12-22 02:29:49 at Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.UseStartup(Type startupType, HostBuilderContext context, IServiceCollection services, Object instance)
2022-12-22 02:29:49 at Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.<>c__DisplayClass13_0.b__0(HostBuilderContext context, IServiceCollection services)
2022-12-22 02:29:49 at Microsoft.Extensions.Hosting.HostBuilder.CreateServiceProvider()
2022-12-22 02:29:49 at Microsoft.Extensions.Hosting.HostBuilder.Build()
2022-12-22 02:29:49 at Resgrid.Web.ServicesCore.Program.Main(String[] args) in /src/Web/Resgrid.Web.ServicesCore/Program.cs:line 13
2022-12-22 02:29:49 Aborted
Any help would be greatly appreciated!
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions