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...
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...
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...
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"); }
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); } }
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...
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...
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...
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=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c’. So after a...
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...