Here is my code written inside pageload action of Controller because i have to clear temp files before loading so plz check and inform me where i am doing fault so that files are not removed from temporary folder .please have a look and reply me as soon as possible its urgent.
DocumentCache s1 = new DocumentCache("~/GroupDocs.Viewer.lic", “~/localfiles/”,workingDirectoryPath:null);
s1.RemoveOldEntries(new TimeSpan(2,1,1), @“c:\GDViewerTmp\cache_clean_log.txt”);
Thnx for reply.
I want to clear files which are stored in APP Data folder after PDF annotation.I had implemented above code .“Files are removed” text written in Cache_clean_log file but files are not deleted from temp folder. Please suggest me where i am implemented wrongly.
Please go through below code:
Thnx for reply. I checked already by writing following code .But its not working .
DocumentCache s1 = new DocumentCache(Server.MapPath("~/GroupDocs.Viewer.lic"), Server.MapPath("~/App_Data/temp/"));