Disable SharePoint Email Notifications

Here’s a nice Powershell script to disable all notification emails in SharePoint 2010: http://vallery.net/2011/01/13/disable-email-notifications-in-sharepoint-2010/ As an added bonus, you can also disable all notifications from Newsgator as well.

Filed under:general

SharePoint 2010 Multi Tenancy

Here’s a good series of articles about a really cool new feature of SharePoint 2010: http://www.harbar.net/articles/sp2010mt1.aspx

Filed under:general

Great C# Command Line Argument Parser

Something that should be built into .Net to begin with: http://jake.ginnivan.net/c-sharp-argument-parser

Filed under:general

Awesome SharePoint Webpart Exception handling

This is epic.  Check out this exception handling base class for SharePoint webparts: http://andreascode.blogspot.com/2007/12/general-exception-handling-in-web-parts.html. No more wrapping try/catch blocks in every single webpart in your project.  I love it!

Filed under:general

SharePoint PeoplePicker in a one-way trust scenario

I was having major issues getting the people picker to work in a one way trust scenario. Here is what helped me get it working: 1. Ensure that the AD trust is working correctly. This can be done in Active Directory Domains and Trust on the Domain Controller. 2. The Farm Account should be a [...]

Filed under:general

SharePoint Page Layouts – extra markup added

Ran into an issue where a page layout that was being deployed as a feature was throwing an error when trying to create a new page: “Only Content controls are allowed directly in a content page that contains Content controls.” I looked at the layout in the solution file and it there was nothing but [...]

Filed under:general

How to: Find SharePoint’s Database server and instance

Here’s an easy way to get the server and instance name of the database server your SharePoint server is using. It’s very useful for constructing connection strings on the fly (hint, hint). public string FindSPSQLServerName() { String sServerName = “”; SPWebService service = SPFarm.Local.Services.GetValue<SPWebService>(); SPDatabaseServiceInstance s = service.DefaultDatabaseInstance; sServerName = s.Server.DisplayName + “\\” + s.Instance; [...]

Filed under:general