evil gugl
evil gugl

Reputation: 125

Deploying ASP NET Core to IIS

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

Now, I'd like to publish it on my other machine on the IIS.

I've followed the instructions on this site but I just can't get it working...

I keep getting 500 Internal server error

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

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

Can anyone please help me?

Upvotes: 7

Views: 1230

Answers (2)

Kirsten
Kirsten

Reputation: 500

Returncode 500 points to a problem in starting your app.

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

dotnet yourapp.dll

Does this work? No: you have a problem in your project and the output should lead to your problem.

If it works properly: view "modules" in IIS Manager, is there following entry?

enter image description here

And another possibility: does your AppPoolIdentity-User has the appropriate right to access publish folder.

And you have "published"?

Upvotes: 2

Dave
Dave

Reputation: 2994

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

Further investigation lead me to find that, in my case, 500.19 was the exact error.

Installing ASP.NET Core Module solved my problem.

reference: MVC 6 Hosted on IIS HTTP Error 500.19

Upvotes: 2

Related Questions