I am facing one problem. I have to create asp.net 4.0 web application which should check a table from database after a specified interval and iterates over all records. I have to save some of the records having “xxxx” in column value. I created a class and this class has timer having 1 minute of interval. on tick method it iterates over all records and filter out the data to save.
I created the instance of this class in Application_Start() method in Global.asax but this method does not fire. Remember this web application has no webform, not even Default.aspx
I cannot do this in windows service as hosting provider does not support windows service.
Nothing in a standard asp.net site will run unless the app is started by a visitor.
If you want scheduling functionality, you either need to create a windows service or write a small app which can be set up using the windows task scheduler (or cron if you’re on linux)