Warnings and Messages in the CSLA App.Config file

Warnings and Messages in the CSLA App.Config file

Old forum URL: forums.lhotka.net/forums/t/445.aspx


HarvDotNet posted on Thursday, June 22, 2006


[assembly: AssemblyVersion("2.0.0.0")]

When I compile the application, it says it builds successfully,
and there are no errors, warnings or messages.
However, if I open the App.Config file I get a number of warnings and messages as follows:


Warnings
The 'requirePermission' attribute is not declared.


Messages
Could not find schema information for the element 'applicationSettings'.
Could not find schema information for the element 'Csla.Properties.Settings'.
Could not find schema information for the element 'setting'.
Could not find schema information for the attribute 'name'.
Could not find schema information for the attribute 'serializeAs'.
Could not find schema information for the element 'value'.



I was able to resolove the Warning by replacing the DotNetConfig.xsd file
located here "\Program Files\Microsoft Visual Studio 8\Xml\Schemas"

This link explaing things
http://www.peterritchie.com/Hamlet/Downloads/74.aspx



I do not see how to fix the "Messages"


I have the same problem in the VB version of CSLA
There are several more "Messages" --- 18 in all


Any help resolving these two would be appreciated.

Lastly, why do the warnings and messages only appear when I open the App.Config file?
It seems to me they should show up even when all VS - IDE windows are closed.

TIA
Harvey Sather
Saskatoon, Canada



ajj3085 replied on Thursday, June 22, 2006

The errors and warnings only show up because compiling does not check Xml files for valid syntax; however opening the app.config (which is just an xml file) the IDE parses it and lets you know about any errors.  You can safely ignore those warnings.  I think you'd have to create an xsd specially for the Csla stuff if you want to get rid of them.. this i'm not sure how to do.

RockfordLhotka replied on Saturday, June 24, 2006

Actually none of those items are from csla at all - they are from Visual Studio. I would think that the correct xsd would already exist within Visual Studio, but perhaps not...

david.wendelken replied on Wednesday, June 28, 2006

HarvDotNet:

Warnings
The 'requirePermission' attribute is not declared.

This is a comment from the DotNetNuke web.config file.

<!-- the requirePermission attribute will cause a syntax warning - please ignore - it is required for Medium Trust support-->

Apparently the xsd that some?? versions of Visual Studio provide isn't up-to-date.

I also get spurious warnings on html files when I turn on the accessibility checking, messages like:

      Unrecognized tag or prefix filter 'asp' .

Give a loud raspberry to the programmer and QC staff that let this one slip thru!

HarvDotNet replied on Wednesday, June 28, 2006

Thanks, I was beginning to think I was the only one having this problem

Copyright (c) Marimer LLC