首页 新闻 会员 周边 捐助

.net 5做webApi的时候 指定的sslPort端口无法访问的问题

0
悬赏园豆:30 [待解决问题] 浏览: 42次

使用的就是官方的api例子:代码未做任何改变


其中launchSetting.json配置为:
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:1212",
"sslPort": 9988
}
},
"$schema": "http://json.schemastore.org/launchsettings.json",
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"launchUrl": "weatherforecast",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"nativeDebugging": false,
"jsWebView2Debugging": false
},
"WebApplication3": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "weatherforecast",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"dotnetRunMessages": "true",
"applicationUrl": "https://localhost:5201;http://localhost:5000"
}
}
}

我本梁人的主页 我本梁人 | 初学一级 | 园豆:172
提问于:2025-02-20 10:49
< > 人人可用的开源BI工具
分享
所有回答(1)
0

参考 https://stackoverflow.com/a/59186591

the SSL port must be between 44300 and 44399.

dudu | 园豆:27830 (高人七级) | 2025-02-20 11:08


还是一样的

支持(0) 反对(0) 我本梁人 | 园豆:172 (初学一级) | 2025-02-20 11:11

@我本梁人: 再提供一篇参考博文:8 ways to set the URLs for an ASP.NET Core app,其他帮不上了

支持(0) 反对(0) dudu | 园豆:27830 (高人七级) | 2025-02-20 11:17
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册
Top