我将启动设置更改为支持远程 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)