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

查看:1509
本文介绍了程序"[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 Core控制台应用程序时,在输出窗口中显示了以下错误,并且该应用程序未启动:

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).

然后,我进入了我的应用程序代码的\bin\Debug\netcoreapp1.1路径,并在该路径中启动了一个powershell窗口.然后,我尝试使用以下命令从控制台启动应用程序:

Then I went to \bin\Debug\netcoreapp1.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 Core版本.它返回了:

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

2.0.3

我还检查了C:\Program Files\dotnet\sdk目录,它包含以下目录:

I also checked C:\Program Files\dotnet\sdk 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 Core 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天全站免登陆