Search my blog articles

Saturday, January 17, 2009

'Class not Registered' with IIS 5.1 on XP.

I am currently working in a project in which we are creating WCF services hosted on IIS. I was provided with a laptop with XP pro SP3 on it. I wish it was loaded with Vista Business/Home or windows Server 2008. Well, if all my wishes came true, sigh!

After installing all the necessary software, I wrote my sample WCF to make sure it is working as desired only to see a HTTP 500 error. Internal server error.

To debug it, I tried several trouble shooting steps like

1. did a cmd > iisreset
2. Rebooted my computer
3. Checked Authentication for the application I am running.
4. Checked security permissions for the wwwroot folder as well as application security.
4.5 Reinstalled IIS too.
5. Checked my event logs to see if there is anything reported ..

thats when I noticed this error.

Event Type: Warning
Event Source: W3SVC
Event Category: None
Event ID: 36
Description:The server failed to load application '/LM/W3SVC'.
The error was 'The specified metadata was not found.'.

For additional information specific to this message please visit the Microsoft Online Support site located at: http://www.microsoft.com/contentredirect.asp.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

and sometimes I got this description too


The server failed to load application '/LM/W3SVC/1/ROOT'. The error was 'Class not registered'.

Here are the steps I took to sove the issue after searching the internet for a day and trying differnt things to sove this.

Solution:
1. Open Component Services from your Adminstrative Tools section.
2. Drill down up to 'My computer' > COM+ applications.
3. If you recived an error at this point, saying
Error Code 8004E00F COM + was unable to talk to Microsoft Distributed Transaction Coordinator.
check your MSDTC and see if it is running.
If MSDTC is not running then start it and try to navigate to the COM+ applications again. If it is still broke try the follow support resolution step. I did it.

http://support.microsoft.com/?id=301919

After I did it, in my case, I could not find Distributed transaction service in my Services list to start. So I had to reinstall it.

To reinstall MSDTC, I did this,
a) within you CMD window set your current path to 'C:\windows\System32' and
run MSDTC -install
Once this is completed you should be able to see the Distributed transaction Coordinator service within your services list.
b) Start it.

Now back to solving the main issue.

4. Now from a command window, set your path to 'C:\windows\system32\inetsrv' folder.

5. Execute the command 'rundll32 wamreg.dll, CreateIISPackage' (case sensitive)

6. Execute the command 'regsvr32 asptxn.dll', should receive an success message box.

7. Execute 'iisreset'

5. Restart the PC.

Once restarted, using your IIS admin MMC window, drill down up to the default website node, right click and choose 'Browse'

IIS should be working as expected.

1 comment:

Krishna said...

I wish I could write something about this , but I cannot understand most of the Stuff ( don't know what WCF , MMC (Madras Medical College ? )