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


    调试网站时,异常出现:Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.

    Server Error in '/' Application.


    Configuration Error

    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

    Parser Error Message: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.

    Source Error:

    Line 15:   </connectionStrings>
    Line 16:   <system.web>
    Line 17:     <compilation targetFramework="4.5" />    
    Line 18:   </system.web>
    Line 19:   <runtime>


    Source File: D:Sitesxxxxxxweb.config    Line: 17


    Version Information: Microsoft .NET Framework Version:2.0.50727.5420; ASP.NET Version:2.0.50727.5420

    检查上面的异常信息,Insus.NET发现开发的项目是ASP.NET MVC是在.NET Framework 4.0的环境下运行的。但在最后一个即显示的是.NET 2.0

    解决方法:

  • 相关阅读:
    Django框架-模板层
    Django框架-路由层
    Django流程-以登录功能为例
    常见的MySQL慢查询优化
    函数之二
    python 之 函数
    python 文件操作
    set dict tuple 内置方法
    leetcode
    python 之 数据类型初接触
  • 原文地址:https://www.cnblogs.com/insus/p/5426952.html
Copyright © 2020-2023  润新知