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...
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...
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); } }
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...
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...
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...