If you are running your C# code in different thread (e.g.: async EventReceivers or TimerJob), sometimes you may notice, that your SPWeb object is initialized in different language. You can use SPUtility.SetThreadCulture method to set CurrentThread.CurrentUICulture and CurrentThread.CurrentCulture.
When you are creating New Folder in SharePoint list through UI, SharePoint automatically trims white-space from folder names. But, if you attempt to create New Folder programatically, an Exception can occur: This error means: The file name, directory name, or volume label syntax is incorrect. You can simply trim white-space from folder name and the … Read moreSharePoint Create New Folder Programatically – 0x8007007b Exception
Here is a simple powershell script, that creates Lookup column on targetList from sourceList.
In migration process from SharePoint 2007 to SharePoint 2013 content databases are growing enormously on size. I have encountered growth about 70% (And that is really big problem, when you have limited resources – for example the 10GB limit of Microsoft SQL Server 2008 Free Edition). Because of differences between SharePoint 2007 and 2010 table design, the … Read moreSharePoint Migrated Content-Database is too large
SharePoint Exception: The request uses too many resources can occur if too many commands are executed while calling ExecuteQueryAsync function. Resolution is to up default resource boundaries for SP WebApp. This script outputs informations about resource boundaries for your SP WebApps on local server. (Note: These settings are unavailable on SharePoint Online, so you must … Read moreSharePoint Exception: The request uses too many resources
Using SharePoint JSOM api i have encountered very strange exception. Call to clientContext.executeQueryAsync threw sometimes exception System.ServiceModel.ServiceActivationException and responded with status 500. In our case it was problem with available RAM on development server. Actually it was thrown when available memory was under 5%. Simple increase on memory resolved this problem (no iisreset needed).
On my journey from SharePoint 2007 to SharePoint 2013 occured very strange problem. The project which I was migrating was using ASP UpdatePanels in combination with GridViews. The problem was that, if i clicked on some postback control in UpdatePanel, sometimes it made full page reload and sometimes classic postback refresh. I’ve spent several hours … Read moreUpdatePanel postback full page reload