I have an ASP.NET web application created in Visual Studio 2005. The
application is installed to a subdirectory in wwwroot, which is mapped in
turn to a virtual directory under the Default Web Site. I would like to load
the application in the browser using a simple name, e.g. http://test rather
than http://localhost/test. Is there a way to map a virtual directory to
such a simple name from within the Visual Studio 2005 web setup project?
Also, is there a way to (a) enable default documents in the Default Web Site
and (b) add a particular .aspx page name and extension to the Default
Documents list (again from within the VS 2005 setup project)?
Best regards
Loanehttp://test is a domain (or web site) URL, while http://localhost/test is a
directory name under a different domain (or web site). Assuming that you
have two domains (or web sites), "test" and "localhost," they might
conceivably point to the same virtual directory. It might be possible to use
DNS or the IIS metabase to obtain a list of all domains or web sites on the
server, and it might be possible to map each domain or web site to a virtual
or physical directory, but I have a feeling that you're asking the wrong
question.
--
HTH,
Kevin Spencer
Microsoft MVP
Professional Numbskull
Hard work is a medication for which
there is no placebo.
"Loane Sharp" <look_sharp_not@.hotmail.com> wrote in message
news:%23SGswUfZGHA.4144@.TK2MSFTNGP04.phx.gbl...
> Hi there
> I have an ASP.NET web application created in Visual Studio 2005. The
> application is installed to a subdirectory in wwwroot, which is mapped in
> turn to a virtual directory under the Default Web Site. I would like to
> load the application in the browser using a simple name, e.g. http://test
> rather than http://localhost/test. Is there a way to map a virtual
> directory to such a simple name from within the Visual Studio 2005 web
> setup project? Also, is there a way to (a) enable default documents in the
> Default Web Site and (b) add a particular .aspx page name and extension to
> the Default Documents list (again from within the VS 2005 setup project)?
> Best regards
> Loane
Loane,
follow the instructions given by Scott Guthrie in this blog :
http://weblogs.asp.net/scottgu/arch.../21/431138.aspx
It's a real simple, although not very well known, workaround.
Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
"Loane Sharp" <look_sharp_not@.hotmail.com> wrote in message
news:%23SGswUfZGHA.4144@.TK2MSFTNGP04.phx.gbl...
> Hi there
> I have an ASP.NET web application created in Visual Studio 2005. The application is installed to a
> subdirectory in wwwroot, which is mapped in turn to a virtual directory under the Default Web
> Site. I would like to load the application in the browser using a simple name, e.g. http://test
> rather than http://localhost/test. Is there a way to map a virtual directory to such a simple name
> from within the Visual Studio 2005 web setup project? Also, is there a way to (a) enable default
> documents in the Default Web Site and (b) add a particular .aspx page name and extension to the
> Default Documents list (again from within the VS 2005 setup project)?
> Best regards
> Loane
0 comments:
Post a Comment