Connecting Tech Pros Worldwide Forums | Help | Site Map

Modified Web.config do I need to restart IIS?

Newbie
 
Join Date: Jun 2007
Posts: 2
#1: Jun 4 '07
Hi,

I have modified my Web.config file. Will I have to restart IIS inorder for the changes to take effect?

Thank you,

Plater's Avatar
Moderator
 
Join Date: Apr 2007
Location: New England
Posts: 7,161
#2: Jun 4 '07

re: Modified Web.config do I need to restart IIS?


Mmmmmm if you uploaded the new web.config file you will probably have to restart that individual webservice. Under the IIS management you can start and stop individual webservices.
However, if you don't care, you can restart the whole iis service.

ALSO:
If you upload a file called app_offline.htm (has to be at least 1024 bytes i believe) the IIS service will imedialty shutdown/unload the webservice for the directory where you uploaded the file. Make changes to your web.config. Then you can juse remove the app_offline.htm file and the next call to your webpage will start the service back up with your changes
Frinavale's Avatar
Site Moderator
 
Join Date: Oct 2006
Location: The Great White North
Posts: 5,137
#3: Jun 4 '07

re: Modified Web.config do I need to restart IIS?


I've never had to restart my IIS after editing my web.config.
It wouldn't hurt though.
Newbie
 
Join Date: Jun 2007
Posts: 2
#4: Jun 4 '07

re: Modified Web.config do I need to restart IIS?


Thank you very much for your quick replies.

I had tested my changes without restarting the webservice, but I had restarted my browser and my changes were successful. I am unsure if my browser was running and I did a refresh of the page if my changes would have taken effect. In order to ensure all users are affected by the change I will have the webservice restarted.

Once again, thank you very much for your help.
nateraaaa's Avatar
Expert
 
Join Date: May 2007
Location: Illinois
Posts: 663
#5: Jun 4 '07

re: Modified Web.config do I need to restart IIS?


I use the Web.Config to assign specific permissions to users based on an employee id. The great part of using the Web.Config for this is if I need to add or remove an employee id I do not have to recompile the dll for the change to work on my production servers. Just save the change to the Web.Config and refresh your web page. The change should now be in production.

Nathan
Reply