diff --git a/src/ImageProcessor.Web/NET45/Caching/MemCache.cs b/src/ImageProcessor.Web/NET45/Caching/MemCache.cs index 0eb42a887..da770af16 100644 --- a/src/ImageProcessor.Web/NET45/Caching/MemCache.cs +++ b/src/ImageProcessor.Web/NET45/Caching/MemCache.cs @@ -181,7 +181,8 @@ namespace ImageProcessor.Web.Caching if (isRemoved) { - CacheItems.Keys.Remove(key); + string removedValue; + CacheItems.TryRemove(key, out removedValue); } } @@ -228,7 +229,8 @@ namespace ImageProcessor.Web.Caching // Loop through and clear out the dictionary of cache keys. foreach (KeyValuePair cacheItem in tempDictionary) { - CacheItems.Keys.Remove(cacheItem.Key); + string removedValue; + CacheItems.TryRemove(cacheItem.Key, out removedValue); } } } @@ -237,4 +239,4 @@ namespace ImageProcessor.Web.Caching } #endregion } -} \ No newline at end of file +} diff --git a/src/ImageProcessor.Web/NET45/Properties/AssemblyInfo.cs b/src/ImageProcessor.Web/NET45/Properties/AssemblyInfo.cs index 9466fd9bb..e859b7d48 100644 --- a/src/ImageProcessor.Web/NET45/Properties/AssemblyInfo.cs +++ b/src/ImageProcessor.Web/NET45/Properties/AssemblyInfo.cs @@ -31,5 +31,6 @@ using System.Runtime.InteropServices; // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("3.0.0.0")] -[assembly: AssemblyFileVersion("3.0.0.0")] +[assembly: AssemblyVersion("3.0.0.1")] +[assembly: AssemblyFileVersion("3.0.0.1")] +