I am currently in the process of developing an application using NET 6 LTS and Angular 14. Everything runs smoothly on my development environment with IIS express. However, once I deploy the application (release version) on Windows 2019 with IIS 10, I encounter a 503 error right after logging in. I have checked that the application pool and site have the necessary permissions, even allowing everyone full access to confirm.
Below you can find the contents of the web.config file:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<location path="." inheritInChildApplications="false">
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath="dotnet" arguments=".\TheFile.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
</system.webServer>
</location>
</configuration>
Additionally, here is the appsettings.json file:
{
// JSON content here...
}
I suspect there might be an issue with the startup.cs file as well. Here's a snippet from it:
using AutoMapper;
// Other imported libraries...
namespace NextStepNG
{
public class Startup
{
// Startup class implementation code...
}
}
At this point, I am uncertain about what steps to take next. Is there something specific in the code that needs checking or modification? Has anyone encountered a similar problem before?
I've made various adjustments to the permissions and settings in IIS based on online resources, but the issue persists. The Windows event viewer displays the following error message:
Category: Duende.IdentityServer.Services.KeyManagement.KeyManager
EventId: 0
// Error details...
I appreciate any guidance or insight into resolving this issue, as deploying .NET Core applications has not posed a problem for me in the past.
P.S. Local testing shows no issues related to firewall or antivirus software interfering with the application.