简体   繁体   English

无法在Visual Studio 2017 RC中启动IIS Express

[英]Unable to launch IIS Express in Visual Studio 2017 RC

Had a web application working in Visual Studio 2015 Update 3 perfectly. 有一个Web应用程序完美地在Visual Studio 2015 Update 3中工作。 I ported the project to Visual Studio 2017 RC and compiled successfully. 我将项目移植到Visual Studio 2017 RC并成功编译。 When debugging the application IIS Express terminates after dumping the message below in the output pane of VS 2017 RC: 在调试应用程序时,IIS Express在VS 2017 RC的输出窗格中转储下面的消息后终止:

The program '[7896] iisexpress.exe: Program Trace' has exited with code 0 (0x0).
The program '[8488] dotnet.exe' has exited with code 0 (0x0).
The program '[8488] dotnet.exe: Program Trace' has exited with code 0 (0x0).
The program '[7896] iisexpress.exe' has exited with code 0 (0x0).

What's the solution to make the project running and debuggable? 什么是使项目运行和可调试的解决方案?

In my case with Visual Studio 2017 Community Edition I tried following: 在我的Visual Studio 2017社区版的情况下,我试过以下:

  • Delete IISExpress config folder in Documents 删除Documents中的IISExpress配置文件夹
  • Delete hidden .vs in project root 删除项目根目录中隐藏的.vs
  • Restart Visual Studio 2017 and computer 重新启动Visual Studio 2017和计算机

nothing worked until I re-run installer and choose option "Repair". 在重新运行安装程序并选择“修复”选项之前,没有任何工作。 Then somehow everything started working. 然后不知何故一切都开始起作用

You are most probably missing "commandName": "Project" in your launchSettings.json file. 您很可能在launchSettings.json文件中缺少"commandName": "Project" I have described the issues I faced with porting to VS 2017 here 我已经描述了在这里移植到VS 2017时遇到的问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM