I'm trying to port a project I've previously had running against a SQL
Server 2005 database to use SQL Server CE instead.  I'm trying to use
the following code:

            configuration = new Configuration();

            configuration.SetProperty
(NHibernate.Cfg.Environment.ConnectionDriver,
"NHibernate.Driver.SqlServerCeDriver");
            configuration.SetProperty
(NHibernate.Cfg.Environment.Dialect,
"NHibernate.Dialect.MsSqlCeDialect");
            configuration.SetProperty
(NHibernate.Cfg.Environment.ConnectionProvider,
"NHibernate.Connection.DriverConnectionProvider");
            configuration.SetProperty
(NHibernate.Cfg.Environment.ConnectionString, String.Format
("DataSource={0}", filename));
            configuration.SetProperty
(NHibernate.Cfg.Environment.ShowSql, "true");
            configuration.SetProperty
(NHibernate.Cfg.Environment.ReleaseConnections, "on_close");

            // now the mappings
            configuration.AddXmlFile("Mappings\\Player.hbm.xml");

            factory = configuration.BuildSessionFactory();

I'm receiving the following error at the final line:
An unhandled exception of type 'NHibernate.HibernateException'
occurred in NHibernate.dll

Additional information: Could not create the driver from
NHibernate.Driver.SqlServerCeDriver.

Can anyone point me out where I'm going wrong?

Thanks!

~Dathan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to