If you want to make sure that you aren’t using any of the restricted APIs before you deploy your solution to a sandbox environment, manually reference your project against: [SharePoint Root]\UserCode\assemblies\Microsoft.SharePoint.dll If your code compiles, then you’re pretty safe! NEVER DEPLOY code with this Microsoft.SharePoint.dll reference, instead reference the Microsoft.SharePoint.dll in [SharePoint Root]\ISAPI folder. From the [...]
Archive for December 13th, 2009
SP2010 Sandbox Development Tip
Posted in Software Development, tagged SharePoint 2010 on December 13, 2009 | 1 Comment »
Debugging SP2010 Sandbox Code – Short and Sweet
Posted in Software Development, tagged SharePoint 2010 on December 13, 2009 | 1 Comment »
If you find yourself in a situation when you need to attach to a process from VS 2010, to debug, and you’re code is running in a “sandbox”. You need to attach to the process SPUserCodeService.exe, not w3wp.exe. SharePoint 2010 hosts sandbox code in a secure service – the user code service – so it [...]
