Visual Paradigm Logo
     Build Quality Applications Faster, Better and Cheaper
 
Home | Products | Download | Documentation | Support | Resources | Partners | Quick Tour | Shop | Company |  
 
   Visual Paradigm Discussion Forum
  Login   [ Register ] Email: Password: Log me on automatically I lost my password  
Recent Topics
Advanced Search
NHibernate and trust mode  
Forum Index -> DB Visual ARCHITECT (DB-VA)
Author Message
tdk68304


Joined: 2007/02/27
Messages: 3

Offline

I have just uploaded my application to my hosting provider and got the following error.

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

After investigation it appears the problem lies with NHibernate and that it will only work in "Full Trust" mode. I have registered this with support who report that it's a NHiberate problem and there's nothing they can do until NH fix it.

Has anybody else experienced this problem and gotten around it?

btw: my hosting provider only allow medium trust
 
Jick


Joined: 2005/04/29
Messages: 2880

Offline

Hi tdk68304,

Thank you for your post. I am sorry that "full trust" is necessary for running NHibernate, and also our ORM layer.

Best regards,
Jick

Visual Paradigm International Ltd.
http://www.visual-paradigm.com

Build Quality Applications Faster, Better and Cheaper
 
tdk68304


Joined: 2007/02/27
Messages: 3

Offline

Have you tried this?

http://forum.hibernate.org/viewtopic.php?t=971532
 
Jick


Joined: 2005/04/29
Messages: 2880

Offline

Hello tdk68304,

I notice that you have been requesting for the source to perform the customization yourself. Have you received our message with the source? Did you try and was it success?

Best regards,
Jick

Visual Paradigm International Ltd.
http://www.visual-paradigm.com

Build Quality Applications Faster, Better and Cheaper
 
tdk68304


Joined: 2007/02/27
Messages: 3

Offline

I added the [assembly: System.Security.AllowPartiallyTrustedCallers] in the AssemblyInfo file but this didn't work.

I think NH v1.2 fixes several issues. Will you be upgrading your code base?

Would it be worth seperating your ORM code from the NH code that way users could apply HN updates (providing there's nothing radically different in the NH code) without being dependent on you guys for updates?

 
Jick


Joined: 2005/04/29
Messages: 2880

Offline

Hello tdk68304,

Sorry for keep you waiting. We may upgrade to version 1.2 when its stable release is ready. About separating ORM, we recommend you to generate as POJO and then use pure NHibernate.

Best regards,
Jick

Visual Paradigm International Ltd.
http://www.visual-paradigm.com

Build Quality Applications Faster, Better and Cheaper
 
 
   Forum Index -> DB Visual ARCHITECT (DB-VA)
Go to:   
Powered by JForum 2.1.4 © 2005 - Rafael Steil