469,324 Members | 1,425 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Share your developer knowledge by writing an article on Bytes.

IIS 500 Internal Error

9,735 Expert Mod 8TB
I thought it would be nice to share the solution to my IIS headache with the rest of the world.

I have developed a web application that has been distributed. Upon installing my application, some people encountered a "500 Internal Error" and of course blamed my software immediately (and got frustrated when uninstalling/reinstalling my software didn't fix the problem). Finally I was able to take a look at one of these computers and discovered that IIS was not working correctly at all.

I took a look at the Windows Event Log and found an error that had the brilliantly vague message:
Event ID: 36
"Failed to load application '/LM/W3SVC/1/Root'. The error was 'Class not Registered"
I researched this online and sure enough a lot of other people have experienced the same problem. One article said that when this error happens, typically you cannot expand the COM+ Applications tree in the Component Services module.
Sure enough, I found the same problem. Whenever I tried to expand this, an error message would pop up saying:
Catalog Error
"An error occurred while processing the last operation. Error Code 80080005 - Server execution failed".
In the Event Log I would find errors with the following details:

Event ID: 4689
"The runtime environment has detected an inconsistency in its internal state. This indicates a potential instability in the process that could be caused by the custom components running in the COM+ application, the components they make use of, or other factors."
Even though I followed many solutions listed online, I could not fix the problem with the COM+ applications and so my IIS 500 Internal Error persisted. (Many solutions involved permissions, starting and stopping services, or even so far as to have me delete and recreate registration entries)

Eventually, after rebooting, I found a new error in my event log:

Event ID: 4437
"The account that the MS DTC service is running under is invalid. This can happen if the service account information has been changed..."
The Distributed Transaction Coordinator (DTC or MSDTC) service is a component of Microsoft Windows that is responsible for coordinating transactions that span multiple resource managers, such as databases, message queues, and file systems.

I discovered that the DTC service was running under Local Service account. I researched what the correct account should be and discovered that it was supposed to be Network Services.

Apparently the DTC fails under any other account because the service cannot do mutual authentication together with other parties that are involved in the transaction. It must be run under the Network Services Account on Windows XP and Windows Server 2003. You could change this account to validate against a domain controller or use a Windows User Account in the past (Windows 2000 and NT) but you cannot change this account in current versions of Windows (I'm assuming this extends to Vista etc as well).

After changing the DTC to run under the Windows Network Services account my COM+ problem was solved... I was able to reinstall IIS and there were no longer any 500 Internal Errors.

I hope this saves you the headache of researching the problem and trying the thousands of solutions google turns up....when it's just a simple account issue.

Jul 28 '08 #1
2 11687
great post! Saved me from having to do a re install!
Sep 5 '08 #2
9,735 Expert Mod 8TB
great post! Saved me from having to do a re install!
I'm glad it helped!

I've also found that, in some cases, the MSDTC component has been completely missing. In this case it's as simple as reinstalling MSDTC (the account has been set correctly in every case of reinstalling MSDTC)

Sep 5 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Ayende Rahien | last post: by
4 posts views Thread by David Sworder | last post: by
2 posts views Thread by Chien Lau | last post: by
reply views Thread by Jim Heavey | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Gurmeet2796 | last post: by
reply views Thread by mdpf | last post: by
reply views Thread by listenups61195 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.