Click here to Skip to main content
15,900,707 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi All,

I have developed an exe using VB.NET 2.0 which coverts Word file to HTML .
It runs good on windows server 2003 but gives an error on windows server 2008.
the error reads

Retrieving the com class factory for component with clsid faliled due to the following error: 800401154
i have got solution to recompile exe with X86 platform target option.

Is there any another solutions / setting to overcome the problem ? so that i do not need to recomplie my EXE

Thanks in Advance.
Posted
Updated 26-Jun-11 23:26pm
v2

A couple of things to look at:

Was the .exe simply copied over to the new machine by the user and they said it did not work?

Did the user install the application using your published installer?

I have to ask because I have seen where users will simply copy the executable over to a new machine not understanding that the dependency files need to be loaded and registered on the new machine. The installer will do this.
 
Share this answer
 
The 0x80040154 error means "Class not registered". So, there's a component that your code is using that isn't installed on the Server 20080 box. Perhaps the correct version of Office isn't installed on that box, if you're using Office Interop?
 
Share this answer
 
Comments
[no name] 27-Jun-11 5:27am    
Good Call Dave. My 5 too.
I found the solution by GOOOOLING.
I just run the following command from run window

C:\Windows\system32\svchost.exe -k DcomLaunch

Really, It WORKS !!!

I don't know the theory behind this..i need to read more.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900