Modified Web.config do I need to restart IIS?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • brigap
    New Member
    • Jun 2007
    • 2

    Modified Web.config do I need to restart IIS?

    Hi,

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

    Thank you,
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    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

    Comment

    • Frinavale
      Recognized Expert Expert
      • Oct 2006
      • 9749

      #3
      I've never had to restart my IIS after editing my web.config.
      It wouldn't hurt though.

      Comment

      • brigap
        New Member
        • Jun 2007
        • 2

        #4
        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.

        Comment

        • nateraaaa
          Recognized Expert Contributor
          • May 2007
          • 664

          #5
          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

          Comment

          Working...