All posts by Chris Buchanan

SQL Reporting Services Subscriptions Not Firing Event Receivers

I recently build an event receiver for a document library that takes files added to a document library and republishes them to a different web application based on some custom rules.  On a side note I used an event receiver...

/ September 26, 2012

Microsoft Mouse Without Borders

In my role as a software developer and system administrator I’ve elected to haul around a laptop with me, specifically the Dell M6500 Mobile Workstation, so I have the versatility to work from where ever I happen to be when...

/ August 3, 2012

Word Automation Services – The file could not be converted – Error 65543

​So in my recent escapades with SharePoint 2010 I’ve been trying to play with the new Word Automation Services.  Microsoft was so kind to release a demo feature receiver that shows how you can quite easily use the new service to convert...

/ June 6, 2012

Configure Managed Accounts – Object reference not set to an instance of an object

So while I was trying to configure a managed service account in SharePoint 2010 today I came across the error “object reference not set to an instance of an object” when I tried accessing the Configure Managed Accounts page (/_admin/ManagedAccounts.aspx).  After...

/ March 14, 2012

Getting a SPUser object in SharePoint

Nothing magic to see here, just how to get an SPUser object from SharePoint. using (SPWeb web = new SPSite(SPContext.Current.Web.Url).RootWeb) { SPUser user = web.EnsureUser("loginName"); }

/ January 20, 2012

Programatically Disabling Content Approval on a Page Library

private void DisableContentApproval(SPWeb web) { SPList pagesLibrary = web.GetList("Pages"); if (pagesLibrary != null) { pagesLibrary.EnableModeration = false; pagesLibrary.Update(); } foreach (SPWeb subWeb in web.Webs) { DisableContentApproval(subWeb); } }

/ November 30, 2011

Office 365 Blog – Word Cannot Register Your Account

When using the “Launch Blog Program to Post” feature in my Office 365 SharePoint Blog I encountered the following error in Microsoft Word. Word cannot register your account. To resolve this I needed to do things. Download the Desktop Extensions...

/ September 30, 2011

Fixing the Windows 7 Slow Logon – Waiting for the User Profile Service

Since moving to Windows 7 my work laptop has constantly been plagued with a slow logon when I’m not physically connected to my work network. The entire point of having a laptop is so that I don’t need to be...

/ September 30, 2011

Programatically deleting all the items in a list

Often when you’re developing or testing out a new feature you need a way to quickly purge all items from a list.  If you’re only working with a handfull of list items, iterating through the list one item at a...

/ September 23, 2011

Creating Sites in SharePoint 2010 Using PowerShell

Creating new SharePoint sites and site collections using PowerShell is extremely easy in SharePoint 2010. Just follow these few quick steps: Launch the SharePoint 2010 Management Shell Get a listing of all the site templates Get-SPWebTemplate Select the template you...

/ September 1, 2011