-->
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.  [ 2 posts ] 
Author Message
 Post subject: nh 2.1.0 and config file
PostPosted: Fri Jul 31, 2009 3:59 pm 
Regular
Regular

Joined: Tue Jun 26, 2007 11:50 am
Posts: 105
Hello,

I try to upgrade from nh 2.0.1 to nh 2.1.0. It seems that there are some breaking changes in the configuration file between these two versions.

Here is the config file I use.

Code:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <configSections>
    <section name="nhibernate" type="System.Configuration.NameValueSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
  </configSections>
  <nhibernate>
    ...
  </nhibernate>
</configuration>


Here is the exception I get with nh 2.1.0:

Quote:
Could not load file or assembly '%NHibernate, Version=2.0.1.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4' or one of its dependencies. The system cannot find the file specified. The located assembly's manifest definition does not match the assembly reference.


Does anyone know how to write the config file for nh 2.1.0?

Thank you in advance.

Mathmax


Top
 Profile  
 
 Post subject: Re: nh 2.1.0 and config file
PostPosted: Mon Aug 03, 2009 2:17 am 
Newbie

Joined: Mon Aug 03, 2009 2:00 am
Posts: 2
fill section like this:

<s ection name="nhibernate" type="NHibernate.Cfg.ConfigurationSectionHandler,NHibernate" >


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.