简体   繁体   中英

VisualStudio2010 IIS Could not find the server. Failed to create virtual directory

When I open solution in VisualStudio2010, I am unable to load View project. Right-click and 'Reload Project' it asks me:
我要创建一个虚拟目录吗

When I click on "Yes", it shows me a failure message:
找不到服务器

Other projects don't have this kind of problem.

In "Turn Windows Feauters On/Off", for IIS I've checked all options.

I noticed that my aspnet_regiis -i command doesnt work. When I open cmd as Admin, and navigate to the folder "C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319>" and try yo execute command, I get:
This option is not supported on this version of the operating system. Administrators should instead install/uninstall ASP.NET 4.5 with IIS8 using the "Turn Windows Features On/Off" dialog, the Server Manager management tool, or the dism.exe command line tool. For more details please see http://go.microsoft.com/fwlink/?LinkID=216771 . Finished installing ASP.NET (4.0.30319.0).

I have IIS 10 on windows 10.

Right click on your web project and go to Properties. Then click on the Web tab and in Servers section select Local IIS. Then check the Project URL and click on Create Virtual Directory. Also make sure you are running Visual Studio as administrator.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM