IIS Express无法启动

Luk*_*ett 15 iis-express

我只是把它放在那里,因为它是一个谷歌零结果,这意味着我赢了奖?

从一个帐户重新安装后无法启动IIS Express 7.5,但我可以在我的其他域帐户下登录.

奇怪的是,它失败的帐户是我的"超级"帐户,具有本地管理员权限,也是我安装它的帐户.

该错误源于diprestr.dll无法加载...

C:\Program Files (x86)\IIS Express>iisexpress.exe /trace:error
Starting IIS Express ...
Initializing the W3 Server Started CTC = 2068729
W3 Server initializing WinSock.  CTC = 2068744
W3 Server WinSock initialized.  CTC = 2068744
W3 Server ThreadPool initialized (ipm has signalled).  CTC = 2068744
Failed to load global module C:\Program Files (x86)\IIS Express\diprestr.dll
Failed processing with hr = 8007007e
Error loading global modules.  hr = 8007007e
Terminating W3_SERVER object
Start listenerChannel http:0
Initializing the W3 Server Started CTC = 2069774
W3 Server initializing WinSock.  CTC = 2069774
W3 Server WinSock initialized.  CTC = 2069774
W3 Server ThreadPool initialized (ipm has signalled).  CTC = 2069774
Failed to load global module C:\Program Files (x86)\IIS Express\diprestr.dll
Failed processing with hr = 8007007e
Error loading global modules.  hr = 8007007e
Terminating W3_SERVER object
InitComplete event signalled
Report ListenerChannel stopped due to failure; ProtocolId:http, ListenerChannelId:0
Process Model Shutdown called
Failed to start 'HostedWASStart'.  Error = 38246848
HostableWebCore activation failed.
Unable to start iisexpress.

The specified module could not be found.
For more information about the error, run iisexpress.exe with the tracing switch enabled (/trace:error).
Run Code Online (Sandbox Code Playgroud)

有什么想法吗?我将尝试Process Monitor并查看.

到目前为止,IIS Express被证明是另一个需要学习和出错的东西.

小智 23

澄清约翰的评论 - 目录将是类似的C:\users\jmitchell\My Documents\IISExpress\config.我认为John是正确的,如果它不存在,你需要创建目录.

或者,目录可能已经存在并且只是被破坏了.这就是我认为在我的情况下发生的事情.我以前安装过WebMatrix但今天遇到了各种各样的问题.卸载IIS Express,Web平台安装程序,WebMatrix和一些SQL Server管理对象,然后重新安装WPI和WebMatrix后,我遇到了这篇文章.

我删除上面提到的配置目录后,实际上让IIS Express成功运行,然后重新运行 C:\Program Files (x86)\IIS Express>iisexpress.exe /trace:error

而且我在这一天浪费了两个小时!谢谢微软!


Joh*_*ell 15

检查其失败的用户IISExpress\config在其主文件夹中是否有文件夹.如果没有,则将其从IISExpress工作的用户复制.缺少配置文件/文件夹时,这是一个常见故障.

  • 干杯约翰,文件夹在那里,所以我清除了任何现有的文件,它解决了它!我欠你一品脱. (8认同)
  • 这取决于您的操作系统和特定设置,但通常: - C:\ users\<USERNAME>\My Documents\IISExpress\config (3认同)
  • 就像@Luke一样 - 清除了配置文件夹中的所有内容,iisexpress神奇地找到了它丢失的模块:)请注意,如果你的"我的文档"文件夹在其他驱动器上,你的配置文件夹可能不在磁盘C上. (2认同)

wor*_*yte 8

使用 Rider 我不得不删除这里找到的这个配置文件并且它起作用了 \.idea\config\applicationhost.config

认为这是我删除 VS 时引起的


Sru*_*Suk 7

我有两件事要做才能让它发挥作用

  1. 像大家一样尝试

    1.1. 删除C:\{users}\My Documents\IIS Express\config中的所有文件
    (注意:不要担心它会自动重新创建它,如果你担心可以先复制到其他地方)


  1. 如果仍然不起作用,请尝试以下操作

    2.1. 删除 {您的项目}\.vs\{您的项目}\config 中的所有文件
    (注意:.vs\ 文件夹已隐藏,请确保先显示隐藏文件夹)

    2.2. 在 Visual Studio 中 > 右键单击​​您的项目 > 选择属性

    2.3. 选择“Web”选项卡 > 在项目 URL 中 > 更改端口(例如:从 http://localhost:1096/ 更改为 http://localhost:1097/)

    2.4. 保存并再次运行您的项目。