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> |