Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to add a virtual directory to Visual Studio Development Server?

I'm using the Visual Studio Development Server, with a specific port. Is there a way to add a virtual directory to it?

EDIT:

Sorry, I wasn't very clear. I'd like to be able to add one or more virtual directories to arbitrary physical directories. For instance: http://localhost/c_drive/ would map to C:\, http://localhost:/d_drive/ would map to D:\, etc.

like image 583
David Hodgson Avatar asked Apr 06 '10 21:04

David Hodgson


People also ask

Where does IIS store virtual directory?

The entire IIS configuration for IIS6 is in c:\windows\system32\inetsrv\metabase.


3 Answers

The Visual Studio Development Server is codenamed Cassini.

From ASP.NET 2.0: A Getting Started Guide

Cassini doesn't support virtual directories, security settings, 
or any of IIS's other fancy features; it's just a very simple web server 
that gives you the basics you need to get up and running.

I am using the IIS which is included with Windows XP Pro. It only allows one website without tweaking but does have virtual directories. If you are on Vista, you can setup multiple sites in IIS from what I have heard.

like image 134
DaveB Avatar answered Oct 17 '22 02:10

DaveB


Yes, you can specify a virtual path such as /foo instead of / in the properties of your project:

alt text

like image 26
Darin Dimitrov Avatar answered Oct 17 '22 04:10

Darin Dimitrov


The closest you can get to virtual directories in the Visual Studio Development Server is by using OS symlinks to map a directoty outside of the Web site root to a path within the root
http://en.wikipedia.org/wiki/NTFS_symbolic_link

like image 23
stefann Avatar answered Oct 17 '22 03:10

stefann