为web.config创建web.xsd

Give this a shot. In Visual Studio 2010, open your app.config or web.config file. Go to the XML menu and select Create Schema. This action should create a new file called "app.xsd" or "web.xsd". Save that file to disk. Go back to your app.config or web.config and in the edit window, right click and select properties. From there, make sure the xsd you just generated is referenced in the Schemas property. If it‘s not there then add it. That should cause those messages to disappear.

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。