Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
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>
Posted
Updated 19-Nov-22 4:28am
v3
Comments
Laiju k 22-Nov-22 0:14am    
This happens when I publish my site to IIS.I just need a proper way for hosting ASP . Net Core Web API on IIS

1 solution

This is the error you get on the client-side, not the server-side.

500 errors mean you server-side code stopped for some internal error. Basically, your server-side code probably crashed because of an exception that was thrown.

Run your server under the debugger and try the operation in the browser again. The debugger will stop the code on the line that throws the error.

Given what you posted in your question, there is nothing there that could possibly tell anyone what the problem is.
 
Share this answer
 
Comments
Laiju k 22-Nov-22 0:04am    
Sorry for the delay. I had some family issues last few days. Thanks for the solution I will check out what you have said. If there is any progress I shall get back to you.
Laiju k 22-Nov-22 0:11am    
And also this is an release error not runtime one
Dave Kreskowiak 22-Nov-22 7:37am    
You just told me you don't know what you're talking about. This is an error that occurs AT RUNTIME! You cannot get any error like this outside of the server code attempting to start or during its execution.
Laiju k 22-Nov-22 23:57pm    
Yea My fault. I just meant its an error after publish to IIS and browse
Laiju k 23-Nov-22 0:02am    
Can you also tell what more information that I can provide, So I can have a better solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900