The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,860 other subscribers

SharePoint 2010 error: Retrieving the COM class factory for component with CLSID {BDEADF26-C265-11D0-BCED-00A0C90AB50F} failed due to the following error: 800703fa – SharePointWiz

Posted by jpluimers on 2011/04/11

Somehow in a production environment I did get this error too:

System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {BDEADF26-C265-11D0-BCED-00A0C90AB50F} failed due to the following error: 80040154.

These two posts helped me to solve it:

SharePoint 2010 beta error: Retrieving the COM class factory for component with CLSID {BDEADF26-C265-11D0-BCED-00A0C90AB50F} failed due to the following error: 800703fa – SharePointWiz – Site Home – MSDN Blogs.

Rhythmic Coding: Retrieving the COM class factory for component with CLSID {BDEADF26-C265-11D0-BCED-00A0C90AB50F} failed due to the following error: 80040154.

The solution is deceptively simple:

Resolution: It is because you are trying to build a x86 application. Go to project properties and set type to x64 everywhere. Then rebuild and debug. The Error Vanishes!

The SharePoint 2010 dll’s are all x64, and Visual Studio 2010 by default still starts .NET projects in x86 mode for both Release and Debug settings.

–jeroen

8 Responses to “SharePoint 2010 error: Retrieving the COM class factory for component with CLSID {BDEADF26-C265-11D0-BCED-00A0C90AB50F} failed due to the following error: 800703fa – SharePointWiz”

  1. kuloh's avatar

    kuloh said

    thanks for the solution

  2. redguy's avatar

    redguy said

    Thanks a lot! Saved my day :)

  3. Mohan Udupa's avatar

    Mohan Udupa said

    Hi,
    I am accessing Sharepoint dll in Windows services, but am getting the error, even after i changed the CPU type to x64. Please help.

    • jpluimers's avatar

      jpluimers said

      I wish I could help, but I don’t have a SharePoint development environment up and running any more. Please re-ask your question on StackOverflow.com

  4. […] 出处。 […]

  5. Rahul's avatar

    Rahul said

    for me LoadUserProfile is already set to true.Still getting the below error

    Error: Retrieving the COM class factory for component with CLSID {BDEADF26-C265-11D0-BCED-00A0C90AB50F} failed due to the following error: 800703fa.

    Any suggestions

  6. Thank you … finally discovered your article after several hours of messing with this error… Fixed it first shot…

Leave a reply to kuloh Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.