List<string> directories = new List<string>() { rootSkinFolder };
directories.AddRange(Directory.GetDirectories(rootSkinFolder));
CacheItemPolicy policy = new CacheItemPolicy();
policy.ChangeMonitors.Add(new HostFileChangeMonitor(directories));
policy.Priority = System.Runtime.Caching.CacheItemPriority.Default;
MemoryCache.Default.Set(cachePath, resultPath, policy);
I have code as above, but I am getting the error:
The UTC time represented when the offset is applied must be between year 0 and 10,000.
Please let me know what setting needs to be done to fix this error.