Hi Mike,

>From your error it seems you are using ActiveRecord w/ LazyLoad. If so, if
you disable that is the error going away?

Also, please send a full stacktrace and as much information as you can as
the crystal balls are shut down here for the weekend.

-- Roelof.

On Thu, Nov 11, 2010 at 9:32 PM, Mike Cameron
<[email protected]>wrote:

> Before anyone asks, yes, this is a crosspost from SO which can be
> found at
> http://stackoverflow.com/questions/4148394/compiling-castle-activerecord-to-allow-partial-trust
> .
>
> Here is my problem. I have a C# Windows Forms application created
> using the latest stable version of Castle.ActiveRecord (2.1.0 and
> NHibernate. This application needs to be run from a shared file server
> running under medium trust. As I'm sure you're aware Castle doesn't
> play nice under medium trust. Below are the steps I followed.
>
> - Downloaded NHibernate 2.1.2GA and built with `nant D:assembly.allow-
> partially-trusted-callers=true`
> - Downloaded Castle.Core 1.2.0 (https://github.com/castleproject/
> Castle.Core/tree/1.2.0) and built with `nant -D:assembly.allow-
> partially-trusted-callers=true -D:common.testrunner.enabled=false`
> - Moved newly built Castle.Core.dll to Castle.ActiveRecord\lib\net35
> - Built Castle.ActiveRecord with `nant -D:assembly.allow-partially-
> trusted-callers=true -D:common.testrunner.enabled=false`
>
> All compiles and publishes fine however I get this lovely
> SecurityException "Request for the permission of type
> 'System.Data.SqlClient.SqlClientPermission, System.Data,
> Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
> failed.". I'm using Sql Server 2000.
>
> What am I doing wrong?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Castle Project Users" group.
> To post to this group, send email to [email protected]
> .
> To unsubscribe from this group, send email to
> [email protected]<castle-project-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/castle-project-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en.

Reply via email to