none
Error reading .config file in Windows Forms app - Access is denied in c windows application RRS feed

  • Question

  • Hi,

      I'm attempting to read a connection string from a .config file in a Windows Forms app. I got a configuration exception thrown - "Configuration system failed to initialize." The inner exception message says - "An error occurred loading a configuration file: Access is denied". The user I'm logged in as is in the Administrators group and there's no obvious problems with the config file. The same config file works just fine on my dev machine so it's not an issue with ordering of the XML. Any ideas would be greatly appreciated.If a response to your question is helpful or answers it please mark it as such!

    Thanks,

    Kesav

    Sunday, October 11, 2015 8:37 AM

Answers