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的作业
答案 0 :(得分:0)
这个问题与Quartz.server.exe中的我的连接字符串有关,名称与流利的DbConfig方法中使用的名称不同。更新连接字符串的名称解决了问题。