IIS Express 已停止使用 ASP 核心

IIS Express has been stopped using ASP Core

我的项目使用 asp 内核。
在调试模式下,我无法在浏览器中看到我的视图,因为 IIS Express 突然启动和停止!所以,网页不可用。

 "buildOptions": {
    "platform": "anycpu",
    "emitEntryPoint": true,
    "preserveCompilationContext": true
  },

检查 project.json 中的 platform。 因为我们在一个项目团队中工作,所以平台是基于其他系统的 x86。

我时常遇到同样的事情。上次是我把一个应用程序从开发系统移到测试系统时引起的。问题是在测试机器上没有正确版本的 asp.net-core。其他丢失的 DLL 也给我造成了类似的问题。

为了找到问题,我需要查看日志。某处会有消息。我将从 IISExpress 日志开始(默认位置 %userprofile%\documents\IISExpress)。您可能会在 windows 事件日志中找到一些东西(使用事件查看器)。我尝试过的其他事情是直接调用应用程序 - 请查看 Developer Community 的这篇文章。 (文章还展示了如何使用 WinDbg 抓取错误消息并给出了一些其他提示。)