Quickest, easiest laziest way to solve the problem:
UPDATE Sept 2015
This answer continues to get upvotes, so I'm going to leave it here since it seems to be helpful to some people, but please check out the other answers from @reexmonkey and @Pressacco first. They may provide better results.
ORIGINAL ANSWER
Give this a shot:
That should cause those messages to disappear.
I saved my web.xsd in the root of my web folder (which might not be the best place for it, but just for demonstration purposes) and my Schemas property looks like this:
"C:\Program Files (x86)\Microsoft Visual Studio 10.0\xml\Schemas\DotNetConfig.xsd" "Web.xsd"
An XSD is included with EntLib 5, and is installed in the Visual Studio schema directory. In my case, it could be found at:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Xml\Schemas\EnterpriseLibrary.Configuration.xsd
It is worth repeating that these "Error List" "Messages" ("Could not find schema information for the element") are only visible when you open the app.config file. If you "Close All Documents" and compile... no messages will be reported.
I found that there was a syntax error in the related module and it wasn't compiling - the compiler didn't tell me that though. Just gave me the error regarding the app.config stuff. VS2010. Once I had fixed the syntax error, all was good.
This error occurs when your project references out of date schemas. Use Visual Studio to generate new ones.
In Visual Studio, do the following:
app.config
or web.config
file.XML
menu and select Create Schema
. This will trigger
app#.xsd
(Windows app) orweb#.xsd
(Website) file(s) to generate.
App.config
or web.config
file, right-click in the text-editor and select properties and click the ...
button next to the value for Schemas. Add
button.OK
The Could not find schema information for the attribute/element error(s) should now be resolved.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With