How to resolve “Could not find schema information for the element/attribute <xxx>”?

Topics: Data Access Application Block, Exception Handling Application Block, Logging Application Block
Mar 28, 2012 at 9:24 PM

Hi,

I'm using enterprise library 5.0 in my .net webservice project. When I open my web.config file in VS 2010, I'm getting around 60 messages related to schema. Sample below:

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 'exceptionHandling'.   
Could not find schema information for the element 'exceptionPolicies'.   
Could not find schema information for the element 'add'.   
Could not find schema information for the attribute 'name'.

If I close the web.config, the messages'll go away. Can anyone please help how to resolve this issue?

Thanks,

Smitha Menon

Mar 29, 2012 at 8:00 AM

If you install Enterprise Library using the installation package it will install the schema file in the Visual Studio schema cache (%InstallRoot%\Xml\Schemas).  On my machine this is:

%Program Files%\Microsoft Visual Studio 10.0\Xml\Schemas\EnterpriseLibrary.Configuration.xsd 

As far as I know the installer is the only official public location for the schema file.

--
Randy Levy
Enterprise Library support engineer
entlib.support@live.com