|
From: Jasmine on 20 Jul 2008 04:38 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 20 Jul 2008 12:23 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 21 Jul 2008 02:19 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. > > >
|
Pages: 1 Prev: see all dotnet questions Next: Windows XP SP3 - registry entries. |