x
login Signup

Why do I get STATUS_DLL_INIT_FAILED from a program run on the agent?

A program run on the agent fails with STATUS_DLL_INIT_FAILED (0xC0000142 = 3221225794U = -1073741502) or ERROR_DLL_INIT_FAILED (1114). What causes this and how can I fix it?

avatar image By prefontaine 456 asked Aug 06, 2012 at 12:50 PM
more ▼
(comments are locked)
10|750 characters needed characters left

1 answer: sort voted first

The most common cause of this problem is that a program that links to user32.dll was run in a context in which it could not talk to the system's window station and desktop. Normally, a service such as the agent runs in its own window station and desktop, and user32 programs run fine, but any program that displayed a dialog box would then hang without any opportunity for a human being to see the error message or close the dialog.

The agent takes the following measures to avoid this problem:

  1. All programs executed by the agent talk to the default window station and desktop (winsta0\default.

  2. All the agents are run as users with Administrator privileges; the default ACL for the default window station and desktop give full control to the Administrator group.

  3. ecagentsvc.exe, the service that starts the agents, edits the ACL of the default window station and desktop to grant full access to the agent users, whether or not they're in the Administrator group. However, this ACL change is fragile, because anyone logging in or out on the system console will destroy and re-create the default window station and desktop.

If this problem occurs, check to ensure that the ACL is not a problem:

  1. Start the Task Manager and verify that all agents are running as ECloudInternalUser_N_.

  2. Go to the system's Administrative Tools, open Computer Management, and verify that all ECloudInternalUser_N_ users are members of the local Administrators group.

avatar image By aaron scheiber 3.7k answered Aug 06, 2012 at 01:43 PM
more ▼
(comments are locked)
10|750 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.