配置错误在web.config中提供 [英] CONFIGURATION ERROR IS GIVING in web.config
本文介绍了配置错误在web.config中提供的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的web.config代码如下:
My code for web.config is givenbelow
<configuration>
<system.web>
<compilation debug="true" targetframework="4.0" />
</system.web>
<system.web>
<customerrors mode="Off" />
</system.web>
</configuration>
详细错误如下:
配置错误
描述:处理为此请求提供服务所需的配置文件时发生错误。请查看下面的具体错误详细信息并相应地修改配置文件。
分析器错误消息:无法识别的属性'targetFramework'。请注意,属性名称区分大小写。
来源错误:
Details errors are given below
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 2: <configuration>
Line 3: <system.web>
Line 4: <compilation debug="true" targetframework="4.0" />
Line 5: </system.web>
Line 6: <system.web>
</system.web></configuration>
推荐答案
如果您在visual studio 2008中使用您的应用程序然后尝试删除
标签targetframework =4.0。
如果你的编译和调试大多发生这些类型的错误不同版本的dotnet中的项目。
If your are using your application in visual studio 2008 then try to remove
the tag targetframework="4.0".
Mostly these type of error(s) occur if your compiling and debugging the projects in different version of dotnet.
如果您在visual studio 2008中使用您的应用程序,则尝试删除
标记targetframework =4.0。
它对我有用。
If your are using your application in visual studio 2008 then try to remove
the tag targetframework="4.0".
It worked for me.
这篇关于配置错误在web.config中提供的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文