Sunday, April 27, 2014

SharePoint: Retrieving the COM class factory for component with CLSID .. failed due to the following error: 80040154.

While Trying to use " SPSecurity.RunWithElevatedPrivileges " i get the following error :
"Retrieving the COM class factory for component with CLSID .. failed due to the following error: 80040154."



Solution :
- Right Click your Solution -> Properties -> Build Tab - >  PlatForm Target :  -> make it " Any CPU "






naadydev@gmail.com



No comments: