从命令行 IIS Express
我已经安装了 IIS Express 7.5 Beta 3 并在多台计算机(Windows 7、Windows Server 2008 R2 和 Windows XP)上进行了尝试,在每台计算机上运行时都会出现以下错误
iisexpress /path:e:\onlineinvoices\
。似乎找不到 applicationhost.config 文件。我自己也搜索过这个文件,在IISExpress安装文件夹的AppServer文件夹中找到了它。
Copied template config file 'C:\Program Files (x86)\IIS Express\AppServer\applicationhost.config' to 'C:\Users\marko\AppData\Local\Temp\iisexpress\applicationhost201115151422496.config'
Temp configuration file settings error.
The system cannot find the file specified.
此处的说明是非常奇怪,尤其是那些处理配置文件的。事实上,它说 applicationhost.config 应该存在于 Users Documents 文件夹中,但那里没有任何痕迹。
I've installed the IIS Express 7.5 Beta 3 and tried it on multiple computers (Windows 7, Windows Server 2008 R2 and Windows XP) and on each one of them I get the following error when running
iisexpress /path:e:\onlineinvoices\
This is the error. It seems it can't find the applicationhost.config file. I've searched for this file myself too and found it in the AppServer folder of IISExpress installation folder.
Copied template config file 'C:\Program Files (x86)\IIS Express\AppServer\applicationhost.config' to 'C:\Users\marko\AppData\Local\Temp\iisexpress\applicationhost201115151422496.config'
Temp configuration file settings error.
The system cannot find the file specified.
The instructions here are pretty weird especially the ones that deal with configuration file. As a matter of fact it says that the applicationhost.config should exist in Users Documents folder but there's no trace of it there.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我也有同样的问题。
在我通过双击
C:\Program Files\IIS Express\iisexpress.exe
运行 IIS Express 后,它开始工作。之后,当我从命令行运行它时,它就起作用了。
I had the same problem.
It started working after I ran IIS Express by double clicking on the
C:\Program Files\IIS Express\iisexpress.exe
.After that it worked when I ran it from the command line.
是的,启动一次 iisexpress.exe 应该可以解决问题。这是一个错误,我们将尽早修复。使用 /path 选项使用临时目录下的临时配置文件,该文件设置为包含指定的应用程序。如果没有 /path,iisexpress.exe 将使用文档下的默认 applicationhost.config,如果不存在,则会创建一个。
希望这有帮助。
Yes, launching iisexpress.exe one time should fix the problem. This is a bug that we will fix at the earliest opportunity. Using the /path option uses a temporary configuration file under the temp directory, which is setup to include the specified app. Without /path, iisexpress.exe uses the default applicationhost.config under documents and will create one if it doesn't exist.
Hope this helps.