visual-studio - IIS Express 无法运行 - UlInitialize 中的错误 (rc=800703f1)
问题描述
我突然无法使用 IIS Express 在 Visual Studio 2017 中调试任何东西。
症状
在 VS2017 中调试时,输出窗口立即显示以下消息。
程序“[13980] iisexpress.exe”已退出,代码为 0 (0x0)。
通过命令提示符运行 IIS:
"C:\Program Files (x86)\IIS Express\iisexpress.exe" /port:50896 /path:"C:\Users\XXXXXXX\Documents\Visual Studio 2017\Projects\BT\ManageOIC\EnterpriseMedicalReportTool\\" /trace:error
UlInitialize 中的错误 (rc=800703f1)。退出初始化 ULATQ 时出错。小时 = 800703f1
Copied template config file 'C:\Program Files (x86)\IIS Express\AppServer\applicationhost.config' to 'C:\Users\XXXXX~1\AppData\Local\Temp\iisexpress\applicationhost2018111183214194.config'
Updated configuration file 'C:\Users\XXXXX~1\AppData\Local\Temp\iisexpress\applicationhost2018111183214194.config' with given cmd line info.
Starting IIS Express ...
Initializing the W3 Server Started CTC = 3184968
W3 Server initializing WinSock. CTC = 3184968
W3 Server WinSock initialized. CTC = 3184968
W3 Server ThreadPool initialized (ipm has signalled). CTC = 3184968
Start listenerChannel http:0
Error (rc=800703f1) in UlInitialize. Exiting
Error initializing ULATQ. hr = 800703f1
Terminating W3_SERVER object
InitComplete event signalled
Process Model Shutdown called
Unable to start iisexpress.
The configuration registry database is corrupt.
For more information about the error, run iisexpress.exe with the tracing switch enabled**(/trace:error).
在事件查看器中,记录了以下错误:
The worker process for app pool 'IISExpressAppPool', PID='4504', failed to initialize the http.sys communication when asked to start processing http requests and therefore will be considered ill by W3SVC and terminated. The data field contains the error number.
数据字段: 800703F1
- Err.exe 表明这可能是注册表问题。
我试过的
- 将 IIS Express 的端口更改为几个不同的开放端口
.vs
在 Visual Studio 中删除文件夹。- 运行不同的项目。
- 创建一个新的 MVC Web 应用程序并运行它。
- 通过 Microsoft 网站重新安装 IIS Express。(然后重新启动。)
- 通过 Visual Studio 安装程序重新安装 IIS Express。(然后重新启动。)
- 修复 Visual Studio。(然后重新启动。)
- 通过上面的命令从命令行手动运行 IIS
IIS 10
。 - 卸载
IIS 10
和安装IIS 8
- 通过上面的命令从命令行手动运行 IIS
IIS 8
。 - 运行 sfc /scannow(未发现问题)
- 检查最近的 Windows 更新(未显示)
- 更新视觉工作室
解决方案
推荐阅读
- spring - 使用 Spring Data Paging 确保当前页面是最后一个页面的方法
- python - TensorFlow Serving 客户端批处理
- file - 是否可以使用重定向运算符将输出重定向到文件而不在 Powershell 中写入字节顺序标记?
- sql - Redshift - 查找特定值存储在表中的列中的次数
- python - 基维虫?按钮的启用/禁用属性似乎没有更新,它只关心该字段是否存在并且不等于 0
- java - 重复定义字符串常量会占用更多内存吗?
- reactjs - Material-UI v1:如何为 material-ui v1 中的所有组件设置一个字体大小?
- android - 如何从 Android 向 Azure IoT Hub 发送 SMS
- ansible - 动态构建变量
- javascript - Jquery TokenInput 初始字符串搜索