I have developed a program in c#.net 4. When the application is executed directly by clicking exe file in the debug folder then an MDI form is open. When I click on a button in the MDI form to open another form then it shows the following error:
"The application has failed to start because config.dll was not found. Reinstalling the application may fix the problem"
But when the application is run from the source code in VS 2010 then no error is shown.
I didn't use any config.dll in my application.
I couldn't figure out the problem?
Loading
Jaish MathewsPosted Apr 1, 2012, 10:42 PM
This config.dll, might be using internally even though you are not using it manually. Try below steps. You'll have to add reference to System.Configuration of course.
When building the project, in addition to the DLL you'll have
1. Just publish your application rather than running it from debug folder, Inside published folder, you can see all needed files including config.dllDllName.dll.configOr
1. Search above file inside your application root directory/subdirectory.
2. Copy this to your .exe path