创建一个虚拟目录只支持本地IIS服务器上创建一个、虚拟目录、器上、IIS

2023-09-04 02:01:13 作者:安逸。

我想获得一个Visual Studio解决方案(别人写的)的工作在我的机器上。当我尝试打开该解决方案,我得到两个错误信息,如下图所示。我不知道很多有关IIS,所以我很茫然调试这些。我该怎么办?或者我应该开始阅读?

I am trying to get a visual studio solution (written by someone else) working on my machine. When I try to open the solution, I get two error messages, shown in the picture below. I don't know very much about IIS so I am at a loss to debug these. What should I do? Or where should i start reading?

推荐答案

该项目的虚拟目录设置不正确这是为什么它不装,用鼠标右键单击该项目>编辑项目,然后编辑该项目的虚拟目录找到这一行的code:

The virtual directory of the project is not set properly which is why its not loading, edit the virtual directory of the project by right clicking the project > edit project then find this line of code:

<iisurl>http://localhost</iisurl>

更改或添加后,本地主机的Web项目的名称:

change or add the name of the web project after local host:

<iisurl>http://localhost/webname</iisurl>

另一种解决方案是确保asp.net被登记到IIS 进入Visual Studio工具> Visual Studio命令提示符和打字员为aspnet_regiis -r

Another solution is to make sure asp.net is registered to the IIS go into visual studio tools> visual studio command prompt and typer aspnet_regiis -r

在这里登记asp.net更多信息: http://msdn.microsoft.com/en-美国/库/ k6h9cz8h(V = VS.80)的.aspx

More info on registering asp.net here: http://msdn.microsoft.com/en-us/library/k6h9cz8h(v=vs.80).aspx

希望这有助于。