Friday, March 02, 2007

Warning 'requirePermission' attribute is not declared.

If you happened to get this warning in your Visual Studio .net 2005 and wondering what might be the possible issue, then you found the right place for the solution. As most XML today uses a schema, this app.config or web.config have no exception.

To cut the story short, this warning appears due to the undeclared "attribute" in the schema. Viewing the *.config file property, there is a file defined in schemas. Open up the scemas and insert the below line under "ConfigSection_Section" ;

xs:attribute name="requirePermission" type="boolean_Type" use="optional"

with the tags "<" in front and "/>" at the back.

This will then solves the warning message.

Your Ad Here