question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The SSL connection could not be established, see inner exception.

See original GitHub issue

Question

When I deployed Admin to iis, Admin didn’t work properly ,Sts and Admin.Api is can run .What should I do?

Relevant parts of the log file

2021-09-08 15:55:10.698 +08:00 [ERR] Connection ID "16068843484953444874", Request ID "8000020b-0003-df00-b63f-84710c7967bb": An unhandled exception was thrown by the application.
System.InvalidOperationException: IDX20803: Unable to obtain configuration from: 'System.String'.
   at Microsoft.IdentityModel.Protocols.ConfigurationManager`1.GetConfigurationAsync(CancellationToken cancel)
   at Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler.HandleChallengeAsyncInternal(AuthenticationProperties properties)
   at Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler.HandleChallengeAsync(AuthenticationProperties properties)
   at Microsoft.AspNetCore.Authentication.AuthenticationHandler`1.ChallengeAsync(AuthenticationProperties properties)
   at Microsoft.AspNetCore.Authentication.AuthenticationService.ChallengeAsync(HttpContext context, String scheme, AuthenticationProperties properties)
   at Microsoft.AspNetCore.Authorization.Policy.AuthorizationMiddlewareResultHandler.HandleAsync(RequestDelegate next, HttpContext context, AuthorizationPolicy policy, PolicyAuthorizationResult authorizeResult)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)
   at NWebsec.AspNetCore.Middleware.Middleware.CspMiddleware.Invoke(HttpContext context)
   at NWebsec.AspNetCore.Middleware.Middleware.MiddlewareBase.Invoke(HttpContext context)
   at NWebsec.AspNetCore.Middleware.Middleware.MiddlewareBase.Invoke(HttpContext context)
   at NWebsec.AspNetCore.Middleware.Middleware.MiddlewareBase.Invoke(HttpContext context)
   at NWebsec.AspNetCore.Middleware.Middleware.MiddlewareBase.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.HandleException(HttpContext context, ExceptionDispatchInfo edi)
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)
   at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContextOfT`1.ProcessRequestAsync()

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Lootvoetcommented, Oct 7, 2021

I’m having the same issue. Any way to fix this?

EDIT: In my case, there was a folder named ‘cacerts.crt’ in my /shared/nginx/certs, and de CAroot crt was incorrectly copied inside this folder. Deleting this folder and running the ‘copy’ command again fixed it for me.

0reactions
JosonJiangcommented, Mar 9, 2022

how can I debbug the Admin project in visual studio or vs code ?I don’t know how to debug it,i hava the Cert . it is created by the mkcert ; mkcert -pkcs12 localhost 127.0.0.7 ::1 ,mkcert -pkcs12 skoruba.local.pfx skoruba.local *.skoruba.local . and I edit the host file (window),but it now work

Read more comments on GitHub >

github_iconTop Results From Across the Web

The SSL connection could not be established
You get this error because your app isn't able to validate the certificate of the connection, and it's especially common to use this...
Read more >
c# web api The SSL connection could not be established, ...
This could be due to a number of reasons, including incorrect certificate format, incorrect certificate chain, or incorrect certificate data.
Read more >
The SSL Connection could not be established, see inner ...
"The SSL connection could not be established, see inner exception." Everything works fine in Postman / Chrome, but not in WebSurge - any...
Read more >
The SSL connection could not be established
I am developing a project using ASP.NET Core WebAPI, and when I try to debug this one, I get the following error message:...
Read more >
The SSL connection could not be established, see inner ...
Volo.Abp.Http.Client.AbpRemoteCallException: An error occurred during the ABP remote HTTP request. (The SSL connection could not be established, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found