I got this error while trying to debug a console application accessing SharePoint Portal Server 2010 in Visual Studio 2010.
Retrieving the COM class factory for component with CLSID {BDEADF26-C265-11D0-BCED-00A0C90AB50F} failed due to the following error: 80040154
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!
THANK YOU, didn't understand why the code didn't work..
ReplyDeleteRight click on the ProjectName >> Properties >> Build tab >> Platform target >> Select
ReplyDelete"Any CPU". (By Default, its x86)
Great!
ReplyDeleteThanks very helpful...
ReplyDeleteIt really works. Thanks
ReplyDeleteThis error also occured in my workflow project if I put additional initialization code into the constructor.
ReplyDeleteThank you Erik (and Bhavyesh)!! I had added code to the workflow constructor...
DeleteThank you (F)
ReplyDeletethanks a lot
ReplyDeleteThanks.It worked great.
ReplyDeleteI was having a hard time debugging my service application
Perfect!! Thanks for the solution!
ReplyDeleteIt works. Thanks!
ReplyDeleteThanks BV
ReplyDeleteThanks B.V.
ReplyDeleteBig Thanks !!
ReplyDeleteThank you very much!
ReplyDelete