Hello I have the followinf error
System.TypeInitializationException: The type initializer for 'NHSample.Helper.NHSessionManager' threw an exception. ---> NHibernate.MappingException: Could not compile the mapping document: NHSample.Mappings.CustomerOne.hbm.xml ---> NHibernate.HibernateException: The dialect was not set. Set the property hibernate.dialect. at NHibernate.Dialect.Dialect.GetDialect() at NHibernate.Dialect.Dialect.GetDialect(IDictionary props) at NHibernate.Cfg.Configuration.AddValidatedDocument(NamedXmlDocument doc) --- End of inner exception stack trace --- at NHibernate.Cfg.Configuration.LogAndThrow(MappingException me) at NHibernate.Cfg.Configuration.AddValidatedDocument(NamedXmlDocument doc) at NHibernate.Cfg.Configuration.ProcessMappingsQueue() at NHibernate.Cfg.Configuration.AddDocumentThroughQueue(NamedXmlDocument document) at NHibernate.Cfg.Configuration.AddXmlReader(XmlTextReader hbmReader, String name) at NHibernate.Cfg.Configuration.AddInputStream(Stream xmlInputStream, String name) at NHibernate.Cfg.Configuration.AddResource(String path, Assembly assembly) at NHibernate.Cfg.Configuration.AddAssembly(Assembly assembly) ... ...
and my hibernate.cfg.xml is
... ... <session-factory> <property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property> <property name="connection.connection_string"> Server=abc,2431; Initial Catalog=CPM; User ID=cpm; Password=cpm2 </property> <property name="dialect">NHibernate.Dialect.MsSql2005Dialect</property> <property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property> <mapping assembly="NHSample"/> ... ...
where do I make mistakes ?!?
Thanks in Advance
|