Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


May 2002

IIS Informant: Troubleshooting a DCOM Error in IIS 5.0

RSS
Subscribe to Windows Web Solutions | See More Distributed COM (DCOM) Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

The error message the server {3D14228D-FBE1-11D0-995D-00C04FD919C1} did not register with DCOM within the required timeout has started appearing in my IIS 5.0 server's event logs. Before the message started appearing, the server was working; now, it can't deliver content. What's causing this problem, and how can I fix it?

The error message tells you that the object's globally unique identifier (GUID), which is the number enclosed in the curly brackets ({}), and that Distributed COM (DCOM) is causing the problem. For this error message to make sense, you have to understand COM and its relationship to IIS—a difficult topic to teach IIS administrators, who aren't interested in programming technology until an error message like this one appears in their event logs and the Web server is down. Suddenly, COM gets very interesting!

Let's start with the GUID. If you're trying to hunt down information about a GUID, the first place to check is the registry. However, in this case, the GUID is special, and you won't find it in a typical search. This GUID is assigned to an entry associated with the Service Control Manager (SCM—i.e., services.exe), whose registry information resides in the HKEY_LOCAL_MACHINE\SECURITY subkey. By default, administrators don't have access to this registry subkey. Even if the Administrators' group has Full Control permission on the subkey, the information isn't readily apparent. You must drill down to the HKEY_LOCAL_MACHINE\SECURITY\Policy\Secret registry subkey and look for the name SCM: {3d14228D-fbe1-11d0-995d00c04fd919c1}.

The SCM launches services for IIS and is involved in many internal operations. If you examine the COM+ applications in the Microsoft Management Console (MMC) Components Services snap-in, you'll find the connection. From the Component Services snap-in, expand the Computer, My Computer, COM+ Applications node. Then, right-click IIS Out-of-Process Pooled Applications and Select Properties. Click the General tab, which Figure 1 shows.

Notice that the application ID (i.e., the GUID) is the same as that reported in the event logs. Thus, you know that your system is having trouble launching an instance of dllhost.exe in which it can load applications set to run in the Medium (Pooled) application-protection mode. (For more information about application-protection modes, see "Determining the Process in Which an Application Is Running," March 2002, InstantDoc ID 23815.)

Often, other event-log error messages accompany this DCOM problem. In particular, you might find an entry such as the one that Figure 2 shows.

One key diagnostic test you can perform is to run your application in Low (In Process) application-protection mode and see whether the new setting works. If your application runs, you know that your system is unable to create an instance of dllhost.exe in which to place applications marked for Medium protection. If the application fails to run in Medium application-protection mode, it will probably also fail in High (Isolated) application-protection mode.

All processes (and dllhost.exe is a process) must run in the context of a user account. Inetinfo.exe runs under the System account. Dllhost.exe runs under the IWAM_servername account. Consequently, IIS must know the password for the IWAM_servername account, which resides in three places:

  • the LM/W3SVC/WAMUserPass IIS metabase key
  • the Component Services snap-in
  • the local SAM or Active Directory (AD)

If a password in any one of these locations fails to agree with the passwords in the other locations, you'll see error messages similar to the one in the above question.

Now that you know that the problem lies with the IWAM_servername password, you can fix it. To do so, follow these steps:

  1. Stop IIS by typing
  2. iisreset /stop

    at the command line.

  3. In the MMC Local Users and Groups snap-in or the MMC Active Directory Users and Computers snap-in, change the IWAM_servername account's password to a known value.


  4. At the command line, type
  5. cscript.exe :
      \inetpub\adminscripts  adsutil.vbs set w3svc/
    wamuserpass ""

    where newpassword is the password you entered in Step 2.

  6. At the command line, type
  7. cscript.exe :
      \inetpub\adminscripts
        run synciwam.vbs -v

    to configure the IWAM_servername account with the new password.

  8. Open the DCOM Configuration Tool (dcomcnfg.exe). Click the Default Security tab, then click Edit under Default Launch Permissions. Make sure the IWAM user listed has Allow Launch permission.


  9. Restart IIS by typing
  10. iisreset /start

    at the command line.

In addition to the IWAM password becoming out of sync, two other problems can cause the error message in the above question to appear. First, registry ACLs that don't allow access to required registry keys can result in the error message. If you use Sysinternals' Regmon tool, you can see a list of the registry keys that a server has accessed. If, when you launch your Web application, you see any entries showing Access Denied, you've probably found the problem. Second, changing the IWAM_servername account's group membership (e.g., making the IWAM_servername account a member of a restricted group) can cause the error message.

End of Article



Reader Comments
RIGHT ON THE MONEY! You just saved my butt from another long night of figuring out why when I would iissync between servers, suddenly one of the 3 would not serve up pages and only returned a 500 internal server error. I was using a network/domain iwam account and this still worked. The key for me seemed to be the synciwam script which is not mentioned anywhere else for this issue.

Peter November 07, 2003


Worked like a charm!
This is my 2nd week of trouble with DCOM and IIS.
even thaught of reinstalling the OS...
Thank you !

Tudor ilisoi May 03, 2004


my servers was hacked few days ago. Web server has the mentioned records of dcomscm and lm... and only server html pages, in mmc i can't start iis out-of-p poold app, and sql server was attacked thru sa and sqlserveragent account;
which kind of attack i received ? it is possible to determine it ? thanks

Hernán June 28, 2004


When I try step 4, I get
Out of process applications defined:
Count: 1
{3D14228D-FBE1-11d0-995D-00C04FD919C1}
Error: 1AD: ActiveX compenet can't create object

I must have another underlying problem. Things I've noticed are that asp doesn't work and when i try to go into "Administrative Tools" then "Component Services" then "Computers" the app dies and disappears without an error.

srollins August 26, 2004 (Article Rating: )


Wonderful! Solved my problems right away, once I figured out the somewhat cryptic command text (hard to tell where spaces go, references to words not used anywhere else, etc.) included in the description (if you could fix this, this page would be perfect).

Anonymous User November 17, 2004 (Article Rating: )


Everytime I try to launch my AD-Aware to scan for viruses theres an error box that says DCOM serverprocess launcher has terminated unexpectedly and theres a timer that makes my PC restart this has happend several times how do I fix it (I dont know PC language either)

Anonymous User December 28, 2004


Everytime I try to launch my AD-Aware to scan for viruses theres an error box that says DCOM serverprocess launcher has terminated unexpectedly and theres a timer that makes my PC restart this has happend several times how do I fix it (I dont know PC language either)

Anonymous User December 28, 2004


pass 3 shoud be:
cscript.exe c:\inetpub\adminscripts\adsutil.vbs set w3svc/wamuserpass "newpassword"

Anonymous User May 05, 2005 (Article Rating: )


Look at this post in Google groups:
"IIS doesn't display ASP pages, COM+ damaged" if you have problems runing "synciwam.vbs -v"
Link:
http://groups-beta.google.com/group/
microsoft.public.windowsxp.general/browse_thread/
thread/ 5b4b9872a8c5052f/87d89f6c3174d566?
q=IIS+doesn%27t+display+ASP+pages,+COM%2B+damaged&rnum=1&hl=en#87d89f6c3174d566

Anonymous User May 31, 2005 (Article Rating: )


Thanks, solved my problem.

Anonymous User July 13, 2005 (Article Rating: )


 See More Comments  1   2 

You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




Top Viewed ArticlesView all articles
What You Need to Know About Microsoft's x64 Server Product Plans

What do Longhorn Server, Windows Compute Cluster Server, and Windows Vista have in common? The x64 platform. ...

Anti-Virus Vendors Prepare for War with Microsoft ... Again

When Microsoft announced its Windows Live OneCare security and PC health product over five years (as MSN OneCare), Symantec, McAfee, and the other consumer-oriented security vendors reacted with stunning vigor. ...

Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...


IIS and Web Administration Whitepapers Improve SharePoint Performance By Optimizing Network Traffic

Related Events Check out our list of Free Email Newsletters!

IIS and Web Administration eBooks Keeping Your Business Safe from Attack: Monitoring and Managing Your Network Security

Related IIS and Web Administration Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format

Test Drive IT Solutions and Get Free Music Downloads
Solve your toughest IT problems with these free downloads and receive 5 free music downloads!


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home asp.netPRO Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc. Terms of Use | Privacy Statement | Reprints and Licensing