MyApp.exe.config vs MyApp.config

J

Jasmine

Hi,
I have a MyApp.exe.config file with some settings, but my program seems to
IGNORE it.
it looks for MyApp.config instead.

changing the exe.config to .config is a bit complicated (windows installer
is involved...).

any ideas as to WHY it happens or how to FIX it ?

I'm using .NET 2 on windows server 2003 SP2 with VS 2005

thanks.
 
S

Scott M.

You should have a config file called "app.config" in your project. Upon
complilation, this file will be renamed to yourAppName.exe.config.
 
J

Jasmine

Hi, thanks for the reply, but I don't think this will help -
a) I have a native project (c++)
b) I already have a AppName.exe.config and it is ignored, renaming it to
AppName.config makes the system consider it.

I've find out that this happens if I use Run-Time Library "Multi-Threaded"
(/MT).
If I use "Multi-Threaded Dll" (/MD) then the AppName.exe.config is NOT
ignored.

any idea why ?
 

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

Top