David M
David M

Reputation: 72930

What does Error-code 0xc0000135 (or -1073741515 Exit-code) mean when starting a Windows app?

Symptom is that the .NET 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?

Upvotes: 22

Views: 65607

Answers (4)

David M
David M

Reputation: 72930

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 to install the correct version of the .NET framework before running the application.

Upvotes: 13

Sujay Gopnarayan
Sujay Gopnarayan

Reputation: 1

In this you may wont be able to open server Manager , getting error for ServerManager.exe.

Simply follow the below steps :

  1. Go to Command prompt from RUN.
  2. Copy this command : DISM.exe /online /enable-feature /all /featurename:NetFx3 Note : After execute this command you will error code -ignore it.
  3. Copy this command : DISM.exe /online /enable-feature /all /featurename:NetFx4 Once this command successfully completed.

Enjoy

Sujay G.

Upvotes: 0

Hans Passant
Hans Passant

Reputation: 942178

From the ntstatus.h SDK header file:

//
// 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 what needs to be installed. The name in the message is often missing or is not a good lead because a DLL can't be loaded due to a missing dependency.

You need a utility that can trace LoadLibrary() calls, I recommend SysInternals' ProcMon over the built-in "loader snaps" feature. Towards the bottom of the displayed trace you'll see Windows searching for the missing DLL and failing to find it. If it is mscoree.dll then you forgot to install .NET 3.5 on the target machine.

Upvotes: 28

babboon
babboon

Reputation: 793

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

Upvotes: 0

Related Questions