Windows Vista Forums

MyApp.exe.config vs MyApp.config
  1. #1


    Jasmine Guest

    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:

    > 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

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

  2. #2


    Scott M. Guest

    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

    > 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

  3. #3


    Jasmine Guest

    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:

    > 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

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

MyApp.exe.config vs MyApp.config problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Extending app.config with addtional config Yash .NET General 3 09 Mar 2009
loading proxy config from stream instead of config file scottw512 Indigo 0 30 Jan 2008
app.exe.config on XP but app.config on Vista x64? Bern McCarty Vista General 2 02 Aug 2007
More on the renaming of MyApp to something more descriptive - anotherpainful bug Jason Dolinger Avalon 3 31 Jan 2006
On the renaming of MyApp to something more descriptive... Jason Dolinger Avalon 7 31 Jan 2006