Quartz.net工作在deploymnet模式没有发射,但在调试模式下射击

问题描述:

我有发送电子邮件,每5分钟一个Quartz.net工作。这时候我的运行运行完全正常的在调试模式下应用程序在本地。但是,当部署到服务器,作业没有运行。有人能想出的一个原因?

I have a Quartz.net job that sends emails every 5 minutes. It runs perfectly fine when I run the application in debug mode locally. But when deploy to the server, the job is not running. Can someone think of a reason why?

我们的部署地点是在IIS中ASP.NET网站。

Our deployed sites are ASP.NET websites in IIS.

我不知道到底是什么导致了问题。我花了相当多的时间在这,但找不到作业为什么没有运行。最后,我看了看日志,发现这是它前面的运行作业被扔了某种异常,让我从去年搬到我的工作列表在列表中第一个,它开始工作的罚款。有一对夫妇的所发生的,以及奇怪的事情,我不的完全的满意它是怎么解决的。我想其他的事情了。

I don't exactly what caused the issue. I spend quite a bit of time on this but could not find why the job was not running. Eventually I looked at the log and found that the job that was run ahead of it was throwing some kind of exception, so I moved my job from last in the list to first in the list and it started working fine. There were a couple of weird things that happened as well and I was not completely satisfied how it got resolved. Other things that I think of was


  • 我们有一些环境(开发,分期,分期),有可能有某种由这些多个环境,但是我认为这是不可能的冲突中

不管怎么说工作开始运行后,罚款我重新安排工作。有趣的是,我固定在一个分支的顺序,并得到了固定的开发和分期的环境。

Anyways the job start running fine after I reorder the job. The interesting thing was, I fixed the ordering in a branch and it got fixed in dev and staging environments.