[英]NServiceBus throws “No endpoint configuration found” error due to Fluent NHibernate ClassMap
[英]Fluent Nhibernate and quartz error configuration section not found in application configuration file
2015-06-22 11:23:01,427 [QuartzScheduler_Worker-1] INFO NHibernate.Cfg.Environment..cctor(:0) - NHibernate 4.0.0.GA (assembly 4.0.0.4000)
2015-06-22 11:23:01,458 [QuartzScheduler_Worker-1] INFO NHibernate.Cfg.Environment.LoadGlobalPropertiesFromAppConfig(:0) - hibernate-configuration se
ction not found in application configuration file
2015-06-22 11:23:01,474 [QuartzScheduler_Worker-1] INFO NHibernate.Cfg.Environment.BuildBytecodeProvider(:0) - Bytecode provider name : lcg
2015-06-22 11:23:01,474 [QuartzScheduler_Worker-1] INFO NHibernate.Cfg.Environment.get_Properties(:0) - Using reflection optimizer
Control+C detected, attempting to stop service.
我正在使用Fluent配置Nhibernate
// Returns our database configuration
private static MsSqlConfiguration DbConfig()
{
return MsSqlConfiguration
.MsSql2008
.Dialect<MsSql2008Dialect>()
.ShowSql()
.DefaultSchema("dbo")
.ConnectionString(DBUtil.DBConnString);
}
所有的dll和配置文件都放在同一個文件夾中,有一個使用Nhibernate的作業
這個問題與我在Quartz.server.exe中的連接字符串有關,名稱與流利的DbConfig方法中使用的名稱不同。 更新連接字符串的名稱可解決此問題。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.