启动 .NET 应用程序时错误代码 0xc0000135 是什么意思?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11432940/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-03 16:31:43  来源:igfitidea点击:

What does error code 0xc0000135 mean when starting a .NET application?

.net

提问by David M

Symptom is that the application starts correctly on the majority of PCs (Windows 7 and XP) at the user's site, but on one machine it consistently fails to start with the error "The application failed to initialize properly (0xc0000135)". What's the issue?

症状是该应用程序在用户站点的大多数 PC(Windows 7 和 XP)上正常启动,但在一台机器上它始终无法启动并显示错误“应用程序未能正确初始化 (0xc0000135)”。有什么问题?

采纳答案by David M

This error is caused when the .NET framework is not installed on the target computer, or when the version(s) installed are not sufficient to run the application. The resolution is obvious: install the correct version of the .NET framework before running the application.

当目标计算机上未安装 .NET Framework 或安装的版本不足以运行应用程序时,会导致此错误。解决方法很明显:在运行应用程序之前安装正确版本的 .NET 框架。

回答by Hans Passant

From the ntstatus.h SDK header file:

从 ntstatus.h SDK 头文件:

//
// MessageId: STATUS_DLL_NOT_FOUND
//
// MessageText:
//
// The program can't start because %hs is missing from your computer. 
// Try reinstalling the program to fix this problem.
//
#define STATUS_DLL_NOT_FOUND             ((NTSTATUS)0xC0000135L)    // winnt

The "try reinstalling the program" advice is solid, it is however up to you to figure out exactly whatneeds to be installed. If you have no idea whatsoever then use SysInternals' ProcMon utility, you'll see Windows searching for the DLL and failing to find it. The name of the DLL should be a good lead. If it is mscoree.dll then you forgot to install .NET on the target machine.

“尝试重新安装程序”的建议是可靠的,但是由您来确定需要安装什么。如果您对此一无所知,则使用 SysInternals 的 ProcMon 实用程序,您将看到 Windows 正在搜索 DLL 并且找不到它。DLL 的名称应该是一个很好的引导。如果它是 mscoree.dll,那么你忘记在目标机器上安装 .NET。

回答by babboon

Also check the version, there is also a ".NET Framework 4.0", which is different from 3.5. The 4.0 will NOT run applications designed for 3.5

还要检查版本,还有一个“.NET Framework 4.0”,与3.5不同。4.0 不会运行专为 3.5 设计的应用程序

回答by Widodo

steps are you doing

你在做什么

Error code 0xc0000135 in because the computer is in use there. Net framework. you have to do is install it first. net framework.

错误代码 0xc0000135 因为计算机正在那里使用。网络框架。你要做的就是先安装它。网络框架。

before install. framework net framework version also check your in your visual studio. framework to check the version of your visual studio as follows:

安装前。框架网络框架版本也检查你在你的视觉工作室。用于检查 Visual Studio 版本的框架如下:

  • First open your visual studio
  • Select a project and then click Properties then select the reference windows
  • There would appear there System.Core version. Net framework used.
  • After the search. Net framework version is installed on the client computer and finishes its exe please try again on the run. if there is an error as follows then you have to do is
    1. see references in use and setting property all references to copy local = true property
    2. after that at build or run the project then stop project
    3. exe file in the folder looking for locations in windownaplication debug \ bin \ debug.
    4. in existing debug folder exe files and dll files
    5. dll file is an exe file supporters of the dll files that should include. try running its exe.
  • 首先打开你的视觉工作室
  • 选择一个项目,然后单击属性,然后选择参考窗口
  • 那里会出现 System.Core 版本。使用的网络框架。
  • 搜索之后。客户端计算机上安装了Net框架版本并完成其exe,请在运行时重试。如果出现如下错误,那么你要做的是
    1. 查看使用中的引用和设置属性的所有引用以复制 local = true 属性
    2. 之后在构建或运行项目然后停止项目
    3. exe文件在windownaplication debug\bin\debug文件夹中寻找位置。
    4. 在现有调试文件夹中的 exe 文件和 dll 文件
    5. dll 文件是应包含的 dll 文件的 exe 文件支持者。尝试运行它的exe。