Hi All,
I am new to NHibernate. I use hibernate for my other Java Project. I am facing with this weird exception when I am trying to run my project.
This is my hibernate.cfg.xml:
Code:
<?xml version="1.0" encoding="utf-8"?>
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
<session-factory>
<property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
<property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property>
<property name="connection.connection_string">Server=(local);database=careerMask;Integrated Security=SSPI</property>
<property name="dialect">NHibernate.Dialect.MsSql2005Dialect</property>
<property name="show_sql">true</property>
<property name="proxyfactory.factory_class">NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle</property>
</session-factory>
</hibernate-configuration>
I have tried placing this code in web.config file, but does not make any difference. This Error message is thrown when trying to compile one of the mapping files.
This is how I am trying to build by session'
Code:
Configuration config = new Configuration();
sessionFactory = config.BuildSessionFactory();
Any help would be wonderful
Thanks,
Rishi