title: NHibernate WCF Rest IIS7 Fails with Security Exception
body: <p>Here is the error:</p>
  
  <pre><code>    System.TypeInitializationException: The type initializer for 'NHibernate.Cfg.Environment' threw an exception. 
  
  ---&gt; System.Security.SecurityException: Request for ConfigurationPermission failed while attempting to access configuration section 'hibernate-configuration'. 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. 
  
  ---&gt; System.Security.SecurityException: Request for the permission of type 'System.Configuration.ConfigurationPermission, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' failed.
         at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark&amp; stackMark, Boolean isPermSet)
         at System.Security.CodeAccessPermission.Demand()
         at System.Configuration.BaseConfigurationRecord.CheckPermissionAllowed(String configKey, Boolean requirePermission, Boolean isTrustedWithoutAptca)
  </code></pre>
  
  <p>We have the trust level set to Full.  Note also that we also have a web site that runs the SAME Nhibernate code and has NO issues.  Only the WCF REst Web Service Application has this error?</p>
  
  <p>Any Thoughts as to WHY this is a problem?</p>