Click here to Skip to main content
14,935,838 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
[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,
Updated 25-Oct-11 20:54pm
Bernhard Hiller 26-Oct-11 3:32am
What's wrong with the answer given to you at ?

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
koolprasadd 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