Ever have a problem remembering something small, I do. No matter how many projects I develop in SharePoint I cannot seem to remember how to reference the site collection URL from a user control. So, after digging around for 5 minutes to find the answer I decided to blog it and save my aging memory:
<%$SPUrl:~SiteCollection/ [...]
Archive for December, 2009
Site Collection URL in a User Control
Posted in Software Development, tagged Microsoft SharePoint on December 15, 2009 | Leave a Comment »
SP2010 Sandbox Development Tip
Posted in Software Development, tagged SharePoint 2010 on December 13, 2009 | Leave a Comment »
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 [...]
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 can [...]