我突然无法使用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时出错。 hr = 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提示这可能是注册表问题。
我尝试过的事情
.vs
文件夹。IIS 10
上的命令从命令行手动运行IIS。IIS 10
并安装IIS 8
IIS 8
上的命令从命令行手动运行IIS。