brent's hut

Visual Studio + IIS Express debug problem.

Created a simple MVC project in VS 2019, when I clicked debug, it either popped up a "process with and Id of   is not running" message box or show ERR_CONNECTION_RESET error in the browser.

unstalling/reinstalling IIS express, deleting IIS configuration files, deleting the hidden .vs folder under the project, none of this worked.

I started IIS Express in CMD, it showed the message : Unable to launch the IIS Express Web server. The format of the specified network name is invalid - 0x800704BE

Found this link and followed the instuctions:

1. check the IP address bindings by opening command prompt in admin mode and running this command:

netsh http show iplisten

this showed me that the service is listening only

2. then I went to delete this binding by running this command:

netsh http delete iplisten ipaddress=

3. and set the service up to listen to all IP addresses by running this command:

netsh http add iplisten ipaddress=

And then followed this link

cd C:\Program Files (x86)\IIS Express IisExpress

AdminCmd.exe setupsslUrl -url:https://localhost:44387/ -UseSelfSigned

It works now, great job for creating the mazes, Microsoft.

posted on 2020-02-12 08:35 brent 阅读(461) 评论(0)  编辑 收藏 引用 所属分类: Web

网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理