0

When I try to start my ASP.Net Core 1.1 app, I'm receiving the following error:

An error occurred attempting to determine the process id of Blah.exe which is hosting your application. An error occurred while sending the request.


I changed the applicationUrl port number from 44300 to 44301 in `launchSettings.json' and I was able to get it to start.

{
  "iisSettings": {
    "windowsAuthentication": false,
    "anonymousAuthentication": true,
    "iisExpress": {
      "applicationUrl": "https://localhost:44301/",
      "sslPort": 44301
    }
}

Why did changing the port # make it work? Where can I look to figure out why it wouldn't startup?

I ran TCPViewer and I don't see 44300 in use.

Felipe Deveza
  • 1,709
  • 2
  • 18
  • 28
spottedmahn
  • 13,373
  • 8
  • 95
  • 158

1 Answers1

2

Uninstall and re-install of IIS Express fixed it.

Turns out port 44300 wasn't bound to my IIS Express cert. Bill Hiebert figured it out as documented in this developer community issue.


When I ran netsh http show sslcert, port 44300 wasn't listed. I uninstalled and re-installed IIS Express and now it is listed.

SSL Certificate bindings: 
------------------------- 

IP:port                      : 0.0.0.0:44300
Certificate Hash             : somevalue
Application ID               : {someid}
Certificate Store Name       : MY
Verify Client Certificate Revocation : Enabled
Verify Revocation Using Cached Client Certificate Only : Disabled
Usage Check                  : Enabled
Revocation Freshness Time    : 0
URL Retrieval Timeout        : 0
Ctl Identifier               : (null)
Ctl Store Name               : (null)
DS Mapper Usage              : Disabled
Negotiate Client Certificate : Disabled
Reject Connections           : Disabled
Disable HTTP2                : Not Set
spottedmahn
  • 13,373
  • 8
  • 95
  • 158