【发布时间】:2019-02-19 15:39:27
【问题描述】:
我使用 VS2017 创建了一个空的 asp.net 核心应用程序。我唯一更改的是 launchSettings.json 文件中的 "sslPort": 属性。
当我单击运行 IIS Express chrome 时,会打开 url https://localhost:9995/ 并给出 This site can't be reached The connection was reset. 错误
我的 launchSettings.json 如下
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:39566",
"sslPort": 9995
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"JccWeb2": {
"commandName": "Project",
"launchBrowser": true,
"applicationUrl": "https://localhost:5001;http://localhost:5000",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}
我做错了什么?
【问题讨论】: