“/”应用程序中的服务器错误。
Could not find the dialect in the configuration
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.InvalidOperationException: Could not find the dialect in the configuration
源错误:
行 19: //Castle.ActiveRecord.Framework.IConfigurationSource source = System.Configuration.ConfigurationManager.GetSection("activerecord") as Castle.ActiveRecord.Framework.IConfigurationSource; 行 20: XmlConfigurationSource source = new XmlConfigurationSource(Server.MapPath("appconfig.xml")); 行 21: Castle.ActiveRecord.ActiveRecordStarter.Initialize(typeof(Castle.ActiveRecord.Domain.Users).Assembly, source); 行 22: } 行 23:
|
源文件: C:\SwireWork\lyf\Castle\Castle.ActiveRecord.WebUI\Castle.ActiveRecord.WebUI\Global.asax.cs 行: 21
堆栈跟踪:
[InvalidOperationException: Could not find the dialect in the configuration] NHibernate.Dialect.Dialect.GetDialect(IDictionary`2 props) +155 NHibernate.Cfg.Configuration.AddValidatedDocument(NamedXmlDocument doc) +94
[MappingException: Could not compile the mapping document: (string)] NHibernate.Cfg.Configuration.LogAndThrow(Exception exception) +56 NHibernate.Cfg.Configuration.AddValidatedDocument(NamedXmlDocument doc) +249 NHibernate.Cfg.Configuration.ProcessMappingsQueue() +17 NHibernate.Cfg.Configuration.AddDocumentThroughQueue(NamedXmlDocument document) +24 NHibernate.Cfg.Configuration.AddXmlReader(XmlReader hbmReader, String name) +26 NHibernate.Cfg.Configuration.AddXml(String xml, String name) +133 NHibernate.Cfg.Configuration.AddXmlString(String xml) +11 Castle.ActiveRecord.ActiveRecordStarter.AddXmlString(Configuration config, String xml, ActiveRecordModel model) +35
[ActiveRecordException: Error adding information from class Castle.ActiveRecord.Domain.Users to NHibernate. Check the inner exception for more information] Castle.ActiveRecord.ActiveRecordStarter.AddXmlString(Configuration config, String xml, ActiveRecordModel model) +144 Castle.ActiveRecord.ActiveRecordStarter.AddXmlToNHibernateCfg(ISessionFactoryHolder holder, ActiveRecordModelCollection models) +328 Castle.ActiveRecord.ActiveRecordStarter.RegisterTypes(ISessionFactoryHolder holder, IConfigurationSource source, IEnumerable`1 types, Boolean ignoreProblematicTypes) +197 Castle.ActiveRecord.ActiveRecordStarter.Initialize(IConfigurationSource source, Type[] types) +376 Castle.ActiveRecord.ActiveRecordStarter.Initialize(Assembly[] assemblies, IConfigurationSource source, Type[] additionalTypes) +80 Castle.ActiveRecord.ActiveRecordStarter.Initialize(Assembly assembly, IConfigurationSource source) +56 Castle.ActiveRecord.WebUI.Global.Application_Start(Object sender, EventArgs e) in C:\SwireWork\lyf\Castle\Castle.ActiveRecord.WebUI\Castle.ActiveRecord.WebUI\Global.asax.cs:21
|
版本信息: Microsoft .NET Framework 版本:2.0.50727.3603; ASP.NET 版本:2.0.50727.3614