Asp.net 无法识别的属性';targetFramework';。请注意,属性名称在web配置中区分大小写

Asp.net 无法识别的属性';targetFramework';。请注意,属性名称在web配置中区分大小写,asp.net,web-config,Asp.net,Web Config,当我在godaddy中主持我的项目时,我得到了一个无法识别的属性“targetFramework”的错误。请注意,属性名称区分大小写。 我的Web.config.请帮助我 <?xml version="1.0"?> <configuration> <connectionStrings> </connectionStrings> <!-- For a description of

当我在godaddy中主持我的项目时,我得到了一个无法识别的属性“targetFramework”的错误。请注意,属性名称区分大小写。 我的Web.config.请帮助我

 <?xml version="1.0"?>
    <configuration>
      <connectionStrings>

      </connectionStrings>
      <!--
        For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=235367.

        The following attributes can be set on the <httpRuntime> tag.
          <system.Web>
            <httpRuntime targetFramework="4.5" />
          </system.Web>
      -->
      <system.web>
        <customErrors mode="Off"/>
        <authentication mode="None"/>
        <sessionState timeout="50000"/>
        <compilation debug="true" targetFramework="4.5">
          <assemblies>
            <add assembly="Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
          </assemblies>
        </compilation>
        <httpRuntime targetFramework="4.5"/>
        <globalization culture="en-GB"/>
        <trust level="Full"/>
      </system.web>
      <appSettings>
        <add key="ValidationSettings:UnobtrusiveValidationMode" value="None"/>
      </appSettings>
      <system.webServer>
        <defaultDocument enabled="true">
          <files>
            <clear/>
            <add value="Default.aspx"/>
          </files>
        </defaultDocument>
        <validation validateIntegratedModeConfiguration="false"/>
      </system.webServer>
    </configuration>


关于此问题的多个答案已经发布。可能重复的“我尝试过”bt出现相同错误。请更新您的问题,详细描述您尝试过的内容。