如何在IIS中手动配置虚拟目录 [英] how do i manually configure a virtual directory in IIS

查看:151
本文介绍了如何在IIS中手动配置虚拟目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Visual Studio Professional 2010的本地副本中使用外部Visual Studio解决方案.打开该解决方案时,我看到一条错误消息,指出尚未配置本地IIS URL,我想创建它虚拟目录.当我单击是"时,它表示配置失败,并且必须手动配置URL.我怎么做?我猜了一下,并在IIS中创建了一个虚拟目录,并将其指向Visual Studio .sln文件,但是当我尝试重新打开.sln文件时,得到了相同的错误消息.这是我遇到的错误:

I am trying to get an external visual studio solution working in my local copy of visual studio professional 2010. When I open the solution, I see an error message that the local IIS URL has not been configured and would I like to create a virtual directory. When I click yes, it says that the configuration failed and that I have to manually configure the URL. How do I do that? I took a guess and created a virtual directory in IIS and pointed its path to the Visual Studio .sln file but when I tried to re-open the .sln file I got the same error message. Here are the errors I am getting:

这是我在IIS管理器中手动创建的虚拟目录的样子:

Here is what the virtual directory that I created manually looks like in IIS manager:

我是否需要以某种方式修改配置文件以告诉它在IIS上的虚拟目录中的哪里找到?还是Visual Studio将在IIS上搜索虚拟目录以查看是否有指向我要打开的.sln文件的路径?

Do I need to somehow modify a config file to tell it where to find the virtual directory on IIS? Or will visual studio search the virtual directories on IIS to see if any point to the path of the .sln file I am trying to open?

推荐答案

有两种可能性:

  1. 以管理员身份启动Visual Studio(如果可以).然后,VS可以自动创建虚拟目录
  2. 使用IIS管理器并添加一个应用程序(右键单击默认网站",然后选择添加应用程序...").设置别名(您的应用程序的名称)和路径指向您的Web应用程序的根目录)

这篇关于如何在IIS中手动配置虚拟目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆