-->
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.  [ 2 posts ] 
Author Message
 Post subject: SecurityException after changing dev machines
PostPosted: Fri Oct 20, 2006 11:49 am 
Regular
Regular

Joined: Fri Nov 04, 2005 12:37 pm
Posts: 81
Im using Nhibernate 1.2.0.beta1 with asp 2.0 \ visual studio 2005

I am having problems getting a web app to work locally after changing development machines, so i guess its this is caused by some setting not being quite right.


I get this error in the browser when a view a webform that is calling some nhibernate code.

Code:
Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Configuration.ConfigurationPermission, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' failed.


When i then debug the code it appears this line:

Code:
Configuration cfg = new Configuration();


is causing throwing a System.TypeInitializationException and this has a innerException of System.Security.SecurityException, with this explanation text:

Quote:
{"Request for ConfigurationPermission failed while attempting to access configuration section 'nhibernate'. To allow all callers to access the data for this section, set section attribute 'requirePermission' equal 'false' in the configuration file where this section is declared."}



My question is, why did i have to do this on my other machine? Is this just a red herring, do i just need to tweak some security setting elsewhere?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 23, 2006 4:42 am 
Regular
Regular

Joined: Fri Nov 04, 2005 12:37 pm
Posts: 81
Anyone got any ideas?


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