Unrecognized attribute 'targetFramework'.错误解决

将.NET4.0项目部署到IIS7的时候,浏览报错:

Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.

环境:Server2008+IIS7

解决方案:In IIS > Application Pools > Right click on Your APP > Basic Setting > Select FrameWork4.0

或者

Click IIS Server > Change .Net Framework VersionOn the Rightest Panel And Above Help

原文地址:https://www.cnblogs.com/jingtao/p/1803791.html