Thread:
 Another problem that i could fix 
 nahuelgq   05 Nov 2006, 03:17 

Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
From: nahuelgq (05 Nov 2006, 03:17) Replies: 0, Views: 24106
Subject: Another problem that i could fix
If you had a TypeInitializationException when you are trying to do this:

NHibernate.Cfg.Configuration conf = new NHibernate.Cfg.Configuration();

Make  sure that your app.config is well formed and is coherent with the 
nhibernate-configuration-2.0.xsd shema.

In my case, I had my config file ending like this:

<add key="hibernate.connection.connection_string"
      value="User ID=blabla;Password=blabla;Initial Catalog=blabla;Data 
Source=blabla"
    />
    <add /> <-------------- Here is the mistake
  </nhibernate>
</configuration>

The shema says that in the "add" node, the key and value attributtes are 
mandatory.
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
© Copyright 2006, Red Hat Middleware, LLC. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc. [Privacy Policy]