Hello,
well is there any issue for finding hibernate.cfg.xml ?
as my setup just won't run. it always throws an exception whenever i try to get configuration object.
here is the detail about my environment.
I am using
Vista Home Edition
VS 2005
Nhibernate 2.0
Orcale 9i
my hibernate.cfg.xml is like this:
Code:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section
name="hibernate-configuration"
type="NHibernate.Cfg.ConfigurationSectionHandler, NHibernate"
/>
</configSections>
<!-- Add this element -->
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
<session-factory xmlns="urn:nhibernate-configuration-2.2">
<property xmlns="urn:nhibernate-configuration-2.2" name="dialect">NHibernate.Dialect.Oracle9Dialect</property>
<property xmlns="urn:nhibernate-configuration-2.2" name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
<property xmlns="urn:nhibernate-configuration-2.2" name="connection.connection_string">Data Source = ***; User Id=***; Password=**</property>
<mapping xmlns="urn:nhibernate-configuration-2.2" assembly="FirstApplication" />
</session-factory>
</hibernate-configuration>
</configuration>
this is what i am using in my class file.
Code:
Configuration cfg = new Configuration();
whenever i call this, it always throws this exception
InnerException = {"Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=xxxxxxxxxxxxxxx' or one of its dependencies. The system cannot find the file specified.":"log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=xxxxxxxxxxxxxxxx...
though i used the same project using windowsXp and it worked fine.
so is it because of vista or VS2005 version for vista or Nhibernate doesn't really support vista or what. ???