473,624 Members | 2,534 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Edit Web.Config Programmaticall y

Does anyone know of an example application that demonstrates how to edit a
web.config file programmaticall y using c#?
Nov 15 '05 #1
1 8668
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******** *****@TK2MSFTNG P11.phx.gbl...
Does anyone know of an example application that demonstrates how to edit a
web.config file programmaticall y using c#?

Nov 15 '05 #2

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

Similar topics

1
2134
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 bug or is it by design. Do we know why microsoft do not supply a method to write values to the web.config file. Thank you to anyone who can give me any clues to this problem. Regards,
2
334
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 help. TK
8
2340
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 use them from ASP.Net. The program that will create the encrypted entries is a simple winform app. ConfigurationSettings.appsettings allows to read web.config sections but how
2
251
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") = DropDownList1.SelectedValue However this seems to hold the value in IIS memory rather than actually changing the stored text in the web.config file. Does anyone know how I could change the value in the file permenantly
0
1254
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 case, though, I want the site owner to be able to select a theme that will be applied to the entire site (not per user). I do not want to programmatically write out/edit the web.config file because of permissions issues. I simply want the user to be...
1
2048
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 case, though, I want the site owner to be able to select a theme that will be applied to the entire site (not per user). I do not want to programmatically write out/edit the web.config file because of permissions issues. I simply want the user to be...
1
3076
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
5030
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 adding a new version of a document to the database, by setting the old one to obselete and adding a record of the new one. To reduce the likelihood of typos I made it so that the Name of the document is picked from a list of the existing records in...
0
2410
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
8231
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8614
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8471
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7153
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6107
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4167
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2603
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1780
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1474
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.