【发布时间】:2016-12-08 12:34:39
【问题描述】:
我将启动设置更改为支持远程 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"
}
}
}
}
它在我的系统中运行良好。
然后我从另一个远程系统中的 tfs 下载我的项目并更改 ipaddress 以支持远程 ip 托管并以管理员模式运行应用程序..但仍然显示“无法连接 webserver 'IIS Express'”
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://192.168.1.79:55446/",
"sslPort": 0
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"eBMSForumApplication": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "http://localhost:5000",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}
【问题讨论】:
-
Mby 检查一个端口。如果它没有免费可能会出错
-
我不知道你的情况到底出了什么问题,但另一种解决方案可能是使用我们免费的名为 Conveyor 的 VS 扩展 -> visualstudiogallery.msdn.microsoft.com/… 它允许从其他机器/设备连接到 IIS Express。
-
@raj,你找到原因了吗?我今天在这里问了一个类似的问题:stackoverflow.com/questions/56890385/…。谢谢。
-
对我来说这是端口问题,我在 applicationUrl 启动 settings.json 中更改了端口问题,它起作用了
标签: c# .net iis asp.net-core