Nat*_*ini 5 iis-express visual-studio-2015 asp.net-core
我下载了一个示例 ASP.NET 5 (vNext) 应用程序并尝试将其配置为在我的本地计算机上运行。
当我打开 Project Properties 窗口并切换到 Debug 选项卡时,App URL 字段为空且无法编辑:
当我尝试从 IIS Express 更改为web配置文件,甚至关闭“属性”窗口时,出现以下错误:
IIS Express 设置缺少 App URL 属性。这是配置 IIS express 以运行站点所必需的。
此时,Visual Studio 完全卡住了,甚至不会退出。我不得不通过任务管理器终止进程才能退出。
如果字段被锁定,如何设置此属性?
该项目是缺少iisSettings的部分Properties\launchSettings.json。
该原 launchSettings.json:
{
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNET_ENV": "Development"
}
},
"web": {
"commandName": "web",
"environmentVariables": {
"ASPNET_ENV": "Development"
},
"sdkVersion": "dnx-clr-win-x86.1.0.0-rc1-final"
}
}
}
Run Code Online (Sandbox Code Playgroud)
我必须在上面添加此部分profiles:
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:49901/",
"sslPort": 0
}
}
Run Code Online (Sandbox Code Playgroud)
添加后,我可以通过“属性”窗口正常修改设置。
| 归档时间: |
|
| 查看次数: |
3523 次 |
| 最近记录: |