Previous Next

Thread: Add new web site with shared configuration need an iisreset?

Last post 09-25-2008 2:19 AM by jimrPA. 10 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (11 items)

Sort Posts:

  • 09-19-2008, 8:44 AM

    • mc_rob
    • Top 500 Contributor
    • Joined on 09-19-2008, 12:40 PM
    • Rome, Italy
    • Posts 10

    Add new web site with shared configuration need an iisreset?

    Hi,

     I configured two iis7 (on 2008 web server) with shared configuration on a UNC path.

    When I create a new web site or an Application pool it won't work until I restart IIS.

    From IIS Manager I can see status unknown until I restart iis.

    Is there a way to reload the configuration without stopping all the other sites?

    Thanks

    Roberto

  • 09-19-2008, 9:27 AM In reply to

    Re: Add new web site with shared configuration need an iisreset?

    Did you try restarting just the site or app pool?

    Jeff

    Look for Wrox's new book Professional IIS 7 in your local bookstore, or order now at Amazon.com
  • 09-19-2008, 9:37 AM In reply to

    • mc_rob
    • Top 500 Contributor
    • Joined on 09-19-2008, 12:40 PM
    • Rome, Italy
    • Posts 10

    Re: Add new web site with shared configuration need an iisreset?

     Yes

     I obtained an ivalid object identifier error.

     Roberto

  • 09-21-2008, 10:01 PM In reply to

    Re: Add new web site with shared configuration need an iisreset?

    You shouldn't need to restart anything, changes should be picked up automatically.

    IIS Manager gives a few milliseconds before querying the state of the Site, however if the changes in the file are taking longer than that you would get this "unknown" state.

    Try pressing Refresh in IIS Manager and hopefully that should show it started.

     

  • 09-22-2008, 5:22 AM In reply to

    • mc_rob
    • Top 500 Contributor
    • Joined on 09-19-2008, 12:40 PM
    • Rome, Italy
    • Posts 10

    Re: Add new web site with shared configuration need an iisreset?

    I tryed to add a new application pool.

    On both web server I have the unknown state. In order to see the new application pool on the iis manager I need to close and restart the manager, a simple refresh is not enough.

    When I try to start the application pool I get the error:

     The object identifier does not represent a valid object. (Exception from HRESULT: 0x800710D8)

    After a few minutes the result is the same.

    After an iisreset (and a refresh of the manager) the application pool state chenged to stopped. At this point I was able to start the application pool.

    I need to do the same steps on the other web servers.

    Roberto

     

  • 09-22-2008, 5:39 AM In reply to

    Re: Add new web site with shared configuration need an iisreset?

    The first link mentions you have to do a restart.      

    http://learn.iis.net/page.aspx/211/shared-configuration/

    http://www.google.com/search?hl=en&q=site%3Alearn.iis.net+shared+configuration&btnG=Google+Search&aq=f&oq=

     

    Steve Schofield
    Windows Server MVP - IIS
    http://weblogs.asp.net/steveschofield

    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
  • 09-22-2008, 6:05 AM In reply to

    • mc_rob
    • Top 500 Contributor
    • Joined on 09-19-2008, 12:40 PM
    • Rome, Italy
    • Posts 10

    Re: Add new web site with shared configuration need an iisreset?

     Hi,

    the link says I need to restart  iis when I first configure for shared configuration.

    It comes out that  I need to restart iis everytime I create a new application pool and a new site.

    It souds really strange to me. In a shared hosting environment every time I add a new customer site I need to restart all the other customer's sites?

    I work for an ISP and we are migrating the iis6/iis5 hosting to iis7 and we manage thousands sites. Shared hosting configuration solves a lots of problems but I can't restart all my iis server at least 10 times a days.

    In this case I don't think shared configuration is the best solution for hosters.

    Roberto

  • 09-22-2008, 12:39 PM In reply to

    • mc_rob
    • Top 500 Contributor
    • Joined on 09-19-2008, 12:40 PM
    • Rome, Italy
    • Posts 10

    Re: Add new web site with shared configuration need an iisreset?

     It seems to be a permission problem to the share where a stored the config files.

    Everythings seems to works fine except the creation of new apppool and new site.

    I configured a third server to use a local share with a local account and I can't reproduce the problem. I can create new site and apppoll without restarting iis.

    Any suggestions?

    Thanks

    Roberto

  • 09-22-2008, 9:40 PM In reply to

    Re: Add new web site with shared configuration need an iisreset?

    I used local config stores with DFS replication so changes were replicated.   On your remote share, what is the setting in this article?

    http://learn.iis.net/page.aspx/212/offline-files-for-shared-configuration/

    Steve Schofield
    Windows Server MVP - IIS
    http://weblogs.asp.net/steveschofield

    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
  • 09-23-2008, 4:24 AM In reply to

    • mc_rob
    • Top 500 Contributor
    • Joined on 09-19-2008, 12:40 PM
    • Rome, Italy
    • Posts 10

    Re: Add new web site with shared configuration need an iisreset?

     Hi,

    I don't use DFS and off line files are disabled.

    Roberto

  • 09-25-2008, 2:19 AM In reply to

    • jimrPA
    • Top 75 Contributor
    • Joined on 06-02-2008, 9:20 AM
    • Posts 59

    Re: Add new web site with shared configuration need an iisreset?

    I see this happen on my 'master' iis box where the config is copied out to the web farm. I just do an iisreset and it fixes it, but still haven't figured out why. Maybe I will look into it and share my results. I thought it was just me, but others see it too.

     

    A good question is:

     What are you using for your remote file share, if anything? A san? are you using CIFS? I only see this on my master iis7 box, not on my web heads, but then again, when a change is done in the configuration, iis7 picks it up and loads the config in, which I am going to assume flushes out its cached config in memory and that being the reason I do not see this happen on my production boxes.

Page 1 of 1 (11 items)
Page view counter