Hibernate version:1.2.1
VS.NET 2005 ASP.NET
Hello I am a newbie on NHibernate.
I want to reproduce the simple example in the documentation but I get an error: TypeInitialization exception and err msg:
Could not load file or assembly 'Website3' or one of its dependencies. The system cannot find the file specified
The exception is thrown on this line
ISession session = NHibernateHelper.GetCurrentSession();
My web.config has the following section and I have set mapping assembly to the name of my project: Website3
Code:
<session-factory>
<property name="dialect">NHibernate.Dialect.MsSql2000Dialect</property>
<property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
<property name="connection.connection_string">Server=(local);initial catalog=pubs;Integrated Security=SSPI</property>
<mapping assembly="Website3"/>
</session-factory>
I am doing something fundamentally wrong here but what?