473,387 Members | 1,899 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Edit Web.Config Programmatically

Does anyone know of an example application that demonstrates how to edit a
web.config file programmatically using c#?
Nov 15 '05 #1
1 8654
here's one I wrote some time ago:

http://www.eggheadcafe.com/articles/20030907.asp

Don't forget, if you edit web.config dynamically and resave it, your ASP.NET
app is going to restart!
--Peter

"Stewart Armbrecht" <st**************@hotmail.com> wrote in message
news:ez*************@TK2MSFTNGP11.phx.gbl...
Does anyone know of an example application that demonstrates how to edit a
web.config file programmatically using c#?

Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Matt | last post by:
Hi, I was wondering if anyone can tell me why dynamically updating the web.config file causes ASP.NET worker process to recycle and detroy all session states including variables. Is this a known...
2
by: TK | last post by:
What's the best way to edit web.config programmatically? I want to have an aspx page as a GUI for web admins to modify the roll-base security portion of the web.config(s) on a server. please...
8
by: vadim | last post by:
Hi, Is there a .Net control available that allows to write into web.config file appsettings section? The idea is to create encrypted user name and password for database connection and then...
2
by: mocsoft | last post by:
I have an application that requires the dynamic changing of values in the web.config file, I have code that seems to change the value: WebConfigurationManager.AppSettings("database") =...
0
by: chefwiggum | last post by:
I have an application wide configuration setting (pages theme) that is dynamic. Normally when you think of picking themes you think of the user selecting a theme (a per-user setting). In this...
1
by: jack | last post by:
I have an application wide configuration setting (pages theme) that is dynamic. Normally when you think of picking themes you think of the user selecting a theme (a per-user setting). In this...
1
by: Bill Nguyen | last post by:
I would like to open for view only or editing different file types in VB.NEt. For example: PDF BMP JPEG GIF DOC etc...
2
by: spudpeel | last post by:
Im still finding problems in my document control system, and have arrived at one of the most important bits. (Im completely new to access so Ive been learning as I go). Part of the system involves...
0
by: Darko Bazulj | last post by:
How to add next to web.config <location path="9998886"> <system.web> <compilation tempDirectory="D:\logs\temporary_asp_net_files\9998886" /> </system.web> </location> <location path="444">
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.