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 的格式),但它们仍然无法解决我收到的恼人警告。谢谢您的尝试。