Could you post the whole stack trace then? My suspicion is that
NHIbernate doesnt have aptca nor is security transparent.


On Mon, Feb 15, 2010 at 8:51 PM, Mark <[email protected]> wrote:
> What's the best way to check whether APTCA is being applied?
>
> So far I've been testing for it through trial and error as I'm not
> aware of a better way...
>
> If I use a build without the -D:assembly.allow-partially-trusted-
> callers=true argument when I try to use active record in medium trust
> I get a SecurityException at:
>
> IConfigurationSource source = ActiveRecordSectionHandler.Instance;
>
> With the allow-partially-trusted-callers=true it makes it to the line
> in ActiveRecordStarter.cs that I referenced in my earlier post.
>
> I've tried adding [assembly: AllowPartiallyTrustedCallersAttribute] to
> the ActiveRecordModelBuilder.cs file but when I try to compile it, I
> receive the compile error:
>
> CS0579: Duplicate 'AllowPartiallyTrustedCallersAttribute'

-- 
Cheers,
hammett
http://hammett.castleproject.org/

-- 
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