Server Error in '/' Application.

Index was outside the bounds of the array.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IndexOutOfRangeException: Index was outside the bounds of the array.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   System.Collections.Generic.Enumerator.MoveNext() +105
   System.Linq.Enumerable.FirstOrDefault(IEnumerable`1 source, Func`2 predicate) +194
   Egami.Core.Extensions.ImageSizeExtension.LogRequest(String sizeSlug, String url, Boolean isBlocked) in D:\Projects\DYG\Ntvspor\egami\src\Egami.Core\Extensions\ImageSizeExtension.cs:59
   Egami.Core.Extensions.ImageSizeExtension.IsAllowed(String width, String height, String url) in D:\Projects\DYG\Ntvspor\egami\src\Egami.Core\Extensions\ImageSizeExtension.cs:47
   Egami.Cloud.Azure.CustomAzureReader.OpenAsync(String virtualPath, NameValueCollection queryString) in D:\Projects\DYG\Ntvspor\egami\src\Egami.Cloud.Azure\CustomAzureReader.cs:31
   System.Threading.Tasks.Task`1.InnerInvoke() +76
   System.Threading.Tasks.Task.Execute() +70
   System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +31
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +60
   ImageResizer.Util.AsyncUtils.RunSync(Func`1 func) +178
   ImageResizer.ImageBuilder.GetStreamFromSource(Object source, ResizeSettings settings, Boolean& disposeStream, String& path, Boolean& restoreStreamPosition) +617
   ImageResizer.ImageBuilder.LoadImage(Object source, ResizeSettings settings, Boolean restoreStreamPos) +533
   ImageResizer.ImageBuilder.BuildJob(ImageJob job) +242
   ImageResizer.ImageBuilder.Build(ImageJob job) +312
   ImageResizer.ImageBuilder.Build(Object source, Object dest, ResizeSettings settings, Boolean disposeSource, Boolean addFileExtension) +188
   ImageResizer.ImageBuilder.Build(Object source, Object dest, ResizeSettings settings, Boolean disposeSource) +34
   ImageResizer.ImageBuilder.Build(Object source, Object dest, ResizeSettings settings) +25
   ImageResizer.<>c__DisplayClass5_0.<HandleRequest>b__1(Stream stream) +169
   ImageResizer.Plugins.DiskCache.<>c__DisplayClass29_0.<TryWriteFile>b__0() +496
   ImageResizer.Plugins.DiskCache.LockProvider.TryExecute(String key, Int32 timeoutMs, LockCallback success) +393
   ImageResizer.Plugins.DiskCache.CustomDiskCache.GetCachedFile(String keyBasis, String extension, ResizeImageDelegate writeCallback, Int32 timeoutMs, Boolean asynchronous) +560
   ImageResizer.Plugins.DiskCache.DiskCache.Process(IResponseArgs e) +125
   ImageResizer.Plugins.DiskCache.DiskCache.Process(HttpContext context, IResponseArgs e) +61
   ImageResizer.InterceptModule.HandleRequest(HttpContext context, HttpModuleRequestAssistant ra, IVirtualFile vf) +1128
   ImageResizer.InterceptModule.CheckRequest_PostAuthorizeRequest(Object sender, EventArgs e) +448
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +139
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +88


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.4108.0