问题
I have installed windows 8 on my system and I am using visual studio 2012 and IIS 8 Express. when I try to create a virtual directory for web project the message box shows the error message like
"Unable to create virtual Directory. To access Websites on the local IIS Web server, You must run visual studio under an Administrator account"
Please help me how to run visual studio under administrator Account, Thank you.
回答1:
Right click on the shortcut then "Run as administrator" or create another shortcut using the "runas" dos command
http://technet.microsoft.com/en-us/library/cc771525%28v=ws.10%29.aspx
回答2:
Create the empty project for the asp.net after creating the asp.net empty project . open the solution explorer then right click on the solution go to the propety of the project then go to web tab then use the iis as a local host then after chocie the iis local host click the blow check box then create the directory your virtual directory is created
来源:https://stackoverflow.com/questions/16440242/creating-virtual-directory-for-asp-net-web-project