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!

image

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.