小编raj*_*raj的帖子

Asp.net 核心 - 无法连接网络服务器“IIS Express”

我将启动设置更改为支持远程 IP 托管

{
  "iisSettings": {
    "windowsAuthentication": false,
    "anonymousAuthentication": true,
    "iisExpress": {
      "applicationUrl": "http://192.168.1.69:55446/",
      "sslPort": 0
    }
  },
  "profiles": {
    "IIS Express": {
      "commandName": "IISExpress",
      "launchBrowser": true,
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      }
    },
    "myapplication": {
      "commandName": "Project",
      "launchBrowser": true,
      "launchUrl": "http://localhost:5000",
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      }
    }
  }
}
Run Code Online (Sandbox Code Playgroud)

它在我的系统中运行良好。

然后我从另一个远程系统中的 tfs 下载我的项目并更改了 ipaddress 以支持远程 ip 托管并在管理员模式下运行该应用程序..但它仍然显示“无法连接网络服务器 'IIS Express'”

 {
  "iisSettings": {
    "windowsAuthentication": false,
    "anonymousAuthentication": true,
    "iisExpress": {
      "applicationUrl": "http://192.168.1.79:55446/",
      "sslPort": 0
    }
  },
  "profiles": {
    "IIS Express": {
      "commandName": …
Run Code Online (Sandbox Code Playgroud)

.net c# iis asp.net-core

6
推荐指数
3
解决办法
9380
查看次数

标签 统计

.net ×1

asp.net-core ×1

c# ×1

iis ×1