Banner Ad

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



Solution:

The reason for the above error is, I did not run the Visual Studio in the Administrator Context. So that I add the Visual Studio’s privilege level to Administrator.

In order to do that, Select the Visual Studio Program and right click select Properties.


In the Property popup, Select the “Compatibility” tab and check “Run this Program as an administrator” and then click “Apply”.

Visual Studio - Properties Popup


That’s it now close the visual studio and reopen it. You can now create the Virtual directory in Properties page without any problem.
Virtual Directory Successfully Created
Hope this helps a bit!

About Francis

Francis, an Associate at Cognizant. Having 7+ Years of experience in Microsoft web technologies.

0 comments :

Please give your valuable comments to improve the contents

Connect with Us