Creating virtual directory for asp.net web project

泄露秘密 提交于 2019-12-12 02:46:33

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!