Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I debug a VB6 project that has a .net interop project which uses an app.config file?

I have a .net interop project that uses an app.config file. When I am running the VB6 project that is using the interop control in Debug mode, the ConfigurationManager cannot find the app.config file. When I make the VB6 project into an exe and rename the app.config file to (VB6 binary name).exe.config, the ConfigurationManager can find the file.

Is there a way to rename the app.config file or change a setting so ConfigurationManager can find the app.config file while VB6 is running in debug mode?

like image 718
wusher Avatar asked Oct 07 '08 23:10

wusher


1 Answers

A dirty hack is to place the app.config file into the VB6 folder and rename it to vb6.exe.config

like image 185
Alexander Kojevnikov Avatar answered Nov 15 '22 20:11

Alexander Kojevnikov