Category Archives: sharepoint

Slides from Presentation on SharePoint Social Features 2/18/2010

I gave a presentation to the Colorado SharePoint Users Group on Thursday 2/18/2010.  It was a run through of all the social networking and social content generation features of SharePoint Server 2010.  I then walked through how to use the … Continue reading

Posted in sharepoint, silverlight | Leave a comment

Utility to Get Feature Scope in SPFeatureReceiver

During development, I might change my feature’s scope in the feature.xml definition.  To make sure this never bites me, I always check in my SPFeatureReceiver methods to make sure I am casting the feature’s parent to the right object.  If … Continue reading

Posted in sharepoint | Leave a comment

Sliding Date Range Filter in the Data View Web Part

I had a client request to filter items from a Data View Web Part based on a date column.  The tricky part was that they wanted items to return only if the value in the date column was in the … Continue reading

Posted in sharepoint, xsl | 4 Comments

Hiding “Unhideable” Actions in SharePoint

Often, I will get requests to hide certain actions in SharePoint.  Many items can be hidden using the HideCustomAction (also see here and here) element.  But not every item can be hidden this way. Today’s request was hiding the "Edit … Continue reading

Posted in jquery, sharepoint | Leave a comment

Resolved: Failed to connect to database server or the database name does not exist

In the SharePoint configuration wizard, we were receiving the error: Failed to connect to database server or the database name does not exist. This seems to indicate that the database server name is wrong, or DNS is messed up or … Continue reading

Posted in sharepoint | 1 Comment

Access Denied When Running STSADM.exe

A client of mine had installed MOSS 2007 on Windows Server 2008. When I tried to run any stsadm command on the server, I would receive an Access Denied message with no other details. The answer to my problem was … Continue reading

Posted in sharepoint | Leave a comment

Easily Debug Feature Event Receivers in SharePoint

One of the painful points of SharePoint development is debugging Feature Event Receivers. If you run the feature activation/deactivation from the command line, you can’t attach to the process fast enough. If you run the feature activation from the web, … Continue reading

Posted in sharepoint | 1 Comment

Changing a Page’s Layout Programmatically

We wanted to change a page’s page layout in code. Here is the method I used to do it. You will need to add a reference to Microsoft.SharePoint.dll and Microsoft.SharePoint.Publishing.dll. The only two parameters the method needs are the full … Continue reading

Posted in sharepoint | 3 Comments

Error Tab in Navigation

None of my navigation was showing up in my SharePoint site. In fact, there was just a single tab with the text “Error” The tooltip in the HTML showed an exception with the follwoing text: An error occured while rendering … Continue reading

Posted in sharepoint | 2 Comments

SharePoint: 404 error when trying to view a page layout

I created and provisioned a page layout in my elements.xml file. The problem was that the reference to the master page was incorrect. Instead of a friendly error, or a message indicating that the reference was incorrect, browsing to the … Continue reading

Posted in sharepoint | Leave a comment