-->
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.  [ 4 posts ] 
Author Message
 Post subject: Second Level Caches and Partial Trust
PostPosted: Sat Jun 30, 2007 7:02 pm 
Newbie

Joined: Sat Jun 30, 2007 6:44 pm
Posts: 2
NHibernate 1.2.0.GA

Is there an architectural reason that second level cache assemblies such as SysCache are not marked with:

[assembly: AllowPartiallyTrustedCallersAttribute()]

so that they'd work under medium trust?

Thanks,

David...


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 06, 2007 11:17 am 
Newbie

Joined: Mon May 14, 2007 10:34 am
Posts: 3
I REALLY second this question. I really need caching to work under partial trust.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 06, 2007 1:35 pm 
Hibernate Team
Hibernate Team

Joined: Tue Jun 13, 2006 11:29 pm
Posts: 315
Location: Calgary, Alberta, Canada
I don't see why not, but we would have to investigate further. For now, you can compile your own version of the DLLs. To enable the AllowPartiallyTrustedCallersAttribute, open up the NAnt build file inside the NHibernate.Caches.SysCache folder and add this property to the "init" target:
Code:
<property name="assembly.allow-partially-trusted-callers" value="true" />

Then run nant in the directory where "default.build" is located. To do a release build, do the following:
Code:
nant -D:project.config=release clean build

_________________
Karl Chu


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 07, 2007 2:33 pm 
Newbie

Joined: Mon May 14, 2007 10:34 am
Posts: 3
Thank you very much, karl!! I'll try that.

My ongoing quest to get NHIbernate to run on Mosso continues!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.