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
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
and the simple code:
try
{
bool aux = modelo.Save();
}
catch (Exception ex)
{
ex.ToString();
}
``` <br><a class='attachment' href='/uploads/default/original/1X/880a1a96ab48ed660b78d26fed49cc0f417981f7.rar'>EvalModelWebService.rar</a>