2

Im using Im using Quartz.Net in a MVC application.

I have gotten it to work with triggering an easy jobb (just print some text to output window), but when trying to do more complex work like maintenance work for the database im getting an error and the maintenance work rolles back.

When using the class that implements the job for maintenance separately, that is outside of Quartz.net it works fine, but when using Quartz im getting following error:

"A first chance exception of type 'System.NullReferenceException' occurred in Unity.Mvc3.dll"

Any ideas?

When I said it worked separately I was using Execute with no parameter from a Controller action.

4

1 回答 1

2

这个答案可能会对你有所帮助。

这是一个使用 MVC4 和 Unity 的简单实现。在答案的底部,您将找到一个示例项目。

希望能帮助到你。

于 2013-11-07T18:12:33.640 回答