NHibernate WCF Rest IIS7 schlägt mit Sicherheitsausnahme fehl

Hier ist der Fehler:

    System.TypeInitializationException: The type initializer for 'NHibernate.Cfg.Environment' threw an exception. 

---> 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. 

---> 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& stackMark, Boolean isPermSet)
       at System.Security.CodeAccessPermission.Demand()
       at System.Configuration.BaseConfigurationRecord.CheckPermissionAllowed(String configKey, Boolean requirePermission, Boolean isTrustedWithoutAptca)

Wir haben die Vertrauensstufe auf Voll gesetzt. Beachten Sie auch, dass wir auch eine Website haben, auf der der gleiche Code von Nhibernate ausgeführt wird und die KEINE Probleme aufweist. Nur die WCF REst-Webdienstanwendung hat diesen Fehler?

Irgendwelche Gedanken, warum dies ein Problem ist?

Antworten auf die Frage(1)

Ihre Antwort auf die Frage