Visual studio: 由于无法启动 iisexpress,无法编译 aspx 页面

Visual studio: unable to compile aspx page as unable to start iisexpress

我是 visual studio 的新手,所以请帮我解决这个问题。我搜索过类似的问题,但没有成功或没有答案。

所以我刚刚在 visual studio 2017 年创建了一个 .aspx 页面,我想编译它并在网络浏览器上显示它(我使用 chrome 它)但是它给出了一个错误:

Visual studio Error generated:

Unable to start iisexpress.

The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.
For more information about the error, run iisexpress.exe with the tracing switch enabled (/trace:error).

长话短说,我继续使用 cmd 跟踪 issexpress 错误并得到了这个:

error I got from cmd:

C:\Program Files (x86)\IIS Express>iisexpress.exe /trace:error
Starting IIS Express ...

Initializing the W3 Server Started CTC = 19870296

W3 Server initializing WinSock.  CTC = 19870312

W3 Server WinSock initialized.  CTC = 19870312

W3 Server ThreadPool initialized (ipm has signalled).  CTC = 19870312

Start listenerChannel http:0

Error (rc=80070422) in UlInitialize. Exiting

Error initializing ULATQ.  hr = 80070422

Terminating W3_SERVER object

InitComplete event signalled

Process Model Shutdown called

Waiting for all LISTENER_CHANNELS to stop

有人说卸载重装iisExpress,删除文档中的IISExpress文件夹,重新运行 IIS Express。那些没有用,许多其他情况类似但错误代码不同。

有人知道怎么解决吗?

哦,不确定是否相关,我在我的 IIS 上检查了这些: windows features, IIS checkbox

转到控制面板:

控制 Panel\All 控制面板 Items\Programs 和 Features\Turn windows 功能打开或关闭\ => 启用 IIS。

要启用 IIS: 勾选IIS essential feature.Please找到下图。 IIS image link

请更改 xampp port.Both Amp 和 ASP.net 工作在同一个 port.If 你更改 xamp 端口,然后它会 work.please 尝试让我知道。

How to change XAMPP apache server port?