如何在中等信任托管中运行城堡activerecord?

时间:2009-03-19 07:13:59

标签: castle-activerecord

我已按照guidelines生成代理,但我收到以下安全异常

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

我该如何纠正?

1 个答案:

答案 0 :(得分:1)

您需要构建一个定义了AllowPartiallyTrustedCallers属性的ActiveRecord,请参阅Run in Medium Trust