Search code examples
castle-activerecord

How can i run castle activerecord in medium trust hosting?


I have followed the guidelines to generate the proxy and yet i get the following security exception

[SecurityException: That assembly does not allow partially trusted callers.]
Castle.ActiveRecord.Framework.Internal.ActiveRecordModelBuilder..cctor() +0

How can i correct this?


Solution

  • You need a build of ActiveRecord that has the AllowPartiallyTrustedCallers attribute defined, see Run in Medium Trust