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. MarekCurrently working as SharePoint Developer combining both back-end & front-end development scenarios. Also enthusiastic about Office 365 … Read moreSharePoint SPWeb object Bad Language
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. MarekCurrently working as SharePoint Developer combining both back-end & front-end development scenarios. Also enthusiastic about Office 365 & Azure solutions.
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). MarekCurrently working as … Read moreSystem.ServiceModel.ServiceActivationException SharePoint JSOM
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