Feeds:
Posts
Comments

Archive for October, 2009

SP2010 Blogging Open

Just in case you missed it, public blogging of SharePoint 2010 is now permitted – let the flood gates open ;)

Read Full Post »

The SP2010 Developer Dashboard allows developers to review object model calls, database queries, web part events – and the timings for these various happenings.
The following code enables the dashboard:
SPPerformanceMonitor SPPerfMon;
SPPerfMon = SPFarm.Local.PerformanceMonitor;
SPPerfMon.DeveloperDashboardLevel = SPPerformanceMonitoringLevel.On;
SPPerfMon.Update();
The following code turns it off again:
SPPerformanceMonitor SPPerfMon;
SPPerfMon = SPFarm.Local.PerformanceMonitor;
SPPerfMon.DeveloperDashboardLevel = SPPerformanceMonitoringLevel.Off;
SPPerfMon.Update();

Read Full Post »

Some important points to remember when developing against SP2010:

Make sure your Visual Studio project is set up for .NET 3.5, not .NET 4.0
Run Visual Studio as an Administrator to load debugging symbols
Make sure your project is set to compile for Any CPU or x64 (not x86 by default), otherwise your code will throw [...]

Read Full Post »

Anyone who has created a new SP2010 Farm using the SharePoint Technologies Configuration Wizard will know that it makes a huge mess of SQL server, littering new databases with GUID extensions.
Those of you who have anal tendencies, like me, can sleep at night with nice clean database names with a script as follows:
Note: I am [...]

Read Full Post »