VB2012 app.config error
VB2012 app.config error
VB2012 app.config error
VB2012 app.config error
VB2012 app.config error
VB2012 app.config error VB2012 app.config error VB2012 app.config error VB2012 app.config error VB2012 app.config error VB2012 app.config error VB2012 app.config error VB2012 app.config error
VB2012 app.config error VB2012 app.config error
VB2012 app.config error
Go Back  Xtreme Visual Basic Talk > > > VB2012 app.config error


Reply
 
Thread Tools Display Modes
  #1  
Old 01-29-2013, 05:29 AM
CodeCruncher CodeCruncher is offline
Junior Contributor
 
Join Date: Jul 2006
Posts: 355
Default VB2012 app.config error


VS2012 seems to have a built in bug (read MS feature)

I just created a brand new Windows Forms Application and without even opening up the code window, I went straight to the app.config file.

It won't read from the file with this error present. Anyone got any ideas?

I found one article that talked about modifying the DotNetConfig.xsd, but I can't find that file in the Schema location mentioned (or anywhere else for that matter).
Attached Images
File Type: jpg Error.jpg (50.6 KB, 10 views)
Reply With Quote
  #2  
Old 01-29-2013, 08:17 AM
AtmaWeapon's Avatar
AtmaWeaponVB2012 app.config error AtmaWeapon is offline
Fabulous Florist

Forum Leader
* Guru *
 
Join Date: Feb 2004
Location: Austin, TX
Posts: 9,500
Default

Does it stop the project from building? If not I wouldn't worry about it. The XAML editor throws up junk all the time that has no basis in reality and I just ignore it and go about my way.

Seems like this is a pretty detailed discussion of a solution that includes the footnote "I restarted my machine and this went away." Everyone who has a lot of information on it seems to indicate it was one particular project they were having trouble with.
__________________
.NET Resources
My FAQ threads | Tutor's Corner | Code Library
I would bet money 2/3 of .NET questions are already answered in one of these three places.
Reply With Quote
  #3  
Old 01-29-2013, 07:07 PM
CodeCruncher CodeCruncher is offline
Junior Contributor
 
Join Date: Jul 2006
Posts: 355
Default

Looks like it might be a potential answer except I have no XML >> Schema option (see pic above).

Looked on the web 2012 Express may not have it... Do you know of a back door, or different way to get to the same spot?

Edit:
When I bring up the project properties (app.config) I notice the values I created in there aren't changing.

I also notice that the Settings.settings file is the same as the app.config settings, so the real chages are taking place somewhere else.

The problem is I am leveraging mysettings to compare old values against new value and they seem to work off the app.config file.

Last edited by CodeCruncher; 01-29-2013 at 07:32 PM.
Reply With Quote
  #4  
Old 01-30-2013, 05:02 PM
CodeCruncher CodeCruncher is offline
Junior Contributor
 
Join Date: Jul 2006
Posts: 355
Default Solution found to locating XML Schema

More by accident than anything else I found the solution to my problem (and others on the web).

See pics below for how to access XML - Schema in VS2012 Express Edition.

Now to see if the solutions provided on the net cures the initial problem with app.config...
Attached Images
File Type: jpg Schema01.jpg (438.2 KB, 25 views)
File Type: jpg Schema02.jpg (367.5 KB, 22 views)
Reply With Quote
  #5  
Old 01-30-2013, 09:56 PM
CodeCruncher CodeCruncher is offline
Junior Contributor
 
Join Date: Jul 2006
Posts: 355
Default Solution Found

After following several wild goose chases, installing Enterprise Library 5.0 trying to find a copy of EnterpriseLibrary.Configuration.xsd which was supposedly in Enterprise Library 5.0.msi (which it wasn’t).

I followed the second lead I found on the net, and that was to install a copy of DotNetConfig.xsd to the C:\Program Files (x86)\Microsoft Visual Studio 11.0\Xml\Schemas folder (which VS2012 Express doesn’t install by default).

Note: I used the DotNetConfig.xsd file from my other PC with VS2010 on it.

I did this and went back into the XML –Schema using the same steps as before. I then changed the “Use” (far left column) from “Automatic” to “Use this schema” and clicked on the bottom right.

SUCCESS!!! The squiggly line under <configuration> was instantly gone.
Now I’m not saying that that this elusive EnterpriseLibrary.Configuration.xsd file wouldn’t have the same result, all I am saying is I fixed my initial problem / error message of “The ‘configuration’ element is not declared” without it.
Attached Images
File Type: jpg Schema03.jpg (393.9 KB, 23 views)
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
VB2012 app.config error
VB2012 app.config error
VB2012 app.config error VB2012 app.config error
VB2012 app.config error
VB2012 app.config error
VB2012 app.config error VB2012 app.config error VB2012 app.config error VB2012 app.config error VB2012 app.config error VB2012 app.config error VB2012 app.config error
VB2012 app.config error
VB2012 app.config error
 
VB2012 app.config error
VB2012 app.config error
 
-->