Seem to get it working by following Gerts advice plus clearing all my dlls and recompiling everything. Thanks for the kind help gert.
I now get this error:
Quote:
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: Request for the permission of type 'System.Configuration.ConfigurationPermission, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' failed.
I assume its a side effect of me using this config section, that was for nhibernate 1.0.2?
Code:
<configSections>
<section name="nhibernate" type="System.Configuration.NameValueSectionHandler, System, Version=1.0.1.0,Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
</configSections>
<nhibernate>
<add key="hibernate.connection.provider" value="NHibernate.Connection.DriverConnectionProvider" />
<add key="hibernate.dialect" value="NHibernate.Dialect.MsSql2000Dialect" />
<add key="hibernate.connection.driver_class" value="NHibernate.Driver.SqlClientDriver" />
<add key="hibernate.connection.connection_string"
value="Data Source=TACHYON;Initial Catalog=Alumni;Integrated Security=SSPI" />
<add key="hibernate.connection.isolation" value="ReadCommitted" />
</nhibernate>
<system.web>
<httpModules>
<add name="SessionModule" type="AlumniBridge.Web.SessionModule" />
</httpModules>
</system.web>
How do i adjust this? If this is even what is causing this problem. What is the version of System.Configuration. and is PublicKeyToken?