iis Express 7.5 漫游配置文件 Visual Studio 2010 SP1
除非我将“我的文档”文件夹重定向到本地副本,否则 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您似乎使用的是旧版本的 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.
当我工作的组织更改了他们映射我的“我的文档”文件夹(以及许多其他文件夹)的网络驱动器时,我遇到了完全相同的问题。它曾经位于 \machine1\myusername$ 上,现已移至 \someothermachine\myusername$。
当我尝试从“C:\Program Files (x86)\IIS Express>”在控制台窗口中启动 iisexpress 时通过 VS 命令提示符,它返回
读取配置信息时发生错误。确保配置文件 \\machine1\myusername$\IISExpress\config\applicationhost.config 存在、可访问并且包含有效的配置信息。
他们的脚本没有费心压缩注册表并更新从旧“家”到新家的指针。因此,我最终遇到了文件丢失、某些情况下有重复文件以及“此文件当前无法在这台计算机上使用”之类的粗鲁消息。
为了解决这个问题,我做了以下操作:
\\someothermachine\myusername$
)\\machine1\myusername$\
并将其替换为新版本。这花了一段时间,大约有 40-50 个替代品。然后我可以从同一个控制台窗口再次启动 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:
\\someothermachine\myusername$
)\\machine1\myusername$\
and replaced it with the new version. This took a while, there were about 40-50 replacements.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!