Anonymous user can't create files

Vote:
 
I have a scheduled job that creates files in a subdirectory to upload. It works fine when I run it manually, logged in as an administrator, but it does not work when run by the EPi scheduler. To my understanding this is because the scheduler runs the job as Anonymous user. There should be a way to either give Anonymous rights to create files or log in as another user in the job code. Or possibly some other solution of which I don't know. /Hakan Lindegren
#12734
Aug 08, 2006 14:31
Vote:
 
See this code sample for an example of how to set the user to execute a job with. If I remember right you need to be running 4.61 for this to work: http://www.episerver.com/en/EPiServer_Knowledge_Center/developerforum/Code-Samples/2640/Remove-old-versions-job/
#14800
Aug 18, 2006 17:07
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.