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






kuloh said
thanks for the solution
redguy said
Thanks a lot! Saved my day :)
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 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
[摩斯皮开发笔记] Sharepoint 2010 服务器对象模型报一个奇怪的错 « 波波博 said
[…] 出处。 […]
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
jpluimers said
I have no idea, sorry.
–jeroen
haroldpgray said
Thank you … finally discovered your article after several hours of messing with this error… Fixed it first shot…