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?
NET Core Library, and the ASP.NET Core Module. The module allows ASP.NET Core apps to run behind IIS. If the Hosting Bundle is installed before IIS, the bundle installation must be repaired. Run the Hosting Bundle installer again after installing IIS.
In general, to deploy an ASP.NET Core app to a hosting environment: Deploy the published app to a folder on the hosting server. Set up a process manager that starts the app when requests arrive and restarts the app after it crashes or the server reboots.
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
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?
And another possibility: does your AppPoolIdentity-User has the appropriate right to access publish folder.
And you have "published"?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With