为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.

posted on 2014-09-20 02:32  橡皮鱼  阅读(220)  评论(0编辑  收藏  举报