Rackspace Cloud (MOSSO) doesn’t support Linq2Sql? (ReflectionPermission CAS)
I tried to set up a website with Mosso, the Rackspace cloud. What was really interesting and much more compelling that Azure is that they claim they support .Net 3.5 SP1 and ASP.NET MVC as well as SQL Server 2008. Oh, and they support scheduled cron jobs. Slam dunk, I thought.
I got my account all set up and deployed a plain site on IIS7. The ASP.NET MVC site worked right away. I thought I was home free until I actually did something interesting with .Net 3.5 features where so many do a Code Access Security claim for ReflectionPermission. Bomb!
The text reads:
System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.ReflectionPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
It turns out that Mosso uses a modified medium trust level. In reality, so many of the cool new .Net 3.5 SP1 features (including Linq2Sql) require ReflectionPermission. It’s just one of those basics that a hosting provider needs to support.
I would love to support Rackspace and Mosso. I have other clients at Rackspace, and the product and support are awesome. I can’t really recommend Mosso right now because of this severe limitation for the .Net platform.

Comments
Jonathan Adams said on 6.06.2009 at 4:24 AM
Hi
I am using mosso for a number of sites, if you speak to support they should give you a custom setup for your sites
I personally dont use Linq, but I have a few sites that needed tweaking
Good luck !
Cheers
Jonathan
Jonathan Adams said on 6.17.2009 at 3:26 AM
Hi
I have just had word from the top men that reflection will supported , they are just working/testing any issues
Cheers
Jonathan
Jeff Escamilla said on 8.09.2009 at 12:24 PM
Jeff,
I just wanted to let you know that we have opened up reflection since you last posted your message. The current config line is:
<IPermission class="ReflectionPermission" version="1" Unrestricted="true" />
We'd be more than happy if you would be willing to try your site again to see if we can suit your needs. And as always, if you have any additional questions or concerns please don't hesitate to contact our support. We're always here!
Thank You!
Jeff Escamilla
Windows System Administrator
The Rackspace Cloud
Jon said on 8.19.2009 at 3:28 PM
If you're using iBATIS on Mosso (Rackspace Cloud) you're site is going to go down because of the new medium trust settings.
This blog post explains how to fix it:
programcsharp.com/.../ibatis-nhiberna
It also provides a new copy of the DLLs you can just drop into your source.
Loren Reeves said on 10.10.2009 at 12:31 AM
Jeffrey, you should check out FlyweightObjects.NET as it is an agile framework and supports medium trust out-of-the box with many other cool features.