Pex & Moles with SharePoint – A Quick Example

No Picture

I recently demoed moles against the SharePoint 2007 object model. I demoed testing a contrived method that simple returned true if the number of items in a SharePoint list was greater than 20. Code is below…   private…

Read More »

QuickNote: Activating PowerShell ISE on Server 2008 R2

No Picture

To activate the PowerShell Integrated Scripting Environments on Windows Server 2008 R2 you need to add the feature as follows: Start –> Server Manager Features –> Add Feature Select “Windows PowerShell ISE” Click next and install You should…

Read More »

SharePoint 2010: Provisioning a new site using a custom template

No Picture

In SharePoint 2010, stps are no longer used. Instead site templates are saved as wsp files. To create a new site collection using one of these template through the UI, you need to create a site collection through…

Read More »

Quicknote: Extending a VHD

No Picture

Just a note as I’ve had to extend a fixed size VHD. I used http://code.msdn.microsoft.com/vhdtool to expand the actual VHD file. This extending the partition, but did not extend the volume. To complete the process, I needed to…

Read More »

Quicknote: Duplicate Menu Items in Visual Studio 2010

No Picture

Recently I had a weird issue with Visual Studio 2010 where menu items where duplicated. To resolve this I ran the following: devenv.exe /safemode /setup from the command line. Once this ran, I restarted Visual Studio and normal…

Read More »

Pex and Moles

No Picture

Recently started looking at Pex and Moles – this is a really great way to unit test code that calls the SharePoint object model, whilst effectively mocking out the SharePoint object model. http://channel9.msdn.com/posts/matthijs/Pex-Unit-Testing-of-SharePoint-Services-that-Rocks/

Read More »

MOSS 2007 / WSS 3 – Configuring Reporting Services

No Picture

Just blogging a link to this great set of articles.. . http://mosshowto.blogspot.com/2009/01/sharepoint-report-server-2008.html

Read More »

SharePoint: FormField Control

No Picture

Just discovered this control the other day. It renders SharePoint field types (and custom field types) as they would appear on a SharePoint form. All you need to pass to it it the id of a list and…

Read More »

WSPBuilder: Ensure that GAC’d assemblies are always added to wsp

No Picture

GAC’d assemblies are not always included in a wsp build by wspbuilder. See http://wspbuilder.codeplex.com/Thread/View.aspx?ThreadId=22446. To counteract this, add the following post build events ATTRIB -R “$(SolutionDir)[FolderContainingFeatureProject]\GAC\”  /S /D COPY “$(TargetPath)” “$(SolutionDir) [FolderContainingFeatureProject] \GAC\” /Y

Read More »

Using OM to access Lists in another web app / Random Notes

No Picture

I had to access a list on a SharePoint web app from another web app on the same farm using code, but experienced a sql exception. The app pool accounts had least privilege, but the accounts of the…

Read More »