Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / General / September 2005

Tip: Looking for answers? Try searching our database.

app.config for exe file

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bic - 30 Sep 2005 09:15 GMT
I copied my app.config into the bin folder and tried to deploy both the .exe
and app.config file so my user will be able to change values such as
connectionstr settings.  But I can't get the app.config to work unless I
change the one inside the solution.  How can I make the app.config work
ouside of the solution environment?  Thanks.
Signature

bic

DraguVaso - 30 Sep 2005 10:22 GMT
Hi,

Normally when you (re)build your solution, the app.config is is put
automaticly in your bin-directory as "MyApplication.exe.config". But when
running the solution from your visual studio, it will indeed take the
original app.config file each time. Only when you run directly the
MyApplication.exe in the bin-folder, it will use the values in the
MyApplication.exe.config. This happens also on deployment.

In case you meant that the application itself changes the app.config: indeed
that doesn't work: you can't write in the app.config via your application.
users can only edit it using notepad or applications like that.

hope this helps,

Pieter

> I copied my app.config into the bin folder and tried to deploy both the .exe
> and app.config file so my user will be able to change values such as
> connectionstr settings.  But I can't get the app.config to work unless I
> change the one inside the solution.  How can I make the app.config work
> ouside of the solution environment?  Thanks.
bic - 30 Sep 2005 18:53 GMT
Pieter,

Thanks.  It helped me alot and had resolved my week-long problem.

Thanks.
Signature

bic

> Hi,
>
[quoted text clipped - 19 lines]
> > change the one inside the solution.  How can I make the app.config work
> > ouside of the solution environment?  Thanks.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.