From: Jasmine on
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.
From: Scott M. on
You should have a config file called "app.config" in your project. Upon
complilation, this file will be renamed to yourAppName.exe.config.


"Jasmine" <Jasmine(a)discussions.microsoft.com> wrote in message
news:4C677BB8-9B15-4B4A-94EE-95EEC6C99E7D(a)microsoft.com...
> 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.


From: Jasmine on
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 ?


"Scott M." wrote:

> You should have a config file called "app.config" in your project. Upon
> complilation, this file will be renamed to yourAppName.exe.config.
>
>
> "Jasmine" <Jasmine(a)discussions.microsoft.com> wrote in message
> news:4C677BB8-9B15-4B4A-94EE-95EEC6C99E7D(a)microsoft.com...
> > 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.
>
>
>