Banner Ad

Showing posts with label Create Virtual Directory. Show all posts
Showing posts with label Create Virtual Directory. Show all posts

Tuesday, September 24, 2013

Create Virtual Directory in IIS

By Francis   Posted at   7:19 PM   IIS Tips and Tricks No comments
                  In previous posts I have explained how to create a virtual directory from Visual Studio.
In this post I’m going to tell how to create a virtual directory in IIS.
What is Virtual Directory?:
Virtual directory meant that, it is a mapping between the actual web application files and IIS. That is we map the website files to the IIS in Virtual Directory. If you see in IIS, it look like a directory but it actually points the exact web application path.
Create Virtual Directory:
Here I’m going to create a virtual directory in IIS for the web application which is located in the path :
“G:\DotNetExamples\AllInOne”.
Step 1:
Open IIS. To open IIS, press windows key + R key, which opens “Run” window and type “inetmgr” and press enter, which opens the IIS.
IIS-Create_Virtual_Directory-1
Step 2:
In IIS, Right click on the “Default Web Site” and select the “Add Application” in the float menu.
IIS-Create_Virtual_Directory-2
Step 3:
In this “Add Application” window, we need to specify the “Virtual Directory” name and the physical directory where the actual web site files are located. Leave the application pool as is. Click OK.
IIS-Create_Virtual_Directory-3
Step 4:
Now the Virtual Directory has been created under the “Default Web Site”. To test the application Right click the virtual directory and choose “Manage Application à Browse” which will open the application in the respective default browser.
IIS-Create_Virtual_Directory-4
IIS-Create_Virtual_Directory-5
Hope this helps!



















Monday, August 19, 2013

Visual Studio Tips & Tricks: 2 – Create Virtual Directory Problem

By Francis   Posted at   12:15 PM   Visual Studio Tips and Tricks No comments
                     Few days ago, I just want to create a virtual directory for my ASP.Net web project. I just go to the “Solution Explorer” and “Right click” on the Web project in the floating menu choose the “Properties” of the Web project.

Project Properties Float Menu

              In the Properties page, Select “Web” Tab and select the option “Use Local IIS web Server” and then click “Create Virtual Directory” button. At that time the below error occurred:

Unable to create the virtual directory. To access local IIS Web sites, you must run Visual Studio in the context of an administrator account.

Virtual Directory Creation Error
Connect with Us