Subscribe: Chris Keyser's WebLog
Preview: Chris Keyser's WebLog

Chris Keyser's Blog

Random thoughts on SharePoint and .NET topics.

Last Build Date: Wed, 22 Jul 2015 18:43:14 +0000


Managing Document Templates with Content Types and Content Type Hub

Tue, 13 Dec 2011 13:37:00 +0000

Recently I wanted to manage a central set of document templates associated with content types across a number of site collections.  We also wanted to look at using content type syndication with content types that have a document template applied.  Document templates need to either be stored in the site collection where the content type...

BCS – developing a .NET assembly connector presentation and demo

Wed, 19 Oct 2011 12:52:35 +0000

I'm attaching a presentation and code for developing an assembly connector for SharePoint 2010 BCS.  I plan to do a series of blogs about different elements of the solution, but wanted to get this posted for those that attended my talk.  It illustrates a connector that supports streaming, configuration, and secure store.  Unfortunately the code...

SharePoint 2010 claims and Home Realm Discover – passing whr on the url to SharePoint

Sun, 02 Oct 2011 05:21:00 +0000

Home Realm Discovery is a process to select the trusted identity provider in a federated claims scenario where there is more than one provider that can authenticate users.  The default experience is to have the user select which claims provider to use to authenticate.  Often organizations would like to avoid making their users perform this decision. ...

SharePoint Guidance Library Hands On Labs Released to Codeplex

Fri, 04 Feb 2011 10:57:59 +0000

The SharePoint Guidance library introduces several components that can be challenging to ramp up on if you aren't familar with some SharePoint and design concepts like dependency injection.  A great set of HOL's have been released as a step by step walk through using different components of the SharePoint Guidance Library. SharePoint Guidance 2010 Hands...

Handling SharePointServiceLocator failures due to caching

Thu, 20 Jan 2011 14:04:00 +0000

The SharePointServiceLocator in the patterns and practices SharePoint library implements a dependency injection pattern for decoupling service providers from service consumers.  It achieves this by mapping an interface to an implementing class.  The consumer of the implementation only has a dependency on the interface, and the service locator has the responsiblity to construct an instance...

Using a SharePoint Timer Job to deploy settings in a farm for registering event sources

Mon, 20 Dec 2010 11:39:00 +0000

Creating the timer job Sometimes you need to deploy settings to every web front end, or have a piece of code execute on every web front end.  Your choices in SharePoint are to either have an administrator run a script on each front end, or use a timer job.  This blog post describes how to...

Debugging a FeatureInstalled event handler in SharePoint 2010

Mon, 26 Jul 2010 07:37:00 +0000

Updated: An even easier method to do this is to simply launch the debugger by adding a statement to the beginning of the method for Systems.Diagnostics.Debugger.Launch.  Thanks to the suggestion I received on the topic - I misplaced the email, so the input will need to remain anonymous... Updated: Debugging Feature Activated - so I...

PDF version of Developing Applications for SharePoint 2010 available

Fri, 23 Jul 2010 14:36:47 +0000

We posted a PDF version of the patterns and practices guidance release, Developing Applications for SharePoint 2010.  This guidance will really help you understand the architecture and development decisions for SharePoint 2010 custom application development, and has rich code examples as well as a reusable library.  The MSDN release is available at, and the...

Adding a central admin page for managing applications settings

Wed, 14 Jul 2010 06:47:36 +0000

  You can add a page to central administration and add an entry to the central administration menu to manage application settings for the farm or web application.  As I reviewed in my previous post, Using the Applications Setting Manager with Web App Config (Developing Applications for SharePoint 2010), the settings for a farm or...

Using the Applications Setting Manager with Web App Config (Developing Applications for SharePoint 2010)

Mon, 12 Jul 2010 07:47:00 +0000

We got a recent post to our discussion forums about managing settings for a web application from a web part.  I thought this would be a good opportunity to go into some more detail about some of the special handling required for Farm and web application settings, with some example code.  Explanation  Web application and Farm...