问题描述
我正在运行带有IISExpress8的Windows Server 2008 R2(x64),并且导航到
I'm running Windows Server 2008 R2 (x64) with IISExpress8 and when navigating to
c:\Program Files (x86)\IIS Express>iisexpress.exe
它说:
文件名:redirection.config
Filename: redirection.config
任何想法从哪里开始?我什么都找不到...
Any ideas where to start?I can't find anything...
推荐答案
我遇到了与@Myles J类似的问题,但重命名%userprofile%\Documents\IISExpress\config\applicationhost.config
无效.我要做的是以下事情:
I had a similar issue to @Myles J but renaming %userprofile%\Documents\IISExpress\config\applicationhost.config
didn't work. What I had to do was the following:
- 关闭Visual Studio.
- 重命名
%userprofile%\Documents\IISExpress\config
目录. - 再次启动Visual Studio.
%userprofile%\Documents\IISExpress\config
目录将使用默认配置文件重新创建. - 将原始的
applicationhost.config
文件复制到自动生成的文件中.
- Close Visual Studio.
- Rename the
%userprofile%\Documents\IISExpress\config
directory. - Start Visual Studio again. The
%userprofile%\Documents\IISExpress\config
directory will be recreated with the default config files. - Copy the original
applicationhost.config
file over the autogenerated one.
在有人问:文件夹的权限是相同的之前,未在文件夹或其文件上设置只读标志,并且我没有以任何方式修改applicationhost.config
.
Before anyone asks: the permissions on the folders were identical, the read-only flag was not set on the folder or its files, and I didn't modify applicationhost.config
in any way.
这篇关于IISExpress 8无法读取配置文件redirection.config的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!