« Previous Next »

Thread: How to reset shared configuration?

Last post 01-02-2009 4:33 PM by xml.net. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 01-01-2009, 9:09 PM

    • xml.net
    • Not Ranked
    • Joined on 01-01-2009, 8:59 PM
    • Posts 8

    How to reset shared configuration?

    IIS 7 was configured in test environment using a shared configuration file. It was imported from a UNC location. The server was moved to production and now won't start because it cannot access the UNC that doesn't exist in production.

    How can I reset the shared configuration in this situation?

    Neither IIS admin nor WWW pub services will start, so I can't restore a backup using appcmd.exe.

    Changing redirection.config under system32/inetsvc/config allowed both services to start, but the admin snap-in won't function (error msg that it cannot access the same UNC path).

    *************************

    Opinion: this feature is half-baked and plain dangerous.

    If you have a web farm configured from a single source file and that file becomes unvailable your servers will die one by one as they try to read the remote config file. It should make a local copy and work off that if the UNC is not available.

  • 01-02-2009, 1:15 AM In reply to

    • thomad
    • Top 25 Contributor
    • Joined on 08-20-2002, 3:28 PM
    • Redmond
    • Posts 503

    Re: How to reset shared configuration?

    The Admin tool (IIS Manager/INETMGR) don't require IISAdmin or W3SVC to work, i.e. that's not your problem.

    appcmd requires a working configuration system however and that seems to be broken - I assume by making changes to redirection.config directly.

    The vanilla version of the redirection.config should look like this:

    <configuration>
       <configSections>
            <section name="configurationRedirection" />
        </configSections>
        <configProtectedData>
            <providers>
                <add name="IISRsaProvider" type="" description="Uses RsaCryptoServiceProvider to encrypt and decrypt" keyContainerName="iisConfigurationKey" cspProviderName="" useMachineContainer="true" useOAEP="false" />
            </providers>
        </configProtectedData>
        <configurationRedirection />

    Why don't you copy and paste this version? You also have automatic backup copies of your latest configuration files in %systemroot%\inetpub\history

    Hope this helps.

    Thomas Deml
    Program Manager
    Internet Information Services
    Microsoft Corp.
  • 01-02-2009, 4:33 PM In reply to

    • xml.net
    • Not Ranked
    • Joined on 01-01-2009, 8:59 PM
    • Posts 8

    Re: How to reset shared configuration?

    Restoring the config files manually didn't help.

    IIS admin was still asking for access to the shared config file when there was already no mentioning of it in refirection.config. There must be some other place where it was mentioned as well. Restarting the machine didn't help either.

    I had to reinstall the role. Still think there is a problem and it should be easy to replicate, if MS is interested.

    Ideally, when a new config file is imported there should be an option to cache it locally. Enabling offline files is just too much hassle.

    Thanx for your help anyway! :-)

Page 1 of 1 (3 items)
Microsoft Communities