Scheduled Job in EPiServer CMS 6 R2
Last week I had to create a new Scheduled Job for managing some aspects of archiving older news.
Most of the things went great, and when I click on Run Manually
button, got a green light from the service (no error messages). But when I let it run on a schedule, I got a error: the user service was running as didn't had rights for modifying epi page. Well, after a bit of search, I managed to impersonate the service as a admin in EPiServer.
Resources I used to create the service:
- Create a scheduled job in EPiServer
- Run a scheduled job as a specific EPiServer user
- Custom scheduled jobs in EPiServer - advanced tips
On another note, I think a scheduled job should need more then a attribute that defines a class as a service. It should also implement a Interface...