My application is not published properly

107 Views Asked by At

I am using from quartz dll to do some jobs in a specific time plan. I run the schedules in application_start in Global file. It works for me good in the local but when I publish the project it doesn't work. For publishing the project I just copy and overwrite the bin and views folder. The proper Global file that contains the running codes exist in the server. Should I publish it again or what to do?

What should I do?

1

There are 1 best solutions below

2
On

IIS normally doesn't start your application until it has to, ie. someone views a page, and it stops your application after a certain amount if idling, or whenever it feels like it really. You can even configure IIS to run your app in any number of concurrent worker processes. So webapps are not suitable for background jobs, windows services are.

But as a workaround, you can configure your app to run constantly: http://weblogs.asp.net/scottgu/archive/2009/09/15/auto-start-asp-net-applications-vs-2010-and-net-4-0-series.aspx