I'm having problems with this also. I hate loosing sleep over things like this.
Anyone have a fix? Here is my error.
Quote:
Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.
Exception Details: System.Security.SecurityException: That assembly does not allow partially trusted callers.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[SecurityException: That assembly does not allow partially trusted callers.]
Castle.DynamicProxy.ModuleScope..ctor(Boolean savePhysicalAssembly, String strongAssemblyName, String strongModulePath, String weakAssemblyName, String weakModulePath) +0
Castle.DynamicProxy.ModuleScope..ctor(Boolean savePhysicalAssembly) +35
Castle.DynamicProxy.ProxyGenerator..ctor() +38
NHibernate.ByteCode.Castle.ProxyFactory..cctor() +49