可能重复:
Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive
我使用窗口xp和iis 5.1来运行应用程序。
发生错误
Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.
Line 32: </providers>
Line 33: </roleManager>
Line 34: <compilation debug="true" strict="false" explicit="true" targetFramework="4.0">
Line 35: <assemblies>
Line 36: <add assembly="System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></assemblies></compilation>
答案 0 :(得分:2)
确保已配置IIS以在.NET 4.0中运行应用程序。
答案 1 :(得分:1)
向IIS注册框架对我有用:
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319>aspnet_regiis -i