Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - MyApp.exe.config vs MyApp.config

Reply
 
Old 07-20-2008   #1 (permalink)
Jasmine


 
 

MyApp.exe.config vs MyApp.config

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:
Quote:

> 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@xxxxxx> wrote in message
> news:4C677BB8-9B15-4B4A-94EE-95EEC6C99E7D@xxxxxx
Quote:

> > 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.
>
>
>

My System SpecsSystem Spec
Old 07-20-2008   #2 (permalink)
Scott M.


 
 

Re: MyApp.exe.config vs MyApp.config

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@xxxxxx> wrote in message
news:4C677BB8-9B15-4B4A-94EE-95EEC6C99E7D@xxxxxx
Quote:

> 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.

My System SpecsSystem Spec
Old 07-21-2008   #3 (permalink)
Jasmine


 
 

Re: MyApp.exe.config vs MyApp.config

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:
Quote:

> 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@xxxxxx> wrote in message
> news:4C677BB8-9B15-4B4A-94EE-95EEC6C99E7D@xxxxxx
Quote:

> > 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.
>
>
>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Extending app.config with addtional config .NET General
app.exe.config on XP but app.config on Vista x64? Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46