-->
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.  [ 1 post ] 
Author Message
 Post subject: Type initializer for "NHibernate.Cfg.Environment"
PostPosted: Tue Aug 09, 2005 12:08 pm 
I am getting the same error as in this posting:

http://nhibernate.sourceforge.net/forum ... nitializer

However, my web.config looks like:

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>
   <add key="hibernate.connection.provider"
     value="NHibernate.Connection.DriverConnectionProvider" />

   <add key="hibernate.dialect"
      value="NHibernate.Dialect.MsSql2000Dialect" />

   <add key="hibernate.connection.driver_class"
      value="NHibernate.Driver.SqlClientDriver" />

   <add key="hibernate.connection.connection_string"
      value="Data Source=myserver;Initial Catalog=Test;User Id=myuser;Password=mypassword;Connect Timeout=45;" />
   </nhibernate>

</configuration>


Anyone have any thoughts?


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

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.