7

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?

2 Answers 2

2

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

Sign up to request clarification or add additional context in comments.

Comments

2

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"?

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.