SharePoint: Retrieving Credentials from the Secure Store Application using C#

http://social.technet.microsoft.com/wiki/contents/articles/20549.sharepoint-2010-storing-database-connection-settings-in-the-secure-store.aspx

Advertisements

Class not registered exception – SharePoint 2013

Retrieving the COM class factory for component with CLSID {BDEADF26-C265-11D0-BCED-00A0C90AB50F} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

http://saiabhilash.blogspot.co.nz/2013/02/class-not-registered-exception.html

Resolution:
The console application is running under 32 bit processor. Just change it to 64 bit.
To do this:

  • Right click on Console Application
  • Select Properties
  • Under Build Tab, change Platform Target to x64
  • Rerun the application and hopefully the error should go away now !

Solution: Accessing SharePoint Site or WebApp via Code Returns Null

https://sharepointsharpener.wordpress.com/2010/04/15/solution-accessing-sharepoint-site-or-webapp-via-code-returns-null/

SharePoint 2013

net stop “SharePoint Server Search”

net start “SharePoint Server Search”

net stop “SharePoint Administration”

net start “SharePoint Administration”

net stop “SharePoint Timer”

net start “SharePoint Timer”