I installed and tried running the JUST released beta 3, and ran into an issue. My configuration worked under beta 2, but now there is an error thrown when the BuildSessionFactory() is called:
The source of the error is in Configuration.cs (DoConfigure method):
Code:
XmlNode sfNode = doc.DocumentElement.SelectSingleNode( "//" + CfgNamespacePrefix + ":session-factory", cfgNamespaceMgr );
if( sfNode == null )
{
throw new MappingException( "<session-factory> element was not found in the configuration file." );
}
My configuration is in my App.config (or web.config), and is as follows:
Code:
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.0">
<session-factory>
<property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
<property name="dialect">NHibernate.Dialect.MsSql2005Dialect</property>
<property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property>
<property name="connection.connection_string">xxx</property>
<property name="connection.isolation">ReadCommitted</property>
<property name="command_timeout">0</property>
<property name="show_sql">true</property>
<property name="command_timeout">0</property>
<!-- Mapping files -->
<mapping assembly="DFWHC.GroupOne.GoRes"/>
</session-factory>
</hibernate-configuration>
Has anyone run into this issue with beta 3, or sees anything wrong with my config?
Thank you.