473,395 Members | 1,885 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

map virtual directory to simple name

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
Apr 22 '06 #1
2 1580
http://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" <lo************@hotmail.com> wrote in message
news:%2****************@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

Apr 22 '06 #2
Loane,

follow the instructions given by Scott Guthrie in this blog :

http://weblogs.asp.net/scottgu/archi...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 español : http://asp.net.do/foros/
===================================
"Loane Sharp" <lo************@hotmail.com> wrote in message
news:%2****************@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

Apr 22 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Dennis | last post by:
Hi, I am wondering that the Application Name in Virtual Directory is compulsory be non-empty field when configuring Virtual Directory for ASP.NET application? I realized some of my ASP.NET...
5
by: Leszek | last post by:
Hello, Could anybody explain what's a difference between a virtual directory and an application root under IIS? I'm a little bit confused. This is mu problem: Let's assume the following...
1
by: jon wackley | last post by:
Hi All, Hope that this is the correct group to post this in, I'm quite stuck and have tried a great number of things including the MS knowledgebase, google, and other resources. I created a...
6
by: Saar Carmi | last post by:
Hi How can I get the application's virtual directory from the Application_Start method in Global.asax ? Keep in mind there is no request/response object available yet in this stage. Thanks...
5
by: Stu Carter | last post by:
Hi, ENV: Windows 2003 Server SP1 (+all updates), VS 2003, .Net 1.1 SP1 We've got an ASP.Net web application using State Service. All is fine until we tried to use the app through a virtual...
2
by: BLetts | last post by:
I have an ASP.NET app that must allow users to upload files. The files are stored in a virtual directory. I use Server.MapPath to map from the virtual directory name to a physical path, then the...
1
by: John_Baptist | last post by:
Hello, I have created a virtual directory in IIS 6.0 with the name JohnASP . Now my problem is when i'm creating new ASP.NET project in MSVS .NET in the location place which name i should...
4
by: lspoulin | last post by:
Hi, We have a webpage browsing folders within the wwwroot. We need to access a remote shared directory the same way. We created a virtual directory in IIS with an alias pointing on this...
4
by: tshad | last post by:
I have a site www.stf.com and a site www.stfstage.com (where I do all my testing). The problem is that www.stfstage.com is only internal and I need to get access from the outside (without...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.