【问题标题】:Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive [duplicate]无法识别的属性“targetFramework”。请注意,属性名称区分大小写[重复]
【发布时间】:2011-12-26 00:33:52
【问题描述】:

可能重复:
Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive

我正在使用 windows 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>

【问题讨论】:

  • 4.0.3 可能会解决此问题。 You can check out the KB article here.@我,让我知道这是否解决了您的问题,我可能会尝试为此错误获取规范的问题/答案并关闭欺骗。谢谢。

标签: asp.net vb.net


【解决方案1】:

确保您已将 IIS 配置为在 .NET 4.0 中运行您的应用程序。

【讨论】:

    【解决方案2】:

    向 IIS 注册框架对我有用:

    C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319>aspnet_regiis -i
    

    【讨论】:

      猜你喜欢
      • 2012-05-24
      • 2013-07-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多