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>