If you have been reading this blog of late, you probably picked up on the fact that I am a bit disappointed by the limitations of sandboxed solutions. I recently updated my original post on the subject to include the following:
<This is mostly wrong>
Issue #4 – Almost No Server Side Rendering – Forget About Using ASP.NET
I thought I would try to work around my ribbon issue with a simple custom WebControl. Turns out that, since the sandbox assembly is installed in ProgramDataMicrosoftSharePointUCCache, the regular worker process (w3wp.exe) that renders pages can’t load the custom UI assembly because it has no knowledge of the UCCache location. The same applies to code behind assemblies for ASPX.
You can create WebParts (sorta/kinda) but they are also extremely crippled. See http://blah.winsmarts.com/2009-12-You_can_deploy_WebParts_as_Sandboxed_solutions__but.aspx
</This is mostly wrong >
Well, I got to thinking… ‘I know that you can create sandbox solutions that include Web Parts, and SharePoint is loading them somehow. Maybe there is a way to get my controls onto the page!’
Turns out there is!!! I give you SPUserCodeWebPart. This little guy can load your assembly and its controls from the user code store.
Description="My WebPart" Title="Howdy y'all"
AssemblyFullName="MySandbox, Version=22.214.171.124, Culture=neutral, PublicKeyToken=9120be3acbd2f74f"
Author: Doug Ware