using quartz.net on windows azure

2019-07-21 08:35发布

问题:

I am using quartz.net in my asp.net app and the quartz scheduler works when I am running on my localhost but when I publish the site to windows azure it no longer works. Any help would be much appreciated.

回答1:

The problem wasn't that it wasn't running on the azure site. The problem was that azure was using UTC and my localhost was using local time. Since I was using a cron schedule and local time I wasn't seeing the scheduler fire. It is possible to run a quartz.net scheduler on azure without using web role/worker roles. This can all be done within the hosting website.



回答2:

The quartz.net is running in a shared application pool and in azure you dont have enough permission to do that, if you dont buy a Windows Server on Azure and use that server as your webserver.