IIS Express无法创建虚拟目录 [英] IIS Express unable to create the virtual directory

查看:70
本文介绍了IIS Express无法创建虚拟目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用IIS Express在http://localhost:5000/上创建虚拟目录,并收到此错误:

I'm using IIS Express to create a virtual directory at http://localhost:5000/ and received this error:

无法创建虚拟目录. URL http://localhost:5000/已被映射到其他文件夹...

Unable to create the virtual directory. The URL http://localhost:5000/ is already mapped to a different folder...

这是因为以前我已经将端口5000用于一个旧项目,并且不再需要它.

This is because I've used the port 5000 for an old project before and it's no longer needed.

我的问题是,如何使用IIS Express删除旧的映射,以便可以再次在同一端口创建虚拟目录?

My question is, how can I remove the old mapping using IIS Express so I can create the virtual directory at the same port again?

谢谢

推荐答案

您应该可以通过以下两种方法之一来完成此任务.

You should be able to accomplish this in one of two ways.

  • 您可以删除旧项目,或使用 WebMatrix 更改其端口. IIS Express的管理界面.
  • 您也可以通过直接修改applicationhost.config文件来手动完成此操作.该文件位于%userprofile%\documents\IISexpress\config文件夹中.您可以在<system.applicationHost>/<sites>元素下找到项目配置.
  • You can remove the old project, or change its port using WebMatrix, which has an administration interface for IIS Express.
  • You can also do it by hand, by modifying the applicationhost.config file directly. The file is located in the %userprofile%\documents\IISexpress\config folder. You can find the project configuration under the <system.applicationHost>/<sites> element.

更新: WebMatrix已停产,并且支持已正式已结束.

UPDATE: WebMatrix has been discontinued and support has officially ended.

这篇关于IIS Express无法创建虚拟目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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