iis Express 7.5 漫游配置文件 Visual Studio 2010 SP1

发布于 2024-11-04 07:32:29 字数 192 浏览 0 评论 0原文

除非我将“我的文档”文件夹重定向到本地副本,否则 IIS Express 将无法启动并显示以下错误消息: 文件名:重定向.config 错误:无法读取配置文件

当从 studio 启动新的 Web 项目,甚至双击 iisexpress.exe 文件时,就会发生这种情况。

有什么方法可以解决这个问题,或者我必须继续重定向“我的文档”文件夹

Unless I redirect the My Documents folder to a local copy IIS Express fails to start with the following error message:
Filename: redirection.config
Error: Cannot read configuration file

This happens when starting a new web project from studio or even is I just double click on the iisexpress.exe file.

Any way around this or must I continue to redirec the My Documents folder

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

鸠书 2024-11-11 07:32:29

您似乎使用的是旧版本的 IIS Express。卸载当前的 IIS Express 并从 http://www.microsoft.com/downloads/en/details.aspx?FamilyID=abc59783-89de-4adc-b770-0a720bb21deb

如果这不能解决您的问题,请告诉我们。

It seems you are using old version of IIS Express. Un-install your current IIS Exprss and install latest refresh release from http://www.microsoft.com/downloads/en/details.aspx?FamilyID=abc59783-89de-4adc-b770-0a720bb21deb

Let us know if this does not solve your problem.

樱桃奶球 2024-11-11 07:32:29

当我工作的组织更改了他们映射我的“我的文档”文件夹(以及许多其他文件夹)的网络驱动器时,我遇到了完全相同的问题。它曾经位于 \machine1\myusername$ 上,现已移至 \someothermachine\myusername$。

当我尝试从“C:\Program Files (x86)\IIS Express>”在控制台窗口中启动 iisexpress 时通过 VS 命令提示符,它返回

读取配置信息时发生错误。确保配置文件 \\machine1\myusername$\IISExpress\config\applicationhost.config 存在、可访问并且包含有效的配置信息。

他们的脚本没有费心压缩注册表并更新从旧“家”到新家的指针。因此,我最终遇到了文件丢失、某些情况下有重复文件以及“此文件当前无法在这台计算机上使用”之类的粗鲁消息。

为了解决这个问题,我做了以下操作:

  1. 找到我的新“我的文档”文件夹的根/基(现在 \\someothermachine\myusername$
  2. 进行了(手动,通过 regedit)注册表搜索密钥、值和数据 \\machine1\myusername$\ 并将其替换为新版本。这花了一段时间,大约有 40-50 个替代品。
  3. 重新启动。

然后我可以从同一个控制台窗口再次启动 iisexpress。它重新注册了标准基础网站,一切又恢复正常了。

我希望这对其他人有帮助!

I had exactly the same problem when the organisation I worked for changed the network drive where they've mapped my My Documents folder (along with a bunch of others). It used to be on \machine1\myusername$ and was moved to \someothermachine\myusername$.

When I tried to fire up iisexpress in a console window from "C:\Program Files (x86)\IIS Express>" via a VS command prompt, it came back with

An error occurred while reading configuration information. Make sure that the configuration file \\machine1\myusername$\IISExpress\config\applicationhost.config exists, it is accessible, and contains valid configuration information.

Their script didn't bother to zip through the registry and update the pointers from the old "home" to the new one. So I ended up with missing files, duplicates in some cases, and rude messages along the lines of "this file is currently not available for use on this computer".

To fix it, I did the following:

  1. Located the root/base of my new "My documents" folder (now \\someothermachine\myusername$)
  2. Did a (manual, via regedit) registry search for keys, values and data for \\machine1\myusername$\ and replaced it with the new version. This took a while, there were about 40-50 replacements.
  3. Rebooted.

I was then able to fire up iisexpress again, from the same console window. It re-registered the standard base website, and it's all working again.

I hope this helps someone else!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文