Code:
using(SPSite site = new SPSite("http://sps2010"){
//FileNotFoundException
}
Just for future reference:
- make sure your application is using the .NET 3.5 framework
- ensure it's compiled as 64 bit
As you'll have guessed by now: my app was using the visual studio 2010 default settings of .NET framework 4.0, compiled as x86 ... which obviously conflicts with the Microsoft.SharePoint assemblies (that are built on 3.5 and as 64bit.) :)