Have you created the table in the database.
Yes
and Have you entered the correct connection string to connect to the database.
Yes
Providing a copy of the hibernate.cfg.xml or web.config or app.config would help (if you have created the tables in the database).[/quote]
the app.config is :
<?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="Server=.\sqlexpress;initial catalog=APOLO;Integrated Security=SSPI"
/>
</nhibernate>
</configuration>
Thanks
|