问题描述:我有一个ABP项目,之前一直是好好的,现在发现以https方式运行不起来,网页无法打开。
但是呢,以http方式是没有问题的,起初以为是端口问题,但是变换了好几次端口,依然是这样。
以下是launchSetting.json文件,如果sslPort设置为0,则以applicationUrl的值打开,也就是打开
http://localhost:8089,网页打开正常。如果sslPort不为0,则以https方式打开。
我反复修改了这个sslPort的值,依然报网页无法打开。
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:8089", //将sslPort设置为0,以http方式打开没有问题,
"sslPort": 44338 //不断修改这个值,依然报“网页无法访问”
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"HKC.AMS.Web": {
"commandName": "Project",
"launchBrowser": true,
"applicationUrl": "https://localhost:44338",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}
提出 问题:
这个问题的原因会是什么呢,如何解决?
期待各位的指点,感谢!