We are having problems with the following code:
BSPSite site = new BSPSite(); BSPWeb web = site.SetRootWeb();
The error is : Co
1) Go to C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies
2 ) Find Microsoft.Moles.VsHost.x86.exe.config
3) Open and alter by adding next lines under runtime