.net - 在 Visual Studio 2017 中使用 IIS Express 运行时,ASP.NET Core 1.1 Web 应用程序无法启动

标签 .net asp.net-core visual-studio-2017

我最近安装了 Visual Studio 2017 Professional,并刚刚创建了样板 ASP.NET Core Web 应用程序

这就是我点击“运行”(使用 IIS Express)时发生的情况:

enter image description here

这就是 Visual Studio 2017 的输出窗口的内容:

The program '[8260] dotnet.exe' has exited with code -2147450749 (0x80008083).

The program '[6476] iisexpress.exe' has exited with code 0 (0x0).

修复步骤?

最佳答案

我认为这是一个错误,如 Visual Studio 2017 Doesn't Run Core Apps with IIS Express .

当前状态已修复,待发布:https://developercommunity.visualstudio.com/content/problem/11391/aspnet-core-iis-express-httplocalhost51733-failed.html

同时,解决方法可能是:

  • dotnet 运行
  • 发布到本地 IIS。这对我有用。
  • (未经测试:从 core-1.1 降级到 core-1.0)

如果您不熟悉 VS2017/asp.net:您可能会看到“调试”工具栏,其中显示一个带有绿色箭头和“IIS Express”的下拉菜单。单击该按钮,您应该会看到“运行 {yourprojectname}”选项。这相当于从命令行 dotnet run {yourprojectname}

关于.net - 在 Visual Studio 2017 中使用 IIS Express 运行时,ASP.NET Core 1.1 Web 应用程序无法启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43046220/

相关文章:

c# - 哈瓦那人的关系

.net - Intellisense 告诉我 Element 'a' 不能嵌套在 Element 'a button' 中。但它不是

c++ - FFmpeg av_read_frame 从音频流返回数据包

c# - 除了背景图片之外,css 代码在 mvc 中不起作用

c# - 执行存储在字符串变量中的# 命令?

.net - SqlCommand.ExecuteReader 持续时间小于 SQL Profiler 批处理持续时间

c# - 来自 PostAsync 的 HttpPost 始终为 null

c# - 如何将文件和 json 对象从 postman 传递到 asp.net 核心 webapi

session - NET Core 服务器端多 session Blazor

c - 在 DevC++ 中工作但不在 Visual studio 2017 中工作