Category: Technology

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

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

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

Request format is unrecognized for URL unexpectedly ending in ‘/[WebMethodName]’

Today I was trying to deploy a web service to good old SharePoint 2007 using STSDEV. While I know the proper way is to publish it to the ISAPI directory and update the approrpiate files in there to make it...

/ May 5, 2011

TaxonyPicker.ascx Error

While troubleshooting errors on my SharePoint 2010 web server today I came across the following error in the event log. Load control template file /_controltemplates/TaxonomyPicker.ascx failed: Could not load type ‘Microsoft.SharePoint.Portal.WebControls.TaxonomyPicker’ from assembly ‘Microsoft.SharePoint.Portal, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c’. So after a...

/ July 27, 2010

SharePoint 2010 Organizational Chart Cached

After setting up the User Profile Service Application in SharePoint 2010 I checked out the new Organizational Browser feature in SharePoint 2010. It worked well, but after updating some of the properties in the profiles directly and checking back I...

/ July 22, 2010