I have a windows shared hosting and i need to run some scheduled c# executable every day for create sitemap, send newsletter,etc…
The provider tell me that i can’t run executable for security reason.
Whay can i do?
The provider suggest me to buy a VPS, but do not think it makes sense to spend more money just to run some scheduled task.
Does exists an alternative way?
Implement your once-a-day task in an asp.net page on your shared server. Then set-up a process, on a machine that you do have full access to, to request that page once a day at a scheduled time.
If the once-a-day processing is time-consuming then you could do it in a thread created by the page. This would stop the request timing-out.
To prevent abuse you could give the page an obscure name, limit access via ip address (if the shared server’s control panel allows that), and/or require authentication by the requesting process. The page could also store the last request time in cache and only do the required processing if sufficient time had elapsed since it was last requested.