Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / January 2008

Tip: Looking for answers? Try searching our database.

unexpected declaration in appSettings?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Pat Moran - 11 Jan 2008 16:20 GMT
I have an application that was running fine on Vista but has suddenly started
failing whn it tries to access configuration data. Whe I try to access the
ConecctionsSrting or call the method ConfigurationManager.AppSettings,

I get an exception with the message

The configuration section 'appSettings' has an unexpected declaration.

I have check the application and the user config files and they seem to be
OK. Any suggestions for what th eproblem migh be.

Thanks

Pat
Michael Nemtsev [MVP] - 12 Jan 2008 11:29 GMT
Hello Pat,

compare the current version of your config with previous one.
seems that smth was changed accidentally

---
WBR,
Michael  Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour 

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

PM> I have an application that was running fine on Vista but has
PM> suddenly started failing whn it tries to access configuration data.
PM> Whe I try to access the ConecctionsSrting or call the method
PM> ConfigurationManager.AppSettings,
PM>
PM> I get an exception with the message
PM>
PM> The configuration section 'appSettings' has an unexpected
PM> declaration.
PM>
PM> I have check the application and the user config files and they seem
PM> to be OK. Any suggestions for what th eproblem migh be.
PM>
PM> Thanks
PM>
PM> Pat
PM>
Pat Moran - 12 Jan 2008 17:31 GMT
I have checked and system does not currently have any Application, local user
or roaming user config files.  I used the            
Configuration uconfig =
ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.PerUserRoamingAndLocal);

function(s)) to get the diffeent config flr paths and checked that they
don't exist.

Pat

> Hello Pat,
>
[quoted text clipped - 25 lines]
> PM> Pat
> PM>

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.