Reputation: 72930
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
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
Reputation: 1
In this you may wont be able to open server Manager , getting error for ServerManager.exe.
Simply follow the below steps :
Enjoy
Sujay G.
Upvotes: 0
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
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