These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 
Author Message
 Post subject: Does Nhibernate support Vista Home Edition
PostPosted: Wed Sep 03, 2008 4:26 am 
Newbie

Joined: Tue Sep 02, 2008 4:17 pm
Posts: 4
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. ???


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 03, 2008 5:10 am 
Regular
Regular

Joined: Tue Jul 29, 2008 3:30 am
Posts: 74
And you have double checked, that the assembly log4net.dll is in the same folder as NHibernate.dll and all other NHibernate assemblies?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 03, 2008 5:28 am 
Newbie

Joined: Tue Sep 02, 2008 4:17 pm
Posts: 4
cremor wrote:
And you have double checked, that the assembly log4net.dll is in the same folder as NHibernate.dll and all other NHibernate assemblies?



well i am just using Nhibernate.dll as reference assembly. log4net is not being used, so i don't think i need this.

besides i have the exact replica of this project in working state on windows xp.

so i am assuming it has to do with some VS2005 and vista combination.

any idea ?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 03, 2008 5:34 am 
Newbie

Joined: Tue Sep 02, 2008 4:17 pm
Posts: 4
bugs_q wrote:
cremor wrote:
And you have double checked, that the assembly log4net.dll is in the same folder as NHibernate.dll and all other NHibernate assemblies?



well i am just using Nhibernate.dll as reference assembly. log4net is not being used, so i don't think i need this.

besides i have the exact replica of this project in working state on windows xp.

so i am assuming it has to do with some VS2005 and vista combination.

any idea ?



actually it worked............. for the heck of it, i just add all the .dlls comes in bin folder of Nhibernate.zip

and it worked............ now i am confused why the other dlls was not needed in Xp setup and why it is needed in vista

also if i am not using log4net then why should i reference these dlls.

anyways thanks for your help dude...... :)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 03, 2008 5:35 am 
Newbie

Joined: Tue Sep 02, 2008 4:17 pm
Posts: 4
bugs_q wrote:
cremor wrote:
And you have double checked, that the assembly log4net.dll is in the same folder as NHibernate.dll and all other NHibernate assemblies?



well i am just using Nhibernate.dll as reference assembly. log4net is not being used, so i don't think i need this.

besides i have the exact replica of this project in working state on windows xp.

so i am assuming it has to do with some VS2005 and vista combination.

any idea ?



actually it worked............. for the heck of it, i just add all the .dlls comes in bin folder of Nhibernate.zip

and it worked............ now i am confused why the other dlls was not needed in Xp setup and why it is needed in vista

also if i am not using log4net then why should i reference these dlls.

anyways thanks for your help dude...... :)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 03, 2008 10:16 am 
Regular
Regular

Joined: Tue Jul 29, 2008 3:30 am
Posts: 74
If you create a simple Winforms project where you add a reference to NHibernate.dll, all other assemblies from the NHibernate package are also copied to the output directory when you build the project.
That shows you, that NHibernate uses them internally, so all of them are always needed, even if you don't use them directly yourself.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.