Introducing the SharePoint Service Application Starter Kit

After much hard work and testing, I’m happy to finally have released the SharePoint Service Application Starter Kit.

What is it?

A Visual Studio Extension that installs SharePoint project templates for creating custom SharePoint Service Applications of different flavors.

How to Get It

The installers are available from the Visual Studio Gallery, and directly from within Visual Studio via the Extension Manager.

There are two versions of the Extension:

Additional documentation can be found on the CodePlex site for this project.

Why did I write it?

Writing custom service applications is probably one of the most complicated development tasks you can do as a SharePoint developer. Lots of moving parts, and unfortunately, not a whole lot of examples. There are also quite a few pitfalls you can run into – from inefficiently calling methods you don’t need to, to leaving a bunch of cruft behind in the configuration database, to worse.

Still, when done correctly, service applications can offer a lot of benefits, such as backup and restore, auto-provisioning of databases, and ability to scale across multiple servers.

Since I’ve been busy creating service applications over the last two years (like Blue Rooster’s Sepulveda social framework), I’ve learned a lot about good habits when developing these, and wanted to package that up as a starting point for others. Also, I’ve wasted a lot of time renaming classes and generating new Guids when copying an existing project to start a new service application :).

What do you get with it?

After installing the extension in Visual Studio, you will see several templates under the SharePoint category:

templates

  1. SharePoint WCF Service Application
    A service application that communicates via WCF services between the Web Front Ends and the Application Servers.
  2. SharePoint WCF Service Application w/ Custom Database
    Everything in #1, with support for provisioning a custom SQL Server database.
  3. SharePoint WCF/REST Service Application
    Everything in #1, with REST services deployed to _vti_bin, supporting AJAX access to the service application.
  4. SharePoint WCF/REST Service Application w/ Custom Database
    Everything in #2, with REST services deployed to _vti_bin, supporting AJAX access to the service application.

6 comments on “Introducing the SharePoint Service Application Starter Kit

  1. Fatal error: Uncaught Error: Call to a member function id() on array in C:\HostingSpaces\lifeonpl\lifeonplanetgroove.com\wwwroot\wp-content\plugins\crayon-syntax-highlighter\crayon_formatter.class.php:36 Stack trace: #0 C:\HostingSpaces\lifeonpl\lifeonplanetgroove.com\wwwroot\wp-content\plugins\crayon-syntax-highlighter\crayon_formatter.class.php(538): CrayonFormatter::format_code('', Array, Object(CrayonHighlighter)) #1 [internal function]: CrayonFormatter::delim_to_internal(Array) #2 C:\HostingSpaces\lifeonpl\lifeonplanetgroove.com\wwwroot\wp-content\plugins\crayon-syntax-highlighter\crayon_formatter.class.php(516): preg_replace_callback('#()#msi', 'CrayonFormatter...', 'myServiceApplic...') #3 C:\HostingSpaces\lifeonpl\lifeonplanetgroove.com\wwwroot\wp-content\plugins\crayon-syntax-highlighter\crayon_highlighter.class.php(166): CrayonFormatter::format_mixed_code('myServiceApplic...', Object(CrayonLang), Object(CrayonHighlighter)) #4 C:\HostingSpaces\lifeonpl\lifeonplanetgroove.com\wwwroot\wp-content\plugins\crayon-synt in C:\HostingSpaces\lifeonpl\lifeonplanetgroove.com\wwwroot\wp-content\plugins\crayon-syntax-highlighter\crayon_formatter.class.php on line 36