IIS does not recognize the attribute "targetFramework" --- resolve Road

After installing VS2010, .NET Framework 4 web applications created on the IIS (7.0) under the following error occurs:

    

      "Version information" which tells us a version of the .NET Framework and ASP.NET 2.0 are, but when we use the production site of the .NET Framework 4.0, you must set the property website .NET Framework 4.0.

      Open the Control Panel under Win7 - Administrative Tools --Internet Information Services (IIS) Manager, select the default Web site, in the column select "Manage site" to the right of the "Advanced Settings ..." and the "application pool" was changed to "ASP .NET v4.0 ", as shown below:

 

    Now enter localhost in the browser, the problem should be solved!

Reproduced in: https: //my.oschina.net/garyun/blog/602740

Guess you like

Origin blog.csdn.net/weixin_34080951/article/details/91774555