Hi, I am using ORM code in an ASP.NET application (it's a web service) and my code runs perfectly in a console application but crashs in the Web Service.
The message is
Code:
NHibernate.HibernateException: The dialect was not set. Set the property hibernate.dialect.
on NHibernate.Dialect.Dialect.GetDialect()
on NHibernate.Dialect.Dialect.GetDialect(IDictionary props)
on Orm.PersistentManager.ResolveNativeIDGenerators()
on Orm.PersistentManager..ctor(DotNetConnectionSetting connectionSetting, SessionType sessionType)
on Persistencia.EvalModelSystemOrmPersistentManager..ctor()
on Persistencia.EvalModelSystemOrmPersistentManager.Instance()
on Persistencia.ModeloFactory.LoadModeloByORMID(Int32 ID)
on EvalModelService.CrearModeloPrueba() en d:\Visual Studio 2005\Projects\EvalModelProject\EvalModelWebService\App_Code\EvalModelService.cs:línea 63
I have a file called NHibernate.xml which I assume is the cfg file to which you refer. How do I ' embed hibernate.cfg.xml in the assembly'.
Currently I get I get........
Server Error in '/VSC' Application.
--------------------------------------------------------------------------------
The dialect was not set. Set the property hibernate.dialect.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: NHibernate.HibernateException: The dialect was not set. Set the property hibernate.dialect.