Configuration Error related to targetFramework in web.config

后端 未结 7 889
青春惊慌失措
青春惊慌失措 2021-02-02 06:54

I have made an MVC website in Visual Studio 2015 and it works in my localhost. But when I published my website and put into my host, it doesn\'t work. It gives me this error not

7条回答
  •  说谎
    说谎 (楼主)
    2021-02-02 07:30

    I just had a similar problem following the installation ( windows update) of the KB 3205402.

    Big difference with my case: the application worked well before the update !

    ==> I found in "IIS Manager", in "ISAPI and CGI Restrictions", that the framework ASP.NET v4.0.30319 has been switched to "unauthorized" !

    Switching it to "Authorized" resolved my problem

提交回复
热议问题