User402016585 posted
I am developing a small util that iterates the sites in IIS using Microsoft.Web.Administration.ServerManager and store basic info about the site, bindings, virtual apps and so on in database tables and this works fine. I also have tables for Customer info,
"platform versions/info/service" and so on, these tables use the Web.Administration Site.Id as relation/join key.
The problem is that if sites are deleted in IIS the Site.Id will be "reused" for next added site in IIS, if I have site id 1,2,3 and delete site 2 and then add a new site the new site will get Site.Id=2 which I find strange. This mess my relation between
Site and Customer so I can not use Site.Id, same goes for Site.Name (if name modified in IIS).
Is there a way of getting like a persistent unique guid-like key per site, that is not re-used?
Cheers!