Feeds:
Posts
Comments

Archive for December, 2009

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/ [...]

Read Full Post »

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 [...]

Read Full Post »

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 [...]

Read Full Post »