The famous 'Class not registered'

Typically, you will encounter this error with XP Pro IIS 5.1. As usual, there's way to solve it, however the root cause of this is still unknown :)

Anyway, you will get this in event log:
Event Type: Warning
Event Source: W3SVC
Event Category: None
Event ID: 36
Description:
The server failed to load application '/LM/W3SVC/1/ROOT. The error was 'Class not registered'.


So, what do you do ? This problem is related to Component Services, and when you open Component Services MMC, you will most probably  get  Error Code 8004E00F COM + was unable to talk to Microsoft Distributed Transaction Coordinator. So, fix the COM+ services first by using the following KB.
PRB: Cannot Expand "My Computer" in Component Services MMC Snap-In
http://support.microsoft.com/?id=301919

If the above didn't solve it, and you still receive the 'Class not registered' error message, then you need to recreate the IIS packages in COM+, try

a) Delete IIS related package in Component Services MMC
• IIS In-Process Applications
• IIS Out-of-Process Pooled Applications
• IIS Utilities

b) Open command prompt, navigate to %windir%\system32\inetsrv folder, and enter (case sensitive)
c:\winnt\system32\inetsrv\>rundll32 wamreg.dll, CreateIISPackage
then
c:\winnt\system32\inetsrv\>regsvr32 asptxn.dll

c) Enter IISRESET at command prompt to restart IIS services, then re-open Component Services MMC to verfiy the IIS packages are recreated.



Updated: 11th May 2005:
If you got this while trying to fix the component services.
Error Code = 0x80040206
Non expected internal error
Not enable to register COM+ events classes.


Try regsvr32 %windows%/system32/ole32.dll, then retry the kb to fix the component services.


Published Tuesday, March 22, 2005 11:43 AM by bernard
Filed under: ,

Comments

# re: The famous 'Class not registered'

Fantastic, ran through the above and it worked a treat. Many thanks

Monday, April 04, 2005 7:11 PM by bernard

# re: The famous 'Class not registered'

hard to Google my way until here, mas worked like a charm ;) To fix the MSDTC just type in the comand line "msdtc -resetlog", and then do the above.. regards

Saturday, April 23, 2005 6:48 AM by bernard

# re: The famous 'Class not registered'

Thank You so much! I had tried (over & over) to install IIS from the Add & Remove Windows Components with no luck! So I didn't have to delete anything cause it simply wasn't there! But it's there now! Yippie!

Monday, May 09, 2005 10:15 AM by bernard

# re: The famous 'Class not registered'

I just found this from Googel searches and it was exactly what I needed to do.

1. comand line "msdtc -resetlog"
2. rundll32 wamreg.dll, CreateIISPackage
3. rundll32 regsvr32 asptxn.dll
4. IISRESET

I can run ASP finally!

Thanks a lot.

Wednesday, May 11, 2005 7:26 AM by bernard

# re: The famous 'Class not registered'

Hi,
I have tried the above, but when I come to:
regsvr32 asptxn.dll
I got this message: DllRegisterServer in asptxn.dll fail.
Returncode: 0x8004e00f

I have googled for a day now, and read 10 Microsoft KB's... but still cant get the answer.

Help me please,

Sam Boman
Sweden

Tuesday, May 31, 2005 11:39 PM by bernard

# re: The famous 'Class not registered'

Hi Sam,

Have you try http://support.microsoft.com/?id=301919 ? and rundll32 wamreg.dll, CreateIISPackage before you try regsvr32 asptxn.dll ?

Wednesday, June 01, 2005 8:25 AM by bernard

# re: The famous 'Class not registered'

Like Sam, I am having no joy here attempting to apply the fix from the KB and also from this page. Any other thoughts?

Monday, June 20, 2005 12:54 PM by bernard

# re: The famous 'Class not registered'

Hi Travis,

What do you have in event log now ?

Wednesday, June 22, 2005 1:21 PM by bernard

# re: The famous 'Class not registered'

Thank you very much for sharing this info. This fixed me right up. (got here through Google).

I had trouble running "regsvr32 asptxn.dll", so I dropped back and first followed the steps in the Knowledge Base link you mentioned:
http://support.microsoft.com/?id=301919

rebooted, re-followed your steps, and it works great! Best Regards.

Saturday, July 09, 2005 11:35 PM by bernard

# re: The famous 'Class not registered'

You're welcomed, Bill. Glad it fixed your problem.

Sunday, July 10, 2005 1:05 AM by bernard

# re: The famous 'Class not registered'

Thank you! This article solved a problem that was driving me nuts.

You may find that you don't have to reinstall Component Services to fix the problem where the MMC won't open your computer. This fixed that problem for me:

http://www.jsifaq.com/SUBJ/tip4500/rh4593.htm

Tuesday, August 02, 2005 10:21 AM by bernard

# re: The famous 'Class not registered'

Wednesday, August 03, 2005 6:47 PM by bernard

# re: The famous 'Class not registered'

I can't do the following thind.
c:\winnt\system32\inetsrv\>rundll32 wamreg.dll, CreateIISPackage

Monday, August 15, 2005 11:36 AM by bernard

# re: The famous 'Class not registered'

Is your %windir% - c:\winnt\ or c:\windows or ???
Navigate to the path first, then excute the command. if you do, then any error msgs while you excute the command?

Monday, August 15, 2005 5:21 PM by bernard

# re: The famous 'Class not registered'

c:\winnt\

Tuesday, August 23, 2005 4:44 PM by bernard

# re: The famous 'Class not registered'

What's the error msgs when you run the command? Can you find the rundll32 file ?

Tuesday, August 23, 2005 4:55 PM by bernard

# re: The famous 'Class not registered'

I have the same 'Class not registered' problem, but when I run c:\winnt\system32\inetsrv\>regsvr32 asptxn.dll I get this error:
"DllRegisterServer in asptxn.dll failed
Return code was: 0x800800005"

I realized that in the event viewer(Application) I have this error:

Source: MSDTC
Event ID: 4437
Description:
The account that the MS DTC service is running under is invalid. This can happen if the service account information has been changed using the Services snap-in in Microsoft Management Console (MMC). MS DTC service will continue to start. Please make sure that the MS DTC service account information is updated using the Component Services Explorer.

and also

Source: COM+
Event ID: 4863
Description:
TransactionManager->GetWhereabouts failed. If Distributed Transaction Coordinator is configured to use remote host to coordinate transactions, it is likely that remote host cannot be contacted. You can configure MSDTC to use local coordinator by clicking MSDTC toolbar button in Component Services MMC snap-in. Since further execution is impossible at this time, server process has been terminated.
Server Application ID: {02D4B3F1-FD88-11D1-960D-00805FC79235}
Server Application Instance ID:
{5A2E8651-3C35-4B7D-8AE2-4864339345F7}
Server Application Name: System Application
Error Code = 0x8004d01b : The Transaction Manager is not available.
COM+ Services Internals Information:
File: d:\qxp_slp\com\com1x\src\comsvcs\txprop\dtcinfo.cpp, Line: 164
Comsvcs.dll file version: ENU 2001.12.4414.258 shp


Any ideas??

Saturday, September 10, 2005 1:23 AM by bernard

# re: The famous 'Class not registered'

First is to fix the MSDTC, then com+, then IIS. So, try
How to reinstall Microsoft Distributed Transaction Coordinator on a computer that is running Windows XP
http://support.microsoft.com/?id=891801

Saturday, September 10, 2005 12:27 PM by bernard

# re: The famous 'Class not registered'

I followed your steps 100% and ASP pages are now functional on my windows xp prof sp2 dev box.

one note - I stepped along up to this instruction:

a) Delete IIS related package in Component Services MMC...

but there were no component services entries to be found for iis. after thinking about it a bit, i skipped the step assuming a mistake like skipping any step could realistically mean reinstalling the o.s. i mean hey - anything could happen as a result of skipping a step with something that goes slightly over your head. but i did, and continued on picking up with this step:

b) Open command prompt, navigate to %windir%\system32...

I had no other problems. opened ie, went to http://localhost/index.htm to verify that a know loading page would come up, which it did, then jumped to http://localhost/default.asp and bam - hello world.

many thanks

Friday, October 14, 2005 1:28 PM by bernard

# WSUS + 2k box + HTTP 500 Internal Error

I ahve a 2k box that I configured for WSUS, didn't test IIS before installation but the WSUSAdmin page created the above error. This fix worked first time, thanks!

Friday, October 28, 2005 4:53 PM by bernard

# re: The famous 'Class not registered'

man I have been screwing with this for 1 1/2 years. (it wasn't vital that I run an ASP app on my box but convenient) Finally I don't have to log on somewhere else to debug one of our legacy apps! Weeeeee!

Friday, February 10, 2006 4:43 PM by Tim

# re: The famous 'Class not registered'

The main problem was MSDTC was not running when we install IIS. During IIS installation it will try to create IIS Package and it failed. If you fix MSDTC problem before installing IIS, IIS installation will sucessfully create the COM+ package, and everything will be fine without manually created IIS pacakge.

Friday, April 07, 2006 10:01 PM by Suryanto

# Com+ ASP problems solved, thank you!

For me, problems disappeared after reading/applying all this comments. I recapitulate for the ones who want to see everything in 1 comment:

A) APPLY http://support.microsoft.com/?id=301919

1. Open registry editor, locate HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\COM3, and then delete this key.
2. From the Start menu, point to Settings, click Control Panel, and then click Add/Remove Programs.
3. Click Add/Remove Windows Components.
4. Proceed through the wizard, and accept all of the defaults.
5. Restart the computer.

B) Start the service Distributed Transaction coordinator

C) Apply the fixes of this webpage

CD %windows%\system32\inetsrv
msdtc -resetlog
rundll32 wamreg.dll, CreateIISPackage
regsvr32 asptxn.dll
IISRESET

Good luck!

Thursday, May 04, 2006 9:30 AM by wouter ramon

# re: The famous 'Class not registered'

If you still experience this problem (like I did) you may try to restart and/or unistnall/intall Distributed Transaction Coordinator.
The commands to install/unistall dtc are:
msdtc.exe -install
msdtc.exe -uninstall

You may also check http://support.microsoft.com/?id=891801

Actually I don't know what I did to fix the problem but now I am able to see asp pages and COM+ Applications in Component Services.

HTH

Wednesday, May 10, 2006 4:16 AM by Tomek

# re: The famous 'Class not registered'

Thank you, you're a star.

Thursday, May 11, 2006 3:14 PM by Chris

# re: The famous 'Class not registered'

thank you so much!

at first i can't do step b.
than i found additional instructions from
http://www.brooksyounce.com/XpAspFix.htm

and i typed
"msdtc -install",
before step B

and then everything works fine!

Sunday, May 14, 2006 5:32 PM by xinrong

# re: The famous 'Class not registered'

your answer did it A+

Wednesday, May 17, 2006 2:41 PM by john

# re: The famous 'Class not registered'

I am having problems when I run the following steps too:

msdtc -resetlog
rundll32 wamreg.dll, CreateIISPackage
regsvr32 asptxn.dll

The error that I faced is warmreg.dll module cannot be found.

May I know if there is anything that has gone wrong?

TIA!

Sunday, June 11, 2006 9:11 PM by Jan

# re: The famous 'Class not registered'

Are typing the command at this path ?
%windir%\system32\inetsrv

Sunday, June 11, 2006 9:28 PM by qbernard

# re: The famous 'Class not registered'

This problem drove me crazy for about 5 hours. I had problems with everything, strarting from the "class not registered", then going through the "regsvr32 asptxn.dll" thing.

Thanks a lot for sharing.

Best regards from Argentina!

Tuesday, June 13, 2006 4:50 PM by Adrian

# re: The famous 'Class not registered'

Genius!! Thanks

Thursday, June 15, 2006 11:32 AM by absco

# re: The famous 'Class not registered'

I was also getting this error:

Event Type: Warning
Event Source: W3SVC
Event Category: None
Event ID: 36
Description:
The server failed to load application '/LM/W3SVC/1/ROOT. The error was 'Class not registered'.

Using the information in one of the earlier posts by Bernard fixed everything for me (pasted in below). Without step 1, the rest of the steps would not succeed.

Although there is a typo in step 3. It should be just:

3. regsvr32 asptxn.dll

># re: The famous 'Class not registered'
>I just found this from Googel searches and it >was exactly what I needed to do.
>
>1. comand line "msdtc -resetlog"
>2. rundll32 wamreg.dll, CreateIISPackage
>3. rundll32 regsvr32 asptxn.dll
>4. IISRESET
>
>I can run ASP finally!
>
>Thanks a lot.
>Wednesday, May 11, 2005 7:26 AM by bernard

Thursday, June 15, 2006 6:16 PM by Andrew

# re: The famous 'Class not registered'

Fantastic fix to a really irritating (and time consuming) problem!

Thanks

Friday, June 16, 2006 11:19 AM by Rob

# re: The famous 'Class not registered'

Just follow these steps

Check in the windows services if Dstributed Transaction Cordinator is insatllled and in "Started" state if not run
1. comand line msdtc -install

Then

2. rundll32 wamreg.dll, CreateIISPackage
3. rundll32 regsvr32 asptxn.dll
4. IISRESET


It should start working

Monday, June 19, 2006 8:18 PM by Channa

# re: The famous 'Class not registered'

I have DLLRegisterServer 0x80040154
error while
rundll32 regsvr32 asptxn.dll
What should I do?

Wednesday, July 05, 2006 2:36 AM by Saddam

# re: The famous 'Class not registered'

Saddam, have you try the first two commands?
1. comand line "msdtc -resetlog"
2. rundll32 wamreg.dll, CreateIISPackage

and during 'regsvr32 asptxn.dll' do you see any addtional event log error?

Thursday, July 06, 2006 10:47 PM by qbernard

# re: The famous 'Class not registered'

I had faced all the problems listed in this thread.

I finally got it working. Thanks Bernard.
I had to do what you said above:

"First fix the MSDTC, then com+, then IIS."

When I first started with my ASP pages not working, I started searching for help on IIS, and trying to fix that.  Re-installed many times.  No luck.  
More searches lead me to Com+ issues under Component Services. I Couldn't open any folder under My Computer in Component Services.

Then I found this thread, and got stuck at
>rundll32 regsvr32 asptxn.dll
like many people here. I too got that DLLRegisterServer error

But after re-installing MSDTC, everything worked.

So like Bernad, I suggest:
A) APPLY http://support.microsoft.com/?id=301919

B) You may also check http://support.microsoft.com/?id=891801

C)
CD %windows%\system32\inetsrv
msdtc -resetlog
rundll32 wamreg.dll, CreateIISPackage
regsvr32 asptxn.dll
IISRESET

Good Luck

Saturday, July 15, 2006 1:27 PM by Manoj

# re: The famous 'Class not registered'

Hi,
I am having "class not registered" issue after trying all the steps mentioned above. I will explain my situation in detail below:
1. I installed IIS 5.1 and the front page extensions.
2. I installed VS.NET 2003 and tried to open a  new project. I got the error "can not open the application because no web server was detected at http://localhost/webapplication1"
3. I tried to perform the steps mentioned in your blog exactly as mentioned in the following order.

3.1) I was able to acess the My computer in Component Services MMC Snap-In. Hence i did NOT perform the step to fix the COM+ services first by using the microsoft kb http://support.microsoft.com/?id=301919

3.2)  I directly went to "Delete IIS related package in Component Services MMC" step. Strangely, i found that there was only
IIS Utilities listed in the MMC under MyComputer-->COM+ applications.
I went ahead and deleted each invidual components inside the IIS utilities package i had. I was not able to able to figure out how to delete the IISUtilities directory itself; which wasw empty at this point as i had deleted all of its contents.

3.3)Then i followed the steps b and c as mentioned.
c:\winnt\system32\inetsrv\>rundll32 wamreg.dll, CreateIISPackage -- This step completed sucessfully without any error

c:\winnt\system32\inetsrv\>regsvr32 asptxn.dll - This step completed sucessfully without any error and also recived windows dialog box indicating sucess.

Enter IISRESET at command prompt -- This is where i get the error message again "class not registered".

Please help me ..i had been trying to solve this problem from a long time..Thanks

Sunday, July 23, 2006 1:38 PM by Ravi

# re: The famous 'Class not registered'

Ravi,

First, do you have any other event log ? like MSDTC? if your com+ catalog is fine, then you can skip it. but i would still prefer you follow the steps, especially on the add/remove program wizard, just click 'next' all the way, it will clean up com+ catalog... the reapply all other steps.

Sunday, July 23, 2006 11:16 PM by qbernard

# re: The famous 'Class not registered'

Hi Bernard,
Thank you very much for the help. Actually the issue was resolved using a different approach. Seems like McAfee was the main culprit. I will explain the problem in detail so that someone else will not waste time like i did:
1. I installed IIS when McAfee was turned ON.
2. I encountered the class not registered error.
3. I uninstalled/turned OFF my McAfee security center.
4. I uninstalled my IIS using the windows components add/remove option in control panel.
5. I installed IIS again and Voila! everything is perfect. I did not have to go through any of these steps listed above.

Please note that i tried installing IIS several times after i encountered error. But the most important thing i realised is that "IIS did not install itself properly with McAfee turned ON. So everytime i tried to reinstall windows perhaps realised that IIS was already installed and did nothing."
ONLY AFTER I TURNED OFF McAFEE, UNINSTALLED IIS AND THEN REINSTALLED IIS, It was sucessful!

Monday, July 24, 2006 11:53 AM by Ravi

# re: The famous 'Class not registered'

Cool. This is the first time I see McAfee name with this error msgs. I know McAfee does break or prevent IIS to function probably. but causing this error? mm... what McAfee product did you install?

Monday, July 24, 2006 8:02 PM by qbernard

# re: The famous 'Class not registered'

I just purchased an HP Pavillion dv8000 laptop & ran into this exact problem - AFTER I installed Visual Studio 2005 Express products.  I'll never know if Component Services was screwed up fresh from the factory or occured after downloading the Microsoft software.

Thursday, July 27, 2006 4:02 PM by David Laub

# re: The famous 'Class not registered'

Yeah,it works.
It spent me one week to solve the problem.
If I didn't happen to see your post , my
nightmare would reside always. Thank you!!!!

Saturday, July 29, 2006 11:53 AM by yilaylay

# re: The famous 'Class not registered'

My HP Pavilion dv8000 also has this problem.  I reset it to factory defaults with their recovery tool, tested Com+ and it failed.  This means that  COM+ was broken as it came from the factory.

HP support didn't help and stopped receiving my requests for help.

Anyone else having problems with their Pavilion dv8000?  Maybe there's a problem with this computer?

Sunday, August 13, 2006 6:18 PM by bswain

# re: The famous 'Class not registered'

Wow! HP stop helping you? Mmm... anyway have you try to fix the com+ error base on the suggestion? what do you got in event log ?

Wednesday, August 16, 2006 12:55 AM by qbernard

# re: The famous 'Class not registered'

Yep, same problem with an hpdz8000. What a pain. I purposely got XP Pro for ASP.NET development. My desktop with Media Edition works fine.

Sunday, September 03, 2006 8:27 PM by frankienapoli

# re: The famous 'Class not registered'

Sorry for the confusing previous post. I have an HP Pavillion dv8000z, the AMD model. I popped for XP Pro to do contract work at a variety of places and wanted the connectivity features. I have Media Edition on a desktop at home. Both OS's can run IIS. The dv8000z has the exact problem. Don't know if it's XP Pro, the box, or what. I haven't tried to fix with this method yet but will when I can risk the machine blowing up. Thanks all. Frank

Wednesday, September 06, 2006 6:35 PM by frankienapoli

# re: The famous 'Class not registered'

I don't know what is loaded with dv8000z. is it XP Pro, are you having the 'class not registered' error msgs or ?  have you install IIS ?

Wednesday, September 06, 2006 9:45 PM by qbernard

# re: The famous 'Class not registered'

Thansk for the great tip. I ran the cited KB and dll commands in the top post and it FINALLY works after 2 days of searching for the answer.

Friday, September 08, 2006 7:33 AM by Mike K

# Unwilling ASP'

My problem is that my ASP pages just will not execute on XP Pro...no error messages or anything, they just freeze up and do nothing. It's the most frustrating thing I have ever encountered!!! I disabled McAfee, uninstalled and reinstalled, ran all the tips above (no errors), set security permissions, did the works. Pure HTML works fine, but when I load an ASP page the browser loads forever...a permanent FREEZE with no error messages. Is there somebody who can shed some light on this behaviour? Please... Ray

Tuesday, September 12, 2006 4:04 PM by Ray

# re: The famous 'Class not registered'

I had a slightly different problem. My ASP just would not execute...no error messages to lead me on, the page just loaded forever. I tried all the fixes noted above, but it still did not work. I even reinstalled with McAfee disabled and did all the fixes again. By chance I picked up a tip through another forum that my GLOBAL.ASA file could be the problem, so I renamed it and WHAM, the ASP ran like a dream! However, that was not the end of my misery because no database access was possible without GLOBAL.ASA, so I continued my research and discovered that the Function FrontPage_FileExists(fspath) was the guilty party. I modified it as follows: Function FrontPage_FileExists(fspath) On Error Resume Next FrontPage_FileExists = False set fs = CreateObject("Scripting.FileSystemObject") 'begin of replacement part if (fs.FileExists(fspath)) then FrontPage_FileExists = True end if 'end of replacement part 'begin of deleted part ' Err.Clear ' set istream = fs.OpenTextFile(fspath) ' if Err.Number = 0 then ' FrontPage_FileExists = True ' istream.Close ' end if ' set istream = Nothing 'end of deleted part set fs = Nothing End Function Again, that was not the complete solution as I got an ODBC error as follows: Microsoft OLE DB Provider for ODBC Drivers error '80004005' [Microsoft][ODBC Driver Manager]Data source name not found and no default driver specified. The solution to that is too long to describe here, but you can find it at: http://support.microsoft.com/kb/306345/EN-US/ After doing what they told me I restarted the IIS using IISRESET and I was SOLVED!! I hope this helps somebody as it is invaluable information that can take days to find...

Wednesday, September 13, 2006 6:19 AM by Ray

# re: The famous 'Class not registered'

Thanks Ray for sharing your solution.

Friday, September 15, 2006 1:12 AM by qbernard

# re: The famous 'Class not registered'

Success!!! Here is what I found on my HP dv8000z. It looks like the MSDTC service was never installed. All I did was: uninstall IIS. run msdtc.exe -install run msdtc.exe -resetlog start msdtc service install iis run aspnet_regiis -i In IE I type /localhost and get the welcome page. I start VS, create a C# Web App that defaults to /localhost/WebApplication1 and I go back to IE /localhost/WebApplication1/WebForm1.aspx and it works. Thanks all for all the info. Because this is showing up on the HP boxes, I suspect they just neglected to install MSDTC service when they set the boxes up. Anyway, I hope that helps someone else. I was anticipating a long afternoon but didn't have to edit the registry at all and it took about 15 mins. Good luck all. Frank

Sunday, September 17, 2006 12:34 PM by Frank M. Allen (aka frankienapoli)

# re: The famous 'Class not registered'

Yeah, glad you fixed it.

Sunday, September 17, 2006 8:33 PM by qbernard

# re: The famous 'Class not registered'

I was getting all of the above. However my event log also showed that MSDTC was not starting up. My fix script was as follows: :: repair MSDTC cd c:\windows\system32\ msdtc -uninstall msdtc -install msdtc -resetlog :: repair IIS Package cd c:\windows\system32\inetsrv rundll32 wamreg.dll, CreateIISPackage regsvr32 asptxn.dll IISRESET Ran in under a minute and worked like a charm. This was my first time using ASP on this XPSP2 box, so it may never have been working. The MSDTC errors go way back in my log. I cannot provide any insight as to the all important when did it started. Root cause(s) remain unknown...

Wednesday, October 18, 2006 10:40 AM by Mark

# re: The famous 'Class not registered'

So you got the same error again?

Wednesday, October 18, 2006 7:46 PM by qbernard

# re: The famous 'Class not registered'

I thought I should add to Ravi's problem with McAfee Virus scan.. This problems also occurs when Norton AntiVirus Auto Protect is enabled. So, when installing IIS remember to switch your virus scanner OFF!

Friday, October 20, 2006 7:21 PM by Steve

# re: The famous 'Class not registered'

Awesome! I don't normally leave comments, but this just saved me too much time not to voice my appreciation. Well Done.

Monday, October 23, 2006 9:11 PM by Chris

# www.consultmelive.com » To fix http 500 error on HP Pavillion 5000 after Dot Net and IIS Install.

# error code 8004e00f

Pingback from  error code 8004e00f

Tuesday, April 08, 2008 7:23 PM by error code 8004e00f

# class not registered

Pingback from  class not registered

Saturday, May 10, 2008 2:17 PM by class not registered