Microsoft
Software
Hardware
Network
Question : How to change properties.settings after deployment of windows application
In Properties.Setting I am maintaing folder path.I want to allow the user to change folder path value in app.config file after deployment. how to do this?
My App.config file
--------------------------
-
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration
.UserSetti
ngsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c56193
4e089" >
<section name="EmuptApp.Properties.
Settings" type="System.Configuration
.ClientSet
tingsSecti
on, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c56193
4e089" allowExeDefinition="Machin
eToLocalUs
er" requirePermission="false" />
</sectionGroup>
</configSections>
<appSettings>
<add key="ClientSettingsProvide
r.ServiceU
ri" value="" />
</appSettings>
<system.web>
<membership defaultProvider="ClientAut
henticatio
nMembershi
pProvider"
>
<providers>
<add name="ClientAuthentication
Membership
Provider" type="System.Web.ClientSer
vices.Prov
iders.Clie
ntFormsAut
henticatio
nMembershi
pProvider,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad3
64e35" serviceUri="" />
</providers>
</membership>
<roleManager defaultProvider="ClientRol
eProvider"
enabled="true">
<providers>
<add name="ClientRoleProvider" type="System.Web.ClientSer
vices.Prov
iders.Clie
ntRoleProv
ider, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad3
64e35" serviceUri="" cacheTimeout="86400" />
</providers>
</roleManager>
</system.web>
<userSettings>
<EmuptApp.Properties.Setti
ngs>
<setting name="SourceFolder" serializeAs="String">
<value>C:\Documents and Settings\rkalchetty\Deskto
p\Ravindra
\ravindra\
Source</va
lue>
</setting>
<setting name="FilesFormat" serializeAs="String">
<value>Excel files (*.xlsx, *.xlsm, *.xls)|*.xlsx;*.xlsm;*.xls
</value>
</setting>
</EmuptApp.Properties.Sett
ings>
</userSettings>
</configuration>
I want to allow the user to change the SourceFolder value under <EmuptApp.Properties.Setti
ngs> in app.config(after deployment of the project).
the App.config file getting the above values from Properrties.Setting file from my project.
after deployment, I am changing the SourceFolder value in the app.config file. but the value is not updating in the Properties.Setting file.it's displaying the old value.
Answer : How to change properties.settings after deployment of windows application
Be sure to keep [app_name].exe and [app_name].exe.config in the same directory.
Random Solutions
Building a Where Clause based on Check Box
Database Driven Website
Number of records when appending query via VBA
esx 4 update 01 no 64bit server will install
How can i do insert more data with insert query with more select statment linqToSQL?
How do I retire a Windows Server 2003 from a Domain
Trojan After Shock Keeps Opening Mutliple Tabs when using IE and Firefox, how to fix?
Configuring Incoming Mail to SharePoint w/o Exchange on-site
Capture Linkbutton click event in Master page from Content page
Queries inside a while loop