-->
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: Type initializer for "NHibernate.Cfg.Environment"
PostPosted: Mon Jun 20, 2005 12:18 pm 
Newbie

Joined: Tue Jun 14, 2005 12:15 am
Posts: 1
Hello guys!

I did some tests with hibernate on linux with postgresql and it worked fine. Now I'm using windows with firebird but after this piece of code:

Code:
Configuration config = new Configuration();


an exception is thrown.

I have the firebird provider dll added as a reference and have it on my executable program dir.

Could somebody help me? I'd be very pleased.

On purpose, this is my app.config:


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

    <nhibernate>     
    <add
        key="hibernate.connection.provider"
        value="NHibernate.Connection.DriverConnectionProvider"
    />
    <add
        key="hibernate.dialect"
        value="NHibernate.Dialect.FirebirdDialect"
    />
    <add
        key="hibernate.connection.driver_class"
        value="NHibernate.Driver.FirebirdDriver"
    />
     
    <add
        key="hibernate.connection.connection_string"     
        value="User=SYSDBA;password=masterkey;Database=C:\Temp\advoc-oo.fdb;Data Source=localhost;Port=3050;Dialect=3;Charset=ISO8859_1;Role=;Connection lifetime=15;Connection timeout=15;Pooling=True;Packet Size=8192;ServerType=0"
     
     
    />
    </nhibernate>

</configuration>


Thank you so much, any help will be appreciated.[/code]


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 21, 2005 1:59 pm 
Contributor
Contributor

Joined: Thu May 12, 2005 9:45 am
Posts: 593
Location: nhibernate.org
It looks like you are using .NET 1.0; it could be the problem (if you want to use NHibernate on .NET 1.0, you have to re-compile it...)

_________________
Pierre Henri Kuaté.
Get NHibernate in Action Now!


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.