Superfreak3
Fri Jan 19 11:16:24 CST 2007
Superfreak3 wrote:
> Kristofer Gafvert wrote:
> > Hello,
> >
> >
http://localhost/ does not necessarily has to be tied to the "Default
> > Website". That is determined by the ServerBindings property. If you
> > created a new website, and the new website is listening on "localhost", it
> > will be this website responding.
> >
> > This has nothing to do with the aspnet_regiis command.
> >
> > --
> > Regards,
> > Kristofer Gafvert
> >
http://www.gafvert.info/iis/ - IIS Related Info
> >
> >
> > Superfreak3 wrote:
> >
> > >
> > >Kristofer Gafvert wrote:
> > >>See my other example here:
> > >>
> > >>"C# - Find website ID by name"
> > >>
http://www.gafvert.info/iis/article/cs_find_id_by_name.htm
> > >>
> > >>You cannot have a website beneath "Default Website". That is a virtual
> > >>directory (or just a directory), both on a client OS and a server OS. So
> > >>it does not have a website ID, only websites have this.
> > >>
> > >>So if you need to configure something on the virtual directory (and not
> > >>globally on the website), you will need to figure out a way to get the
> > >>virtual directory.
> > >>
> > >>--
> > >>Regards,
> > >>Kristofer Gafvert
> > >>
http://www.gafvert.info/iis/ - IIS Related Info
> > >>
> > >>
> > >>Superfreak3 wrote:
> > >>
> > >>>
> > >>>Kristofer Gafvert wrote:
> > >>>>It will return the ID for the website(s).
> > >>>>
> > >>>>--
> > >>>>Regards,
> > >>>>Kristofer Gafvert
> > >>>>
http://www.gafvert.info/iis/ - IIS Related Info
> > >>>>
> > >>>>
> > >>>>Superfreak3 wrote:
> > >>>>
> > >>>>>
> > >>>>>Kristofer Gafvert wrote:
> > >>>>>>Hi,
> > >>>>>>
> > >>>>>>I have an example of this in C#, it should not be that hard to
> > >>>>>>translate
> > >>>>>>it into VB.NET.
> > >>>>>>
> > >>>>>>"C# - Enumerate websites"
> > >>>>>>
http://www.gafvert.info/iis/article/cs_enum_iis_websites.htm
> > >>>>>>
> > >>>>>>--
> > >>>>>>Regards,
> > >>>>>>Kristofer Gafvert
> > >>>>>>
http://www.gafvert.info/iis/ - IIS Related Info
> > >>>>>>
> > >>>>>>
> > >>>>>>Superfreak3 wrote:
> > >>>>>>
> > >>>>>>>Is there a way to get the Site ID for an IIS web site with VB.NET
> > >>>>>>>code?
> > >>>>>>> What I would like to do is get the site id number then call
> > >>>>>>>aspnet_regiis with the -s option to set the ASP.NET version of the
> > >>>>>>>site
> > >>>>>>>to 2.0.50727 based on this site ID with.
> > >>>>>>>
> > >>>>>>>Any help or sample code would be GREATLY appreciatted!!
> > >>>>>>>
> > >>>>>>>Thanks!
> > >>>>>
> > >>>>>Since this looks pretty simple, although I should say I'm no code guru,
> > >>>>>will this return the numerical id that is needed for use in my
> > >>>>>aspnet_regiis command.
> > >>>
> > >>>If I know the name of the web site, how can I simply grab its Site ID.
> > >>>Also, if installed on a non-server OS, the site appears as a virtual
> > >>>directory under the Default Web Site. Is the ID found in the same way
> > >>>or will it carry the 1 of the default site?
> > >>>
> > >>>Thanks for the info so far!!!
> > >
> > >Would you know the answer to this question as I don't know if the
> > >'problem' is tied to my attempted use of aspnet_regiis or not.
> > >
> > >On a server system, it appears in IIS that our site is in addition to
> > >the Default Web Site as it doesn't appear as a sub/virtual directory to
> > >it in the tree. However, when we launch
http://localhost, our site is
> > >launched. The developer would have expected the call to require
> > >
http://localhost/OurSite/login.aspx.
> > >
> > >Do you think I might have done something by using w3svc/1/root/OurSite
> > >in the aspnet_regiis command?
> > >
> > >I'm trying to determine if its a setting in my install program (Wise
> > >for Windows Installer) that is incorrect or if I messed up the
> > >hierarchy by using a bad aspnet_regiis command line.
> > >
> > >GREATLY APPRECIATED!!!!!!
>
>
> Ooops, more questions.
>
> So is it that the latest/new site will respond to
http://localhost?
> Why would
http://localhost/MySite\login.aspx not work in this instance.
>
> I guess maybe an understanding of the ServerBindings property would
> help.
>
> I wonder if ServerBindings could be set to act on
>
http://localhost/MySite/login.aspx??
I guess the way it looks, I need my little utility to run the
aspnet_regiis utility to determine if our site is a Virtual Directory
or actual site then run the aspnet_regiis utility with the correct
command line containing the correct site ID.