Customizing Web Analytics in SharePoint

From quite some time, I was trying to find ways to customize the SharePoint 2010 Web Analytics to capture the usage of Internal SharePoint solutions. With SharePoint Web Analytics,  Users will be able to find the following three categories of reports out of the box from SP2010 (More Details) but I wanted to find out…


Resolution: Exception while accessing “SPWebService.ContentService” object

Recently I came across a situation in which a customer was trying to access the web applications in the farm but he was getting an exception, “System.NullReferenceException was unhandled  Message=Object reference not set an instance of an object.” while executing “SPWebService.ContentService” from a console application as below. Initially we started looking into what is wrong…


How to remove “Open with (Windows) Explorer” button from Document Library’s Ribbon Menu

Recently I had come across a situation in which customer wanted to remove the “Open with (Windows) Explorer” button from the Document Library’s Ribbon Menu. Following are the steps to remove this button from Ribbon Create an empty SharePoint 2010 Solution, you may give your favorite name to it Add a feature by right clicking…


Developing Applications for SharePoint 2010 – The release of patterns & practices

Overview Developing Applications for SharePoint 2010 contains guidance documentation, detailed examples, and a reusable class library. These resources are designed to help solution developers and architects make the right decisions and follow proven practices when designing and developing applications for SharePoint 2010. The guidance focuses primarily on the building blocks that every developer needs to…


Silverlight Object Model code to access the current user of a SP2010 site

More details on the Silverlight Object Model, you can find here. using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Input; using Microsoft.SharePoint.Client; using Microsoft.SharePoint; namespace SilverlightApplication1 { public partial class MainPage : UserControl { Web oWebsite; ListCollection collList; IEnumerable<List> listInfo; User user; public MainPage() { InitializeComponent(); SilverlightOM(); }…


SharePoint 2010 Resources

SharePoint 2010 Developer Training Course SharePoint 2010 provides the business collaboration platform for developers to rapidly build solutions using familiar tools while leveraging a rich set of out of the box features. Visual Studio 2010 and SharePoint Designer 2010 make developers more productive and Visual Studio Team Foundation Server delivers support for application lifecycle management….


Automatically restart the failed workflow instances

Recently I came across a situation in which customer had email enabled a document library and he had setup a custom workflow to start whenever any new item is added in the library. This setup was working as expected but when end-users send some higher number of emails at the same time (lets say 20-30…


Not to allow Contributor users to access webpart menu of the webparts

One of my customers had a requirement in which Contributor users should not be allowed to access webpart menu of the webparts on the home page. Contributor users will get the webpart menu like below for all the webparts which are present on the page. Our requirement is to remove this menu. There is no…


Webpart code to dynamically load a page viewer webpart to display a requested page

1: using System; 2: using System.Runtime.InteropServices; 3: using System.Web.UI; 4: using System.Web.UI.WebControls; 5: using System.Web.UI.WebControls.WebParts; 6: using System.Xml.Serialization; 7:   8: using Microsoft.SharePoint; 9: using Microsoft.SharePoint.WebControls; 10: using Microsoft.SharePoint.WebPartPages; 11: using System.Xml; 12: using System.ComponentModel; 13:   14: namespace WebPart1 15: { 16: [Guid("8517b24e-202c-4319-8960-303996a3fdb6")] 17: public class WebPart1 : System.Web.UI.WebControls.WebParts.WebPart 18: { 19: public WebPart1()…