Hello everybody.
I'm having problems with mapping simple class that has only two properties mapped. This class located in assembly, which is referenced by main program.
Config file looks like follows (version of NHibernate: 1.0.4):
Code:
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.0" assembly="ObjectProxies" namespace="BindExternalSource">
<class name="BindedFieldDescription" table="BindedFieldDescription">
<id name="BindedFieldId" column="BindedFieldId">
<generator class="native"/>
</id>
<property name="Description" column="Description"/>
<property name="TypeString" column="TypeString"/>
</class>
</hibernate-mapping>
I'm recieving exception when I try to add this class to SessionConfiguration, i.e.
Code:
private Configuration _cfg;
_cfg = new Configuration();
_cfg.Configure();
_cfg.AddClass(typeof(BindedFieldDescription));
Exception message as follows:
Code:
"Parse Error, no assembly associated with Xml key a5:http://schemas.microsoft.com/clr/nsassem/NHibernate/NHibernate%2C%20Version%3D1.0.4.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D154fdcb44c4484fc MappingException"
I googled this exception and found nothing that would belong to NHibernate. Can anybody tell me, where is the problem?
Thanks in advance, anyway. :)