Category Archives: SharePoint

Performing a SharePoint Search from Code

Ensure the following two namespaces are included: You may need to add these via ‘Add Reference’ on the .NET tab. If you do not see Microsoft.Office.Server or Microsoft.Office.Server.Search, you can add these directly via browsing to the DLL’s that are … Continue reading

Posted in SharePoint | Leave a comment

Excel Services Connecting to SSAS

You have configured your Excel workbook to feed from an SSAS data source. The workbook functions fine on your local machine or when you click the ‘Open in Excel’ link from Excel Services in SharePoint. When you try to recalculate … Continue reading

Posted in Business Intelligence, SharePoint | Leave a comment

Web Part Properties

You can add user definable properties/settings to your SharePoint web parts a variety of ways. One way previously discussed is to use resource files. These are advantageous in that if your web part is used on a variety of pages … Continue reading

Posted in SharePoint | Leave a comment

PowerShell Commands to Install, Update, Uninstall WSP Packages

Nothing too new here, but useful stuff… Copy your WSP file to an appropriate location e.g.) C:\temp Launch PowerShell on the SharePoint server Start -> All Programs -> Microsoft SharePoint 2010 Products -> SharePoint 2010 Management Shell Type Add-SPSolution c:\temp\TheSolution.wsp to add … Continue reading

Posted in SharePoint | Leave a comment

SharePoint Resource Files

Often a project has a list of use configurable settings that need to be changed periodically. By default Visual Studio will embed the resource file content in the dll of a SharePoint project which prevents anyone other than the developer … Continue reading

Posted in SharePoint | 1 Comment

Web Part Project

If you use the Visual Web Part project template that comes with Visual Studio 2010, an empty web part is created which can easily be deployed without issue to SharePoint 2010. The problem with the template is that everything is … Continue reading

Posted in SharePoint | Leave a comment

SharePoint Caching Web Parts

Every so often I have to work on ‘dirty’ servers. It’s not nice, but you have to do it. Someone before you configured the server and an unknown number of techies have tinkered with it. Needless to say some strange … Continue reading

Posted in SharePoint | Leave a comment