hi,
i have a problem with my application, i am trying to create a session factory with a xml configuration file, this is my xml file:
<?xml version='1.0' encoding='utf-8'?>
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.0">
<!-- an ISessionFactory instance -->
<session-factory>
<!-- properties -->
<property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
<property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property>
<property name="connection.connection_string">Server=dbserver;initial catalog=DistribucionPruebas1;User Id=reportes;Password=reportes</property>
<property name="show_sql">false</property>
<property name="dialect">NHibernate.Dialect.MsSql2000Dialect</property>
<property name="use_outer_join">true</property>
<!-- mapping files -->
<mapping resource="ConceptoPago.hbm.xml" assembly="ModeloDominio" />
<mapping resource="AcuerdoFuenteContratacion.hbm.xml" assembly="ModeloDominio" />
<mapping resource="DescripcionVariablesConceptoPago.hbm.xml" assembly="ModeloDominio" />
</session-factory>
</hibernate-configuration>
an this is the way i try to create my session factory:
factory = new Configuration()
.Configure("C:\\NHPago\\config.cfg.xml")
.BuildSessionFactory();
my application assembly is NHPago and my hbm.xml and persistent classes asembly is ModeloDominio.
but i get this error:
Resource: ConceptoPago.hbm.xml not found,
why?
i apprecite ur help...
thanks...
|