ASP.NET MVC / IIS 7.5: 500 Internal Server Error for static content only

后端 未结 3 1006
甜味超标
甜味超标 2021-02-13 10:30

An ASP.NET MVC project running under IIS 7.5 (but problem may exist on earlier versions and non-MVC sites) which was previously working has started returning 500 Internal Server

3条回答
  •  遥遥无期
    2021-02-13 10:51

    finally solved this 500 Internal server error when deploying MVC 3.0 application on godaddy.ocm shared hosting

    somehow there were discrepancies on the version of DLLs referenced and version mentioned in web.config.

    Tried all the options mentioned in various forum, Nothing helped, although everyone suggested same kind of fix, but somehow didnt work in my scenario. finally after banging my head for 2 days. i decided to deleted all dll reference and delete web.cofig( make a local copy) from project and let application throw error and then add dll one by one making copy to local=true. after all the dlls are added. i created a new asp.net mvc application and copied the web.config of new app to my actual app. so my actual app now has a new web.config, then i copied the connectionstring and other reference from the local copy of web.config that i saved .

    just compiled the application and published to local folder and FTP the published folder to goDaddy

    It worked and finally my problem was solved

    Hope this will help people and they dont waste 2 days like me,

提交回复
热议问题