473,408 Members | 2,888 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,408 software developers and data experts.

How do I overwrite existing web.config with a new one?

I thought I could RDP to the web server, open the web.config, make the
change, and save it.

But this causes IIS to hang, and it never recovers - I have to create
a new website in IIS!

Should I be copying the existing web.config, changing it, and then
copying the new version over the old version?

Any help appreciated, it is driving me nuts!

Jun 12 '07 #1
5 2022
If you change web.config, IIS should recognise a change has occurred and
restart, loading the new values. I always issue an iisreset after I change
web.config - perhasp that will help you solve your issue.

Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog

"Andy" <se*******@gmail.comwrote in message
news:11**********************@o11g2000prd.googlegr oups.com...
>I thought I could RDP to the web server, open the web.config, make the
change, and save it.

But this causes IIS to hang, and it never recovers - I have to create
a new website in IIS!

Should I be copying the existing web.config, changing it, and then
copying the new version over the old version?

Any help appreciated, it is driving me nuts!

Jun 12 '07 #2
On 12 Jun, 09:33, "John Timney \(MVP\)" <x_j...@timney.eclipse.co.uk>
wrote:
If you change web.config, IIS should recognise a change has occurred and
restart, loading the new values. I always issue an iisreset after I change
web.config - perhasp that will help you solve your issue.

Regards

John Timney (MVP)http://www.johntimney.comhttp://www.johntimney.com/blog
How does an IIS Reset compare with a full restart of IIS? Does it do
anything differently?
"Andy" <servie...@gmail.comwrote in message

news:11**********************@o11g2000prd.googlegr oups.com...
I thought I could RDP to the web server, open the web.config, make the
change, and save it.
But this causes IIS to hang, and it never recovers - I have to create
a new website in IIS!
Should I be copying the existing web.config, changing it, and then
copying the new version over the old version?
Any help appreciated, it is driving me nuts!

Jun 12 '07 #3
re:
!How does an IIS Reset compare with a full restart of IIS?

Running iisreset.exe from the command-line (IIS reset) executes a full stop/restart of IIS.

http://www.microsoft.com/technet/pro....mspx?mfr=true


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Andy" <se*******@gmail.comwrote in message
news:11**********************@i38g2000prf.googlegr oups.com...
On 12 Jun, 09:33, "John Timney \(MVP\)" <x_j...@timney.eclipse.co.uk>
wrote:
>If you change web.config, IIS should recognise a change has occurred and
restart, loading the new values. I always issue an iisreset after I change
web.config - perhasp that will help you solve your issue.

Regards

John Timney (MVP)http://www.johntimney.comhttp://www.johntimney.com/blog
How does an IIS Reset compare with a full restart of IIS? Does it do
anything differently?
>"Andy" <servie...@gmail.comwrote in message

news:11**********************@o11g2000prd.googleg roups.com...
>I thought I could RDP to the web server, open the web.config, make the
change, and save it.
But this causes IIS to hang, and it never recovers - I have to create
a new website in IIS!
Should I be copying the existing web.config, changing it, and then
copying the new version over the old version?
Any help appreciated, it is driving me nuts!


Jun 12 '07 #4


"Andy" <se*******@gmail.comwrote in message
news:11**********************@o11g2000prd.googlegr oups.com...
>I thought I could RDP to the web server, open the web.config, make the
change, and save it.

But this causes IIS to hang, and it never recovers - I have to create
a new website in IIS!

Should I be copying the existing web.config, changing it, and then
copying the new version over the old version?

Any help appreciated, it is driving me nuts!
If IIS hangs after a web.config change, something is wrong. IIS should not
hang, but instead it should signal a JIT recompile the next time someone
accesses a page for that application/application pool.

HTH,
Mythran
Jun 12 '07 #5
Andy wrote:
I thought I could RDP to the web server, open the web.config, make the
change, and save it.
Waht did you use to edit the file? Notepad works fine, but if you use an
editor that lockes the file while editing, this might possible mess up IIS.
But this causes IIS to hang, and it never recovers - I have to create
a new website in IIS!
Was it IIS or the web site that did hang?
Should I be copying the existing web.config, changing it, and then
copying the new version over the old version?
That would solve the problem if it is the editor that is causing it.

--
Göran Andersson
_____
http://www.guffa.com
Jun 12 '07 #6

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

Similar topics

5
by: Gord | last post by:
Hello, If you set the flag for an overwrite prompt using the 'Save' common dialog, how do you read the response when the user clicks the Yes or No in the 'overwrite' message box? Everything...
11
by: Florian Loitsch | last post by:
I'm currently writing a JS->Scheme compiler (which, using Bigloo, automatically yields a JS->C, JS->JVM, JS->.NET compiler), and have a question concerning the function-parameters: According to...
6
by: deko | last post by:
Is there a way to set a custom property on Access tables and/or queries to prevent them from being overwritten by import wizards? Any Access database can be easily destroyed if a user mistakenly...
8
by: phobos7 | last post by:
I am trying to create a single .EXE that will upgrade a product by the doing the following: 1) Detect the location of the current installation (DONE) 2) Upgrade the existing config file (DONE)...
8
by: Robert | last post by:
I have what I think should be a pretty common scenario in a corporate environment. I have a web app and three environments on three servers: Development, QA and Production. We develop in...
2
by: B-Dog | last post by:
Is there a way to make vb.net to overwrite the file when moving? Here is what I'm trying to do: If System.IO.File.Exists(dest) Then 'handle overwrite here If MessageBox.Show("Do you want...
1
by: mmitchell | last post by:
I have a VB.Net 2005 solution that uses an installer project to install. When I do an install I would like the app.config/application config file to be installed only when there isn't one...
0
by: herbert | last post by:
1) I configure a flatfile as listener in app.config to be used with TraceSource. This appends output when restarting the application. How do I specify that the existing file should be overwritten...
5
by: Ben Sizer | last post by:
I need to copy directories from one place to another, but it needs to overwrite individual files and directories rather than just exiting if a destination file already exists. Previous suggestions...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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,...
0
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...

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.