unexpected declaration in appSettings?

  • Thread starter Thread starter Pat Moran
  • Start date Start date
P

Pat Moran

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
 
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>
 
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
 
Back
Top