解决 IIS Express 启动错误:“拒绝访问”问题

报错

Starting IIS Express ...

stderr: Failed to register URL "http://localhost:8378/" for site "app-3344e220-8b03-465c-8df1-3c41981352a1"
 application "/". Error description: 拒绝访问。 (0x80070005)

Unable to start iisexpress.

拒绝访问。

For more information about the error, run iisexpress.exe with the tracing switch enabled (/trace:error).

解决方案

删除同端口号的URL保留

检查特定 URL 的保留:

netsh http show urlacl

删除保留:

netsh http delete urlacl url=http://+:8378/
posted @ 2024-05-28 16:52  HookDing  阅读(204)  评论(0编辑  收藏  举报