System.Configuration.appsettingReader returns weird error

  • Thread starter Thread starter RD
  • Start date Start date
R

RD

This code builds without errors, the line is in my declaration section of my
form.yet when I execute it I get an unhandled error.

Weird thing is I been testing this app all day yesterday, made no changes to
my dev machine and now all of a sudden it goes out to lunch.

Anybody have any ideas what that cryptic error means and what to do with it?

Thanks for any help

RD

Private configurationAppSettings As System.Configuration.AppSettingsReader =
New System.Configuration.AppSettingsReader


An unhandled exception of type 'System.Configuration.ConfigurationException'
occurred in system.dll

Additional information: Only elements allowed
 
RD said:
This code builds without errors, the line is in my declaration section of my
form.yet when I execute it I get an unhandled error.

Weird thing is I been testing this app all day yesterday, made no changes to
my dev machine and now all of a sudden it goes out to lunch.

Anybody have any ideas what that cryptic error means and what to do with it?

Thanks for any help

RD

Private configurationAppSettings As
System.Configuration.AppSettingsReader =
New System.Configuration.AppSettingsReader


An unhandled exception of type 'System.Configuration.ConfigurationException'
occurred in system.dll

Additional information: Only elements allowed

Sounds like your .config file may be malformed in some way?
 
Thanks, it was. Forgot to remove an end of comment mark.
Chalk it up to experience ;-) but I wish the error messages would give a
better idea exactly where to look.
Again, Thanks a lot.
 
Back
Top