title: Is trying to develop for Medium Trust a lost cause?
body: <p>I started developing a new MVC app with Entity Framework code-first and Unity for dependency injection. I used EF5 and Unity because I thought they were supposed to work in Medium Trust. However, when I threw the <code>&lt;trust level="Medium" /&gt;</code> tag in my <code>web.config</code>, I started getting Reflection Permission exceptions.</p>
  
  <p>It always seems like whenever I go beyond using built-in things like the <code>System.Data.SqlClient</code> ADO.net stuff I always run into problems in Medium Trust. Auto-Mapper: fail. NHibernate: fail. MySQL: fail. EF5 Code-first: fail. IOC: fail.</p>
  
  <p>Am I just chasing a pipe-dream? Is it possible to achieve a well-architected and testable web application using modern technology that will run in Medium Trust?</p>
  
  <p>In the age of VMs/Virtual Servers/Cloud Computing (and even a few shared hosts that will set your application pools to Full Trust) has anyone found developing for Medium Trust to be worth the effort?</p>