app.config
app.config
app.config
app.config
app.config
app.config app.config app.config app.config app.config app.config app.config app.config
app.config app.config
app.config
Go Back  Xtreme Visual Basic Talk > > > app.config


Reply
 
Thread Tools Display Modes
  #1  
Old 08-30-2012, 04:26 AM
savvas1986 savvas1986 is offline
Newcomer
 
Join Date: Aug 2012
Posts: 1
Default app.config


Hello
I have created a portable app which its settings are customizable by the user and they are stored in the app.config file. The problem is that when you move the app into another computer the settings are reseted.
I know that the path that all these settings are saved is something like : C:\Users\Administrator\AppData\Local\Temp\(MyAppName)\app.config
I want to move it from this path and saved in : F:/(MyAppName)/app.config.
So that it would take affect anywhare.
Is there any way to do this ?
Thank you
Reply With Quote
  #2  
Old 09-07-2012, 08:04 AM
AtmaWeapon's Avatar
AtmaWeaponapp.config AtmaWeapon is offline
Fabulous Florist

Forum Leader
* Guru *
 
Join Date: Feb 2004
Location: Austin, TX
Posts: 9,500
Default

No matter what you do, you've got to write your own settings code. The default settings framework doesn't give you a way to update the location of the settings file. There's architecture to provide your own SettingsProvider, but I don't understand what benefits that grants as you've got to write code to load/save settings to do so. This is one of the reasons it took me years to decide to bother with the settings framework.
__________________
.NET Resources
My FAQ threads | Tutor's Corner | Code Library
I would bet money 2/3 of .NET questions are already answered in one of these three places.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
app.config
app.config
app.config app.config
app.config
app.config
app.config app.config app.config app.config app.config app.config app.config
app.config
app.config
 
app.config
app.config
 
-->