I h开发者_如何学编程ave an .NET winforms application(A). I am calling another .NET exe(B) file from the winforms application. When executes, it throws the following error.
I haven't kept any configuration file for the second exe file(B).
"Configuration system failed to initialize"
I encountered the same error for a program that I wrote to override the caps Lock controller. The "Configuration system failed to initialize" error occurred many months after the program had been in use. Because I configured the program to start automatically on reboot, I would see the error every time I restarted my (Windows 7) PC.
Although I did not intentionally create a configuration file, one was created by the .NET framework in a Users \#Username#\AppData\Local\#ProgramName_vsho_URL_#random_characters\#version_number\
folder. Deleting the user.config
file in that folder resolved the problem.
I had the same problem while running a visual studio project. I deleted all files in "C:\Users#UserName#\AppData\Local\Microsoft\VisualStudio#ProjectName#". Then it worked without "Configuration system failed to initialize" error.
search your application's product name inside "Users \#Username#\AppData\Local"
and delete user.config, then Start your app again....
See if this helps: http://social.msdn.microsoft.com/forums/en-US/vbgeneral/thread/41cfc8e2-c7f4-462d-9a43-e751500deb0a/
In my case running the program with Release config and then back on Debug solved the problem.
精彩评论