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?

asked 06 Aug '12, 12:50

Prefontaine's gravatar image

accept rate: 0%

edited 06 Aug '12, 13:44

Aaron%20Scheiber's gravatar image

Aaron Scheiber

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.

answered 06 Aug '12, 13:43

Aaron%20Scheiber's gravatar image

Aaron Scheiber
accept rate: 98%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 06 Aug '12, 12:50

Seen: 3,013 times

Last updated: 06 Aug '12, 13:44

Electric Cloud powers Continuous Delivery, helping organizations developing deliver better software faster by automating and accelerating build, test, and deployment processes at scale. Industry leaders like Qualcomm, SpaceX, Cisco, GE, Gap, and E*TRADE use Electric Cloud solutions to boost DevOps productivity and Agile throughput.