Tag Archives: SharePoint 2007

SharePoint 2010 : RemoteStsAdm PowerShell Module

English The STSADM.exe is command-line tool for administration of Office SharePoint Server (SharePoint 2007, SharePoint 2010). It is installed on the same location as SharePoint Products and Technologies location: %COMMONPROGRAMFILES%\Microsoft Shared\Web Server Extensions\12\bin (for SharePoint 2007) or %COMMONPROGRAMFILES%\Microsoft Shared\Web Server Extensions\14\bin (for SharePoint 2010). You must be Farm Administrator to be able to run the… Read More »

Troubleshoot: SPPropertyBag can not deserialize complex type.

  English: In SharePoint, there is SPPropertyBag which can stores arbitrary key-and-value pairs into configuration database. And this is very good location compared with web.config. Moreover we can also create our custom class from SPPersistedObject to persist it state in a permanent store and retrieve it for later usage. (see MSDN refence SPPersistedObject) But don’t… Read More »

Howto: Use lambda expression in SharePoint – Working with SPWeb

English Before you continue reading this post, I hope you have read the basic task to start using lambda expression in SOM here. A.  Find any Event list in site. SPWeb spWeb = SPContext.Current.Web var lists = spWeb.Lists.OfType<SPList>().Where(              l => l.BaseTemplate == SPListTemplateType.Events);   foreach (SPList list in lists) {        Console.WriteLine("{0} {1}", list.BaseTemplate.ToString(),… Read More »