后台-插件-广告管理-内容页广告位一(手机)

您现在的位置是:首页 > 开发类 > 问答问答

Nhibernate中的问题

2021-07-06 20:05:02问答人已围观

简介 我在使用Nhibernate的过程中出现在如下错误:<br><title>The dialect was not set. Set the property hibernate.dialect.</title><style>
body {font

我在使用Nhibernate的过程中出现在如下错误:<br><title>The dialect was not set. Set the property hibernate.dialect.</title><style> body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px} b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px} H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } pre {font-family:"Lucida Console";font-size: .9em} .marker {font-weight: bold; color: black;text-decoration: none;} .version {color: gray;} .error {margin-bottom: 10px;} .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; } </style><span><h2><i>The dialect was not set. Set the property hibernate.dialect.</i> </h2></span><font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "><b>说明: </b>执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 <br><br><b>异常详细信息: </b>NHibernate.HibernateException: The dialect was not set. Set the property hibernate.dialect.</font><br><b>堆栈跟踪:</b> <br><br> <table bgcolor="#ffffcc" width="100%"> <tbody> <tr> <td><code></code><pre>[HibernateException: The dialect was not set. Set the property hibernate.dialect.]<br> NHibernate.Dialect.Dialect.GetDialect() +120<br> NHibernate.Dialect.Dialect.GetDialect(IDictionary props) +133<br> NHibernate.Cfg.Configuration.AddValidatedDocument(XmlDocument doc, String name) +57<br><br>[MappingException: Could not compile the mapping document: Model.Person.hbm.xml]<br> NHibernate.Cfg.Configuration.LogAndThrow(MappingException me) +62<br> NHibernate.Cfg.Configuration.AddValidatedDocument(XmlDocument doc, String name) +175<br> NHibernate.Cfg.Configuration.AddXmlReader(XmlTextReader hbmReader, String name) +65<br> NHibernate.Cfg.Configuration.AddInputStream(Stream xmlInputStream, String name) +149<br> NHibernate.Cfg.Configuration.AddResource(String path, Assembly assembly) +234<br> NHibernate.Cfg.Configuration.AddAssembly(Assembly assembly, Boolean skipOrdering) +314<br> NHibernate.Cfg.Configuration.AddAssembly(Assembly assembly) +36<br> NHibernate.Cfg.Configuration.AddAssembly(String assemblyName) +182<br> NHibernate.Helper.SessionFactory.OpenSession() in E:\C#练习\NHB_Model\NHibernate.Helper\NHibernateModule.cs:36<br> NHibernateOperation.NHibernateModule.EntityControl`1..ctor() in E:\C#练习\NHB_Model\NHibernateOperation\EntityControl.cs:35<br> NHibernateOperation.NHibernateModule.CommonDatabaseOperation`1.GetEntityControl() in E:\C#练习\NHB_Model\NHibernateOperation\CommonDatabaseOperation.cs:58<br> WebDAL.PersonOperation..ctor() in E:\C#练习\NHB_Model\WebDAL\DAL.cs:13<br> _Default.Page_Load(Object sender, EventArgs e) in e:\C#练习\NHibernateWeb\Default.aspx.cs:15<br> System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +31<br> System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +68<br> System.Web.UI.Control.OnLoad(EventArgs e) +88<br> System.Web.UI.Control.LoadRecursive() +74<br> System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3035<br></pre></td></tr></tbody></table><br>

最佳答案:

文章来源:https://q.cnblogs.com/q/2473/

Tags:.net技术 ORM 

很赞哦! ()

后台-插件-广告管理-内容页广告位二(手机)

相关文章

后台-插件-广告管理-内容页广告位三(手机)
后台-插件-广告管理-内容页广告位四(手机)

文章评论

留言与评论(共有 0 条评论)
   
验证码:

本栏推荐

站点信息

  • 文章统计90049篇文章
  • 浏览统计10083次浏览
  • 评论统计1个评论
  • 标签管理标签云
  • 统计数据:统计代码
  • 微信公众号:扫描二维码,关注我们