【问题标题】:Can't Start IIS Express: An error occurred attempting to determine the process id无法启动 IIS Express:尝试确定进程 ID 时发生错误
【发布时间】:2017-12-20 21:14:02
【问题描述】:

当我尝试启动我的 ASP.Net Core 1.1 应用程序时,我收到以下错误:

试图确定托管应用程序的 Blah.exe 的进程 ID 时发生错误。发送请求时出错。


我在 `launchSettings.json' 中将 applicationUrl 端口号从 44300 更改为 44301 并且能够启动它。

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

为什么更改端口 # 使其工作?我在哪里可以找出它为什么无法启动?

我运行了TCPViewer,但没有看到44300在使用中。

【问题讨论】:

  • 可能有别的东西在使用这个端口。
  • 这就是我的想法,但根据 TCPViewer、资源监视器和 netstat 端口未使用。

标签: asp.net-core visual-studio-2017 iis-express


【解决方案1】:

卸载并re-install of IIS Express 修复它。

原来端口 44300 没有绑定到我的 IIS Express 证书。 Bill Hiebert 已经按照this developer community issue 中的文档说明了这一点。


当我运行netsh http show sslcert 时,没有列出端口 44300。我卸载并重新安装了 IIS Express,现在它已列出。

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-04-22
    • 1970-01-01
    • 2016-01-14
    • 2017-04-19
    • 2017-09-03
    • 1970-01-01
    相关资源
    最近更新 更多