程序“[3984] dotnet.exe"已退出,代码为 -2147450751 (0x80008081) [英] The program '[3984] dotnet.exe' has exited with code -2147450751 (0x80008081)

查看:44
本文介绍了程序“[3984] dotnet.exe"已退出,代码为 -2147450751 (0x80008081)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

The program '[3984] dotnet.exe' has exited with code -2147450751 (0x80008081).
The program '[3984] dotnet.exe: Program Trace' has exited with code 0 (0x0).
The program '[2492] iisexpress.exe: Program Trace' has exited with code 0 (0x0).
The program '[7352] chrome.exe: WebKit' has exited with code -1 (0xffffffff).
The program '[2492] iisexpress.exe' has exited with code 0 (0x0). 

在我的 mvc 项目(使用 VS 2017 .Net Core 2.14)上启动调试器后,chrome 在调试期间打开和关闭一秒钟,我收到此错误.有人有想法吗?

After I started the debugger on my mvc project (Using VS 2017 .Net Core 2.14) the chrome opens and closes for a second during the debugging and I m getting this errors. Anyone have an idea?

推荐答案

TL;DR; 只需从 这里

完整详细信息:当我尝试运行一个简单的 .NET 核心控制台应用程序时,输出窗口中显示以下错误并且该应用程序未启动:

Complete Details: When I was trying to run a simple .NET core console application below error was shown in output window and the application wasn't starting:

程序[11036] dotnet.exe"已退出,代码为 -2147450749(0x80008083).

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

然后我转到应用程序代码的 inDebug etcoreapp1.1 路径并在该路径中启动一个 powershell 窗口.然后我尝试使用以下命令从控制台启动应用程序:

Then I went to inDebug etcoreapp1.1 path of my application code and started a powershell window in that path. Then I tried launching the application from console with below command:

dotnet .myapp.dll

给出了以下错误:

找不到任何兼容的框架版本指定的框架Microsoft.NETCore.App",版本1.1.2"不是成立.- 检查应用程序依赖项并定位安装在以下位置的框架版本:- 或者,安装框架版本1.1.2".

It was not possible to find any compatible framework version The specified framework 'Microsoft.NETCore.App', version '1.1.2' was not found. - Check application dependencies and target a framework version installed at: - Alternatively, install the framework version '1.1.2'.

然后我意识到 Visual Studio 根本没有在输出窗口中显示这个对我更有用的真正错误.

Then I realized that Visual Studio wasn't showing this real error at all in the output window which would have been more useful to me.

这样就敲响了警钟.我快速运行命令 dotnet --version 以了解已安装的最高 .NET 核心版本.它返回:

So that ring some bells. I quickly ran the command dotnet --version to know the highest installed .NET core version. It returned :

2.0.3

我还检查了 C:Program Filesdotnetsdk 目录,它包含以下目录:

I also checked C:Program Filesdotnetsdk directory and it contained below directories:

1.0.0-preview2-003131
1.0.0-preview4-004233
1.0.4
1.1.0

最后我决定从 这里.设置有两个部分:

Finally I decided to run the latest available .NET core SDK setup from here. There are two parts of the setup:

  1. Microsoft .NET 核心 1.0.5 运行时
  2. Microsoft .NET 核心 Windows Server 托管

第二部分对于真正解决此错误至关重要.安装程序的第二部分要求在您的计算机上启用 IIS 功能作为先决条件.因此,在开始使用安装程序之前,请启用 IIS 功能.

The second part is crucial to really solving this error. Second part of the installer requires that IIS feature is enabled on your machine as a prerequisite. So enable IIS feature before you get started with the installer.

刚刚运行并完成安装程序设置就解决了我的问题.

Just running and finishing the installer setup resolved my issue.

这篇关于程序“[3984] dotnet.exe"已退出,代码为 -2147450751 (0x80008081)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆