asp.net core app deployed on iis meets 500 internal server error

后端 未结 10 1921
别那么骄傲
别那么骄傲 2020-12-09 14:29

:( Oops. 500 Internal Server Error An error occurred while starting the application.

This message came out when I added database fu

10条回答
  •  既然无缘
    2020-12-09 15:03

    Mark333's comment below solved my problem.

    Quoting for easy reading:

    "I'm using the normal publish provided by Visual Studio. And, I just found out using the latest version of Hosting Bundle will fix the issue. +1 on this microsoft.com/net/download/dotnet-core/runtime-2.1.0-rc1"

    I had to install for 1.1 since my app is a little older, but Hosting Bundle fixed it. In my case we deploy to a Docker image for our official environment, but when I want to do some testing locally I publish it and let my local IIS serve it up.

提交回复
热议问题