Click here to Skip to main content
15,891,316 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
[COMException (0x80040154): Retrieving the COM class factory for component with CLSID {2C6D3CA1-2350-101B-AE3A-0040332013F0} failed due to the following error: 80040154.]
   System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck) +0
   System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache) +146
   System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) +298
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +79

I am getting the above error when I deployed my web app in IIS but it works fine when we ran the code directly.

Any quick help would be appreciated.

Best Regards,
Sriman
Posted
Updated 25-Oct-11 20:54pm
v2
Comments
Bernhard Hiller 26-Oct-11 3:32am    
What's wrong with the answer given to you at http://www.codeproject.com/Questions/273638/IIS-and-COM-Class-error-in-asp-net ?

1 solution

Dear Bernhard

I did the same and its woking fine. I accidentally asked the same question twice.
Thanks for your reply.

I solved this before I got reply but anyway thanks
 
Share this answer
 
Comments
koolprasad2003 4-Nov-11 1:04am    
mark it as "SOLVED"

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