What is Virtual Directory?

Posted by Rajendra.prasad under IIS on 5/28/2010 | Views : 54602 | Status : [Member] | Replies : 8
Hi All,
What is Virtual Directory?

Regards,
Rajendra




Responses

Posted by: Raja on: 5/28/2010 [Member] Starter

Up
0
Down
Virtual directory a directory that is created in the IIS to host a local application or target a certain physical folder available on the server or where the virtual directory is being created.

For example: On your development machine, if you want to host your application, you will need to create a virtual directory and specify the physical path.

You can create the virtual directory by right clicking the IIS and selecting from the context menu.

Seehttp://support.microsoft.com/kb/172138 for more details on it.

Regards,
Raja, USA

Rajendra.prasad, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Nani.gdm on: 2/18/2011 [Member] Starter | Points: 25

Up
0
Down
Before publishing an ASP.Net(C#, VB.Net) project, there are certain prerequisites that have to be in place. An ASP.Net(C#, VB.Net) project is compiled as part of the publishing process and this requires the existence of the .Net Framework SDK version 1.0.3705 or later. One of the files included in the .Net Framework SDK is the C# or VB.Net compiler. CodeCharge Studio needs to know the path to this file since it will be used to compile and build a .dll file when the project is published.
The C# compiler is a file called csc.exe while the VB.Net compiler is called vbc.exe. The path to this file depends on the location where the SDK is installed. An example path would be C:\WINNT\Microsoft.NET\Framework\v1.0.3705. Within CodeCharge Studio, open the Tools --> Options. menu and in the Options window, click on the Paths option. In the field entitled .Net SDK, enter the path to the C# or VB.Net compiler file.

The other prerequisite for ASP.Net(C#, VB.Net) projects is that all projects must be deployed to a Virtual Directory folder. To create a virtual directory in your web server, use the Internet Services manager. Within the Internet Services Manager console, right click on Default Web Site and select the New --> Virtual Directory option. This will open the Virtual Directory Creation Wizard and you can follow the steps to create a virtual directory.
Please note that the Virtual Directory has to point to your Web application usually published to "c:\inetpub\wwwroot\..." folder, not to the CodeCharge Studio project folder.

Once you setup the virtual directory, open the Project Settings window within CodeCharge and under the Publishing tab, specify the virtual directory path in the Server Path field.

You can then proceed to configure the other project settings as you would normally do. When you publish the project, the files will first be generated to a temporary folder where they will be compiled. After compilation, the files, including the compiled .dll will be published to the virtual directory where they can be accessed using a browser window.




Rajendra.prasad, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Madhu.b.rokkam on: 2/18/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
A virtual directory is a directory created in IIS to host our applications and to hide the actual physical location from the application users.

Also check
http://en.wikipedia.org/wiki/Virtual_directory

Thanks and Regards
Madhu

Rajendra.prasad, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Madhu.b.rokkam on: 2/18/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
You can create this just by rightclicking on any directory and giving web reference to it.

Follow this
http://www.interviewcorner.com/Answer/Answers.aspx?QuestionId=160&MajorCategoryId=1&MinorCategoryId=16

Thanks and Regards
Madhu

Rajendra.prasad, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikanbarasan on: 2/18/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Check this link... its explains very clearly

http://www.dotnetspider.com/tutorials/AspNet-Tutorial-86.aspx

Thanks
Karthik
www.f5Debug.net

Rajendra.prasad, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikanbarasan on: 2/18/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Check this link... its explains very clearly

http://www.dotnetspider.com/tutorials/AspNet-Tutorial-86.aspx

Thanks
Karthik
www.f5Debug.net

Rajendra.prasad, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Stardrago on: 1/27/2012 [Member] Starter | Points: 25

Up
0
Down
I know a great SDK for creating virtual files and directories - boxedapp. It may help you.

Rajendra.prasad, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Evancroby on: 11/13/2013 [Member] Starter | Points: 25

Up
0
Down
A virtual directory is a directory name that you specify in IIS and map to physical directory on a local server's hard drive or a directory on another server (remote server). You can use Internet Information Services Manager to create a virtual directory for an ASP.NET Web application that is hosted in IIS. for more information http://net-informations.com/faq/asp/virtual-directory.htm What is virtual directory

Evan

Rajendra.prasad, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response