Hello,
I wanted to check out generics in NHibernate. Therefore I got me the newest svn version (2067).
I am relatively new to NHibernate so I started off with two simple classes. They only have one simple string property.
Code:
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.0">
<class name="NHibernateTest.TV, NHibernateTest">
<id name="Id" type="Int32">
<generator class="native" />
</id>
<property name="Company" type="String"/>
</class>
</hibernate-mapping>
and
Code:
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.0">
<class name="NHibernateTest.Person, NHibernateTest">
<id name="Id" type="Int32">
<generator class="native" />
</id>
<property name="Firstname" type="String" />
</class>
</hibernate-mapping>
but everytimeI start my program it fails telling me
Code:
Der Typeninitialisierer für NHibernate.Cfg.Environment hat eine Ausnahme verursacht. (That means in english: The type initializer for NHibernate.Cfg.Environment has caused an Exception
It happens when calling
Code:
config = new Configuration();
I used the actual Nhibernate version, and it works great. Is there something you have to set up before using the new one?