how to resolve System.Configuration.ConfigurationErrorsException?

  • Thread starter Thread starter Jeremy Chaney
  • Start date Start date
J

Jeremy Chaney

It appears that my user.config file got corrupted causing my
"InitializeComponent" routine to throw an exception "Root element is
missing." when I start my app.

I figure I can just go into Explorer and delete the file to get things
working again, but I'd rather just catch the exception and resolve the
error programatically. I tried "Properties.Settings.Default.Reset();"
but that just throws the exception too. Does anyone know how I can
programatically get the user.config file back into a good state? The
path to the file looks like it is obfuscated (one of the folders in the
path contains the string "zc3rx3dim2uzbjjmpqetzf4h0qujaeb5"), so I don't
see trying to delete the file as a viable option.

Thanks,
--Jeremy
 
This is a repost of "how to resolve
System.Configuration.ConfigurationErrorsException?" with a different
subject line. Nobody responded, so I changed the subject to get more to
the point.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top