Asp.net MCV4 framework issue

后端 未结 7 572
清酒与你
清酒与你 2020-12-09 05:15

I made a web site using VS 2012 and MVC4, it is work my localhost but when i published and put my host it doesn\'t work. IIS confiurations are same. But it gives me this err

7条回答
  •  春和景丽
    2020-12-09 06:02

    you have to install .net framework 4.5 then it will works fine. "targetframework" attribute is not recognized by .net framework 4.0. So run the following command on command prompt and check either .net version 4.5 in installed on hosting machine or not.if not then install .net framework 4.5.it will work fine. run this command on cmd as follows.

    wmic /namespace:\\root\cimv2 path win32_product where "name like '%%.NET%%'" get version
    

提交回复
热议问题