相关疑难解决方法(0)

如何解决"无法找到元素/属性<xxx>的架构信息"?

在visual studio中,我有一个使用MS Enterprise Library 4.0应用程序块的asp.net 3.5项目.

当我打开我的Web配置文件时,我的错误列表中填满了99条消息

Could not find schema information for the element 'dataConfiguration'.  
Could not find schema information for the attribute 'defaultDatabase'.  
Could not find schema information for the element 'loggingConfiguration'.   
Could not find schema information for the attribute 'tracingEnabled'.   
Could not find schema information for the attribute 'defaultCategory'.  
Run Code Online (Sandbox Code Playgroud)

如果我关闭Web.config文件,它们就会消失(但是一旦我需要再次打开文件它们就会回来).

经过一番研究后,我发现这是因为缺少Visual Studio所需的XSD或模式文件,以便正确"理解"web.config文件中的模式并为其提供智能感知.

有谁知道如何为VS提供适当的架构信息,或者关闭这些消息?

@Franci - 感谢您的信息,我已经尝试过该工具以及MMC管理单元(它们往往会破坏Web.config中的格式),但它们仍然无法解决我收到的恼人警告.谢谢你的尝试.

.net xml xsd enterprise-library

47
推荐指数
3
解决办法
15万
查看次数

标签 统计

.net ×1

enterprise-library ×1

xml ×1

xsd ×1