0

I've just upgraded my multi project winforms C# solution from dotnet 2.0 to 4.5. In the process, I also upgraded from visual studio 2010 to 2015.

I'm having some troubles with my app.config. After upgrading, I got a whole bunch of messages, along the lines of

"Could not find schema information for the element 'loggingConfiguration'"

.

Some searching found the solution to be to generate a new schema (How to fix Error: "Could not find schema information for the attribute/element" by creating schema).

This did clear up that issue, but now I'm getting warnings when I open the app.config when I mouse over blue lines, like

"Imported schema for namespace 'urn:schemas-microsoft-com:asm.v1' was not resolved"

and

"The global element 'configuration' has already been declared"

The schemas for my app.config are:

"C:\Program Files (x86)\Microsoft Visual Studio 14.0\xml\Schemas\DotNetConfig45.xsd" "C:\Program Files (x86)\Microsoft Visual Studio 14.0\xml\Schemas\EntityFrameworkConfig_6_1_0.xsd" "C:\Program Files (x86)\Microsoft Visual Studio 14.0\xml\Schemas\RazorCustomSchema.xsd" "C:\xml\App.xsd"

I'll include a few images in the hope it makes my ramblings clearer:

Could not find schema message

Mouse over message once "could not find schema" message went away

Any assistance would be appreciated. Been working on this for hours now.

Community
  • 1
  • 1
Shaggs
  • 111
  • 3
  • 11
  • I get the 'could not find' stuff all the time - these are (i) messages only. Normally if you declared the config section correctly it is resolved at runtime just fine. – zaitsman Oct 22 '16 at 08:47
  • Oh - so these dont effect it reading the rest of the app.config file? Because I'm having trouble configuring it to allow me use dotnet v2.0 code with v4.5 (as per here: http://stackoverflow.com/questions/2455654/what-additional-configuration-is-necessary-to-reference-a-net-2-0-mixed-mode), and I was thinking maybe these messages may have had something to do with it. So I guess I had better make another posting for the mixed-mode issue. Thanks. – Shaggs Oct 22 '16 at 09:03

0 Answers0