-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Medium Trust - NHibernate-2.1.2.GA and Castle
PostPosted: Thu Dec 31, 2009 1:07 pm 
Newbie

Joined: Thu Dec 31, 2009 12:59 pm
Posts: 1
I am trying to run NHibernate-2.1.2.GA under Medium trust with Castle Dynamic Proxy.

It appears that there is an issue with Partially Trusted callers, but I thought that was fixed in this release. Is that the case?

Regardless, I get this exception when running the web site under medium trust:

---------------------------------------------------------------
Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: That assembly does not allow partially trusted callers.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[SecurityException: That assembly does not allow partially trusted callers.]
Castle.DynamicProxy.ModuleScope..ctor(Boolean savePhysicalAssembly, String strongAssemblyName, String strongModulePath, String weakAssemblyName, String weakModulePath) +0
Castle.DynamicProxy.ModuleScope..ctor(Boolean savePhysicalAssembly) +62
Castle.DynamicProxy.ModuleScope..ctor() +31
Castle.DynamicProxy.DefaultProxyBuilder..ctor() +44
Castle.DynamicProxy.ProxyGenerator..ctor() +44
NHibernate.ByteCode.Castle.ProxyFactory..cctor() +79

--------------------------------------------


Top
 Profile  
 
 Post subject: Re: Medium Trust - NHibernate-2.1.2.GA and Castle
PostPosted: Fri Mar 26, 2010 7:40 am 
Newbie

Joined: Fri Mar 26, 2010 7:38 am
Posts: 1
I am having the same issue, did you ever resolve this?

Thanks


Top
 Profile  
 
 Post subject: Re: Medium Trust - NHibernate-2.1.2.GA and Castle
PostPosted: Fri Aug 06, 2010 11:10 am 
Newbie

Joined: Fri Aug 06, 2010 11:05 am
Posts: 1
I'm having problems with this also. I hate loosing sleep over things like this.
Anyone have a fix? Here is my error.
Quote:
Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: That assembly does not allow partially trusted callers.

Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[SecurityException: That assembly does not allow partially trusted callers.]
Castle.DynamicProxy.ModuleScope..ctor(Boolean savePhysicalAssembly, String strongAssemblyName, String strongModulePath, String weakAssemblyName, String weakModulePath) +0
Castle.DynamicProxy.ModuleScope..ctor(Boolean savePhysicalAssembly) +35
Castle.DynamicProxy.ProxyGenerator..ctor() +38
NHibernate.ByteCode.Castle.ProxyFactory..cctor() +49


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.