Nguyen The Binh
Hi Nick,
It is a great tutorial!
I have created a web app using ASP.NET CORE 3.1, Visual Studio 2019. I have followed the tutorial to connect Saml1 (Okta) with my web app. It works well on my laptop. Below is my appsettings.json:
{
“Logging”: {
“LogLevel”: {
“Default”: “Information”,
“Microsoft”: “Warning”,
“Microsoft.Hosting.Lifetime”: “Information”
}
},
“Saml2”: {
“IdPMetadata”: “https://dev-27134298.okta.c…”,
“Issuer”: “http://www.okta.com/exk20hv…”,
“SignatureAlgorithm”: “http://www.w3.org/2001/04/x…”,
“CertificateValidationMode”: “ChainTrust”,
“RevocationMode”: “NoCheck”
},
“AllowedHosts”: “*”
}
and below is launchSettings.json:
{
“iisSettings”: {
“windowsAuthentication”: false,
“anonymousAuthentication”: true,
“iisExpress”: {
“applicationUrl”: “http://localhost:36236”,
“sslPort”: 0
}
},
“profiles”: {
“IIS Express”: {
“commandName”: “IISExpress”,
“launchBrowser”: true,
“environmentVariables”: {
“ASPNETCORE_ENVIRONMENT”: “Development”
}
},
“AttendanceStaffSite”: {
“commandName”: “Project”,
“launchBrowser”: true,
“environmentVariables”: {
“ASPNETCORE_ENVIRONMENT”: “Development”
},
“sqlDebugging”: false,
“dotnetRunMessages”: “true”,
“nativeDebugging”: false,
“applicationUrl”: “https://localhost:5001;http://localhost:5000”,
“jsWebView2Debugging”: false
}
}
}
I use “AttendanceStaffSite” when running from Visual Studio 2019. Everything works well in localhost.
However, when I publish it into webserver (IIS) and run, it has error as below:
HTTP Error 500.30 - ANCM In-Process Start Failure
Common solutions to this issue:
The application failed to start
The application started but then stopped
The application started but threw an exception during startup
Troubleshooting steps:
Check the system event log for error messages
Enable logging the application process’ stdout messages
Attach a debugger to the application process and inspect
For more information visit: https://go.microsoft.com/fw…
Please note that I have published a default web app using ASP.NET CORE 3.1, Visual Studio 2019 on that server and It works well.
I do not know why it does not work. I feel that the Saml2 (Okta) now cannot connect to the web app after publishing on the web server.
Does anyone face the same issue? Any ideas/suggestions would be appreciated.
Thanks,
Binh.