Deploying website: 500 - Internal server error

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

    I finally solved this "500 Internal server" error when deploying the ASP.NET MVC 3.0 application on godaddy.ocm shared hosting.

    somehow there were discrepancies on the version of DLL files referenced and version mentioned in file web.config.

    I tried all the options mentioned in various forum. Nothing helped, although everyone suggested the same kind of fix, but somehow it didn't work in my scenario. Finally after banging my head for two days. I decided to delete all DLL file reference and delete web.cofig (make a local copy) from the project and let the application throw the error and then add the DLL files one by one making copy to local=true.

    After all the DLL files were added, I created a new ASP.NET MVC application and copied the web.config of new application to my actual application. So my actual application now has a new web.config, and then I copied the connectionstring and other references from the local copy of web.config that I saved.

    I just compiled the application and published to a local folder and FTP the published folder to goDaddy.

    It worked and finally my problem was solved.

提交回复
热议问题