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 http://habjan.blogspot.com/2014/02/visual-studio-2013-unable-to-launch-iis.html 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 192.168.1.3.

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

netsh http delete iplisten ipaddress=192.168.1.3.

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

netsh http add iplisten ipaddress=0.0.0.0

And then followed this link https://stackoverflow.com/questions/20036984/how-do-i-restore-a-missing-iis-express-ssl-certificate

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 阅读(502) 评论(0)  编辑 收藏 引用 所属分类: Web


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   博问   Chat2DB   管理