Re: IIS 6.0 Unique ID generation

From: Bernard (qbernard_at_hotmail.com.discuss)
Date: 11/05/04


Date: Fri, 5 Nov 2004 12:24:21 +0800

I'm not a dev guy. but I don't think it needs the ID to create the website.
take a look at the built-in script.

IISweb.vbs

try iisweb /create

it only ask you for the web root path, site description, ip, port, and host
header name.

-- 
Regards,
Bernard Cheah
http://www.tryiis.com/
http://support.microsoft.com/
http://www.msmvps.com/bernard/
"Sıfırınc?Murat" <@> wrote in message
news:eDLaotmwEHA.1512@TK2MSFTNGP12.phx.gbl...
> I am hosting multiple web sites on a w2k3 server and want to create web
> sites through an application to reduce the time spent for web site
creation.
> In order to create new web sites I need to assign an empty ID for
> System.DirectoryServices class, so that it can create a new web site with
> that ID. I could easily enumerate used IDs and generate one that is not in
> use and create the new site with that ID but I know MMC uses an algorithm
to
> generate IDs with respect to the ServerComment property (or website name)
> and I want my aplication to use the same procedure for the sake of
> compatibility. This is the reason.
>
>
> "David Wang [Msft]" <someone@online.microsoft.com> wrote in message
> news:enYZDkmwEHA.1396@tk2msftngp13.phx.gbl...
> > Using the administration APIs you can easily enumerate available
websites,
> > locate ones matching your criteria, and retrieve its ID.
> >
> > Can you please give the reason(s) why you need to be able to predict the
> > Website ID before creating the website?  Are you also aware that you can
> > actually specify the ID for a website (you get an exception if the ID is
> > already used)?
> >
> > Anyways, I cannot think of a reason why anyone needs to know the
> algorithm,
> > including Microsoft...
> >
> > -- 
> > //David
> > IIS
> > This posting is provided "AS IS" with no warranties, and confers no
> rights.
> > //
> > "Sıfırınc?Murat" <@> wrote in message
> > news:OkEMKMlwEHA.1512@TK2MSFTNGP12.phx.gbl...
> > Hi,
> >
> > As everybody knows, IIS 6.0 assigns unique IDs based on the specified
web
> > site name. I have been developing an programmatic administration tool
for
> > IIS 6.0 and I need the algorithm how IIS generates these identifiers. I
> have
> > been through MSDN and Google search but have nothing usable.
> >
> >
> >
> >
>
>


Relevant Pages

  • Re: Slow Downloads
    ... The link I provided was for Broadband Reports, not Cox. ... comfortable switching from IE to another browser. ... Are there any Web sites that cause no problems at all? ... America's website takes a long time to load. ...
    (microsoft.public.windowsxp.general)
  • Re: IIS 6.0 Unique ID generation
    ... > I am hosting multiple web sites on a w2k3 server and want to create web ... > use and create the new site with that ID but I know MMC uses an algorithm ... >> Website ID before creating the website? ... >> IIS ...
    (microsoft.public.inetserver.iis)
  • Re: Visual Studio "New Project" or "New Website"
    ... that you can't do with a WebSite (providing you use "Publish WebSite, ... They're not available for web sites, ... cause your code to be compiled first, and can even compile or partially ... and I had been developing ASP.NET Web Applications ...
    (microsoft.public.vsnet.general)
  • Re: Delete Web Site
    ... I write Website, that means Website. ... >> sites are marked with the red circle and show just in the IIS. ... >> How can we delete extra web sites created in IIS? ... >> methods including the registry editing? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Delete Web Site
    ... The reason for my asking is that IIS under Windows XP can only support one ... >I write Website, that means Website. ... >>> sites are marked with the red circle and show just in the IIS. ... >>> How can we delete extra web sites created in IIS? ...
    (microsoft.public.dotnet.framework.aspnet)