我的launchSettings.json是(将launchUrl
更改为applicationUrl
后):
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:5000/",
"sslPort": 0
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "http://localhost:5050/"
},
"Project Development": {
"commandName": "Project",
"launchBrowser": true,
"applicationUrl": "http://localhost:5050/"
}
}
}
以前两个配置文件都已打开http://localhost:5050/
。现在第二个配置文件刚启动服务器,并首先显示“项目不知道如何运行配置文件IIS Express”错误。