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?