首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >如何解决“找不到元素/属性<xxx>的模式信息”?

如何解决“找不到元素/属性<xxx>的模式信息”?
EN

Stack Overflow用户
提问于 2008-10-07 19:19:41
回答 3查看 150.7K关注 0票数 47

在visual studio中,我有一个使用MS Enterprise Library4.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'.  

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

在做了一些检查之后,我发现这是因为Visual Studio需要一个XSD或模式文件,以便正确地“理解”web.config文件中的模式并为其提供智能感知。

有谁知道如何向VS提供适当的模式信息,或者如何关闭这些消息?

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

EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/179927

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档