【发布时间】:2011-03-25 00:11:19
【问题描述】:
在 VS2010 中,项目的目标框架是 4.0。 在 IIS7 中,localhost 的 .Net 版本是 4.0。 但是对于我的应用程序的应用程序池,没有 4.0 框架可供选择。 在我部署站点并从中浏览文件后,我收到此错误:
Parser Error Message: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.
Source Error:
Line 14:
Line 15: <system.web>
Line 16: <compilation debug="true" targetFramework="4.0" />
Line 17:
Line 18: <authentication mode="Forms">
Source File: C:\inetpub\wwwroot\TestApp\web.config Line: 16
Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927
请帮帮我。
谢谢 雷迪
【问题讨论】:
标签: c# asp.net deployment .net-framework-version