Deploying website: 500 - Internal server error

后端 未结 22 2487
情深已故
情深已故 2020-11-21 23:30

I am trying to deploy an ASP.NET application. I have deployed the site to IIS, but when visiting it with the browser, it shows me this:

Server Error

22条回答
  •  没有蜡笔的小新
    2020-11-22 00:01

    My first attempt to publish and then run a very simple site serving only HTML produced "The page cannot be displayed because an internal server error has occurred."

    The problem: I had the site set to .NET 3.5 in Visual Studio (right click web site project -> Property Pages -> Build), but had the Web Site in Azure configured as .NET 4.0. Oops! I changed it to 3.5 in Azure, and it worked.

提交回复
热议问题