iis-docs icon indicating copy to clipboard operation
iis-docs copied to clipboard

SiteId generated by name automatically may vary on each run.

Open IDDesigns opened this issue 4 years ago • 0 comments

It is probably worth documenting the following:

When running an application that creates a new site built using dotnet core and using the auto generated id based on the (hash of the) name of the site, the id will be different on each run of the application due to the changes to GetHashCode() which uses a random seed that is only stable for a single run of the application. To create a consist id across multiple servers for sites with the same name it is currently necessary to explicitly set the id using a custom hash.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

IDDesigns avatar Jan 08 '21 14:01 IDDesigns