ASP NET Core Deployment for IIS

I made a simple ASP.NET Core tutorial based on asp.net here .

Now I would like to publish it on my other machine in IIS.

I followed the instructions on this site , but I just can't get it to work ...

I keep getting 500 internal server errors

Based on the logs in Event Viewer, this is a culprit:

Failed to start process with the commandline 'dotnet .\MyWebApp.dll'. Error code = '0x80004005'. 

Can anybody help me?

+7
iis deployment asp.net-core publish
source share
2 answers

Had the same error in a very similar situation. (New ASP.NET Core web api deployed in IIS)

Further research led me to the conclusion that in my case, 500.19 was an exact error.

Installation The main ASP.NET module solved my problem.

reference: MVC 6 posted on IIS HTTP Error 500.19

+2
source share

A return code of 500 indicates a problem starting the application.

In the publish / project folder, try starting without IIS by typing:

dotnet yourapp.dll

It works? Not. You have problems in your project, and the result should lead to your problem.

If it works correctly: look at the β€œmodules” in IIS Manager, is there the following entry?

enter image description here

And one more possibility: your AppPoolIdentity-User has the corresponding access right to the publication folder.

And you "published"?

+2
source share

All Articles