1

I've been bashing my head against this one for a few days, and haven't had any luck with it. I'm unable to get my VS2010 ASP.NET project to deploy to IIS. I receive the error

"Unable to create the virtual directory. To access local IIS Web sites, you must install the following IIS Components

IIS 6 Metabase and IIS 6 Configuration Compatibility ASP.NET

In addition, you must run Visual Studio in the context of an Administrator Account"

I've most certainly installed the metabase option, but it still shows up. I'm also not sure why it's telling me to install ASP.NET.

Google is being entirely unhelpful, I was wondering if anyone here has any suggestions. I'm running Vista Ultimate 64Bit

4

2 回答 2

0

您已经使用“以管理员身份运行”启动了 VS2010,否则您可能没有足够的权限来做这样的事情。此外,默认 IIS 网站中不存在虚拟目录?

于 2010-06-02T10:23:37.053 回答
0

本文描述了“将 Visual Studio 2008 与 IIS 7 一起使用”,但这些原则可能也适用于 VS2010 和 Vista。[ http://www.iis.net/learn/develop/using-visual-studio-with-iis/using-visual-studio-2008-with-iis][1]
我同时使用 VS2005 和 VS2010 开发网站使用部署项目,该项目创建 setup.exe 和 project.msi 文件。我想知道为什么需要 IIS 6 Metabase 兼容性,但还是不太明白。如果不存在,安装程序会很早就退出,并显示安装“未正确安装”的消息,仅此而已。这似乎是现有 MS 开发工具和 IIS 7 之间的杂物。

于 2014-12-19T19:56:02.263 回答