IIS Home @ it-notebook.org

Web site ID is random when creating new web sites

(Kristofer Gafvert, June 23, 2005)

When creating a new web site in IIS 6.0, the identification number is randomly generated based on the name of the web site. This increases the chance of generating the same number for sites with the same name in a web farm. In previous versions of IIS, the ID was incremental.

This behavior can be changed if necessary, by editing the registry.

The registry editor bypasses standard safeguards, allowing settings that can damage your system, or even require you to reinstall Windows. If you must edit the registry, back it up first and see the registry reference.

  • Click Start, Run, type regedit and click OK
  • Navigate to the key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetMgr\Parameters
  • Select Parameters by clicking on it
  • On the Edit menu, click New Dword Value.
  • Type IncrementalSiteIDCreation for the name.
  • Double-click on the name IncrementalSiteIDCreation
  • Change Value Data to 1, and then click OK.
  • The IIS Service must be restarted to enable this change.

Applies to [?]

IIS 6.0

Resources

Registry Reference