PC Review


Reply
Thread Tools Rate Thread

.config file if app directory moves?

 
 
skull_leader7@yahoo.com
Guest
Posts: n/a
 
      25th Mar 2005
Hi all...

I have a VB.NET project that compiles an .exe (for example test.exe)
Visual Studio locates this .exe in a specific directory. If I create
in this same directory a config file test.exe.config, and run test.exe
here, everything works fine and the settings in test.exe.config are
picked up just fine by test.exe

However, if I take test.exe and test.exe.config and move them to a
completely different path, then when I run test.exe it does *not* pick
up the settings in test.exe.config, even though they continue to be
colocated in the same directory.

What is going on here? how can I get my app to successfuly use a
..config file even if I move the .exe (and the config file) to a new
path?

Thanks in advance...

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Check for .config file in user directory, if not there then instal AshleyT Microsoft VB .NET 1 27th Jun 2008 04:57 PM
how to let the web.config in the sub-directory to NOT to inherited from Root's web.config. Benny Ng Microsoft ASP .NET 9 13th Oct 2005 04:27 PM
help to put directory path to app.config file Vicky via DotNetMonster.com Microsoft Dot NET Framework Forms 1 13th May 2005 12:11 AM
help to put directory path to app.config file Vicky via DotNetMonster.com Microsoft C# .NET 5 12th May 2005 08:22 PM
can vb.net2003 create config file in bin directory? Rich Microsoft VB .NET 6 3rd Mar 2004 01:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:32 AM.