Getting SharePoint Event IDs “90hv” and “nask” Despite Disposing Just Fine

Most SharePoint developers will have probably have seen these SharePoint event IDs at some point or other, especially if you’ve ever worked with server-side code before. How to properly manage server-side SharePoint objects is pretty well documented already, but I’ve found it’s still easy to reproduce these “errors” even with good clean-up logic in code. I’ve seen…

0

Building Multi-Level CAML Queries from GET Parameters in the URL

I had an interesting challenge just recently which was to perform multi-level queries on any given list dynamically using GET parameters to build the query. In other words, from a GET request, we should be able to search a list with multiple groups of ANDs & ORs just by changing the URL. You can of…

0

Calling SQL Server from SharePoint Web-Part with Impersonation

A question that comes up with fairly persistent regularity is “how come my web-part can’t connect to my SQL database/web-service/whatever with integrated credentials?”. It’s a question that has some rationale and some history behind it; the rationale being “I logged into the page as a user that should have permissions to connect to the service,…

4

The “High-Availability SharePoint” Bible

A big interest of mine is designing SharePoint farms to be highly-available through good architecture & solid design; something I’ve posted about quite a bit on this blog over time. This article summarises the high-availability strategies available for SharePoint and then touches on other common areas that cause SharePoint farms to fail, as a sort…

0

Setting Up an Awesome SharePoint 2013 Dev Box on Windows Server 2012 R2

Update: Modified PowerShell script to install missing Windows Identity Foundation feature and added instructions for SP1 slipstream install. SharePoint 2013 service-pack 1 is officially out bringing with it support for Windows Server 2012 R2. This is most excellent news for SPDevs because finally SharePoint can be used on generation-2 virtual machines which for developer boxes…

10

Managing Custom Solutions for Disaster Recovery SharePoint Farms

Having x2 SharePoint farms that need to be synchronised perfectly does raise the question about how to maintain both farms updated with any custom solutions that may need to be applied to the farm/application. This guide is about how to maintain custom solutions across two or more farms and what can happen if it’s not…

6

Creating a Clean Visual Studio Solution from a SharePoint 2013 Site Template

Quite often for SPDevs it can be useful to reverse-engineer a SharePoint site into code if you need to build a site definition for sites that don’t exist yet. Usually this would mean starting a new project & added each project item by hand but in this example we’re going to start a new VS…

14