...
Error(s)
While starting the CoreOne Authentication-Service, you encounter this error while trying to start the Authentication-Service, make the following error:
Code Block |
---|
Application startup exception: Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException: The system cannot find the file specified |
Expand |
---|
|
Code Block |
---|
Application startup exception: Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException: The system cannot find the file specified
at Internal.NativeCrypto.CapiHelper.CreateProvHandle(CspParameters parameters, Boolean randomKeyContainer)
at System.Security.Cryptography.RSACryptoServiceProvider.get_SafeProvHandle()
at System.Security.Cryptography.RSACryptoServiceProvider.get_SafeKeyHandle()
at System.Security.Cryptography.RSACryptoServiceProvider..ctor(Int32 keySize, CspParameters parameters, Boolean useDefaultKeySize)
at Org.BouncyCastle.Security.DotNetUtilities.CreateRSAProvider(RSAParameters rp) in D:\a\1\s\crypto\src\security\DotNetUtilities.cs:line 247
at Org.BouncyCastle.Security.DotNetUtilities.ToRSA(RsaPrivateCrtKeyParameters privKey) in D:\a\1\s\crypto\src\security\DotNetUtilities.cs:line 169
at iTsense.CoreLogin2.Server.Security.Certificates.CertificateContainer.GetX509Certificate2(Boolean includePrivateKey) in C:\Git\Moving\Common\CoreLogin2\iTsense.CoreLogin2.Server\Security\Certificates\CertificateContainer.cs:line 71
at iTsense.CoreLogin2.DataRepositories.MySql.MySqlSigningCredentials.GetX509Certificate(StoredCertificate certificate) in C:\Git\Moving\Common\CoreLogin2\iTsense.CoreLogin2.DataRepositories.MySql\MySqlSigningCredentials.cs:line 168
at iTsense.CoreLogin2.DataRepositories.MySql.MySqlSigningCredentials.GetX509Certificate(String[] data) in C:\Git\Moving\Common\CoreLogin2\iTsense.CoreLogin2.DataRepositories.MySql\MySqlSigningCredentials.cs:line 161
at iTsense.CoreLogin2.DataRepositories.MySql.MySqlSigningCredentials.ConfigureSigning(ISigningBuilder builder) in C:\Git\Moving\Common\CoreLogin2\iTsense.CoreLogin2.DataRepositories.MySql\MySqlSigningCredentials.cs:line 79
at iTsense.CoreLogin2.Server.Extensions.IdentityServerBuilderExtensions.ConfigureCoreLogin(IIdentityServerBuilder builder, IMvcBuilder mvcBuilder, ILogger logger) in C:\Git\Moving\Common\CoreLogin2\iTsense.CoreLogin2.Server\Extensions\IdentityServerBuilderExtensions.cs:line 169
at iTsense.CoreLogin2.Server.Startup.ConfigureServices(IServiceCollection services) in C:\Git\Moving\Common\CoreLogin2\iTsense.CoreLogin2.Server\Startup.cs:line 134
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
at Microsoft.AspNetCore.Hosting.Internal.WebHost.EnsureApplicationServices()
at Microsoft.AspNetCore.Hosting.Internal.WebHost.Initialize()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()
Hosting environment: Production
Content root path: C:\Program Files\ITSENSE AG\Authentication service\Server\
Now listening on: http://127.0.0.1:33465
Application started. Press Ctrl+C to shut down.
crit: Microsoft.AspNetCore.Hosting.Internal.WebHost[6]
Application startup exception |
|
Solution(s)
Make sure that the following setting in the IIS are is correct:
...
IIS → Application Pools → CoreOne Authentication Service → Advanced Settings → Process Model → Load User Profile = True
...