HTTP Error 500.30 - ASP.NET Core app failed to start
Common solutions to this issue:
The app failed to start
The app started but then stopped
The app 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 guidance on diagnosing and handling these errors, visit Troubleshoot ASP.NET Core on Azure App Service and IIS.
What I have tried:
I installed dotnet-hosting-7.0.0-win
Tried Publishing using different options like Folder and IIS
In IIS Option I use Web Deploy.
Currently using VS 2022 17.4 version with .net 7.0
I also added the following on Program.cs
</div>builder.Services.Configure<IISServerOptions>(options =>
{
options.AutomaticAuthentication = false;
});
builder.Services.AddAuthentication(IISServerDefaults.AuthenticationScheme);
And this on csproj inside <propertygroup>
<AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>