Deploying website: 500 - Internal server error

后端 未结 22 2188
情深已故
情深已故 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:00

    Make sure your account uses IIS 7. For more information, see Customizing IIS Settings on Your Windows Hosting Account. Follow the instructions in Changing Pipeline Mode on Your Windows IIS 7 Hosting Account. Select Integrated Pipeline Mode. In your Project References section, set Copy Local to True for the following assemblies:

    System.Web.Abstractions
    System.Web.Helpers
    System.Web.Routing
    System.Web.Mvc
    System.Web.WebPages
    

    Add the following assemblies to your project, and then set Copy Local to True:

    Microsoft.Web.Infrastructure
    System.Web.Razor
    System.Web.WebPages.Deployment
    System.Web.WebPages.Razor
    Publish your application.
    

提交回复
热议问题