Thread:
 Configuration Error hibernate.connection.driver_cl... 
 vata2999   02 Jan 2007, 11:27 
 Re: Configuration Error hibernate.connection.dr... 
 Wervis   13 Mar 2007, 08:58 

Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
From: Wervis (13 Mar 2007, 08:58) Replies: 0, Views: 12780
Subject: Re: Configuration Error hibernate.connection.driver_cla...
POST QUESTIONS ON THE FORUM! COMMENTS HERE SHOULD ADD VALUE TO THE PAGE!
POST QUESTIONS ON THE FORUM! COMMENTS HERE SHOULD ADD VALUE TO THE PAGE!
On 02 Jan 2007 11:27, vata2999 wrote:

>After following the Quick Start Guide I am getting an ERROR:

>The hibernate.connection.driver_class must be specified in the
>NHibernate configuration section

>I have clearly declare the hibernate.connection.driver_class Key in
>app.config file:

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

>I am stucked up with this. Kindly help to solve this prob.

>Thanks,


Add following to your app.config and complete connectionstring:

<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=yourserver;Initial Catalog=yourdatabase;Persist Security 
Info=True;User ID=sa;Password=pass"/>
 <add key="hibernate.show_sql" value="true"/>
</nhibernate>
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]