Category Archives: SharePoint 2007

Windows SharePoint Services 3.0 and Microsoft Office SharePoint Server 2007

How to flush the SharePoint cache

It is possible to use the CacheManager, an internal class, found in the Microsoft.SharePoint.Publishing assembly to flush the cache as follows -

Posted in .NET Development, SharePoint, SharePoint 2007, SharePoint 2010, SharePoint 2013, Tips and Tricks | Leave a comment

Publishing Page Image disappears when the page is published

I recently created a feature for a publishing site. The deployment included a custom master page, layout and new home page. The feature activated and the home page was editable, allowing me to add a publishing image to the content. … Continue reading

Posted in SharePoint, SharePoint 2007, SharePoint 2010, Tips and Tricks | Leave a comment

Using log4net to log workflows

Log4net is very good at logging events to local log files. However, if you are looking for centralized logging, take great care. If you want – 1. to remove the need of having to add log4net configuration to every web.config. … Continue reading

Posted in .NET Development, SharePoint, SharePoint 2007, SharePoint 2010, SharePoint 2013, Tips and Tricks | Leave a comment

Maintain SPFile version comment and last modified date when moving documents

In overview the strategy is one of replaying history. Each version of the file is reposted to the document library. The comment and last modified date is handled with a combination of SPFile.Checkin() and SPListItem.Update(). Intrigued? Then read on….

Posted in SharePoint, SharePoint 2007, SharePoint 2010 | Tagged , , | Leave a comment

SharePoint dates

You would like to think that SharePoint records the Creation and Modification dates for each item once only. Wrong! Take a document in a document library. The item is seen as both an SPListItem and an SPFile. The created and … Continue reading

Posted in SharePoint, SharePoint 2007, SharePoint 2010 | Tagged , , | Leave a comment