Index Array out of bounds error?
Hi,
I am suddenly getting a "Index array out of bounds error" when I try to access any images/albums. Even in simpler terms I am getting a server error when I make a call via
Albums myAlbum = manager.GetAlbums().First() ;
Here is a sample of the stack error
IndexOutOfRangeException
Index was outside the bounds of the array. at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) at System.Collections.Generic.Dictionary`2.set_Item(TKey key, TValue value) at Telerik.Sitefinity.Security.PermissionAttribute..ctor(String permissionSetName, String[] actions) at Telerik.Sitefinity.Security.EnumeratorPermissionAttribute..ctor(String permissionSetName, String[] actions) at System.Reflection.CustomAttribute._CreateCaObject(RuntimeModule pModule, IRuntimeMethodInfo pCtor, Byte** ppBlob, Byte* pEndBlob, Int32* pcNamedArgs) at System.Reflection.CustomAttribute.CreateCaObject(RuntimeModule module, IRuntimeMethodInfo ctor, IntPtr& blob, IntPtr blobEnd, Int32& namedArgs) at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent) at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeMethodInfo method, RuntimeType caType, Boolean inherit) at System.Reflection.RuntimeMethodInfo.GetCustomAttributes(Type attributeType, Boolean inherit) at Telerik.Sitefinity.Security.AuthorizationPermissionProvider.AuthorizeOutput(IMethodInvocation input, IMethodReturn output) at Telerik.Sitefinity.Security.SitefinityAuthorizationCallHandler.Invoke(IMethodInvocation input, GetNextHandlerDelegate getNext) at Telerik.Microsoft.Practices.Unity.InterceptionExtension.HandlerPipeline.Invoke(IMethodInvocation input, InvokeHandlerDelegate target) at Telerik.Microsoft.Practices.Unity.InterceptionExtension.PolicyInjectionBehavior.Invoke(IMethodInvocation input, GetNextInterceptionBehaviorDelegate getNext) at Telerik.Microsoft.Practices.Unity.InterceptionExtension.InterceptionBehaviorPipeline.Invoke(IMethodInvocation input, InvokeInterceptionBehaviorDelegate target) at DynamicModule.ns.Wrapped_OpenAccessLibrariesProvider_1bad29f82a2f4e02be68fb57f5bc701c.GetAlbums() at Telerik.Sitefinity.Modules.Libraries.LibrariesManager.GetAlbums() at pool_featured.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
/flash/pool_featured_test.ashx
64.40.114.103
Anonymous
False
Sitefinity
IIS APPPOOL\site
22
IIS APPPOOL\site
False
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) at System.Collections.Generic.Dictionary`2.set_Item(TKey key, TValue value) at Telerik.Sitefinity.Security.PermissionAttribute..ctor(String permissionSetName, String[] actions) at Telerik.Sitefinity.Security.EnumeratorPermissionAttribute..ctor(String permissionSetName, String[] actions) at System.Reflection.CustomAttribute._CreateCaObject(RuntimeModule pModule, IRuntimeMethodInfo pCtor, Byte** ppBlob, Byte* pEndBlob, Int32* pcNamedArgs) at System.Reflection.CustomAttribute.CreateCaObject(RuntimeModule module, IRuntimeMethodInfo ctor, IntPtr& blob, IntPtr blobEnd, Int32& namedArgs) at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent) at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeMethodInfo method, RuntimeType caType, Boolean inherit) at System.Reflection.RuntimeMethodInfo.GetCustomAttributes(Type attributeType, Boolean inherit) at Telerik.Sitefinity.Security.AuthorizationPermissionProvider.AuthorizeOutput(IMethodInvocation input, IMethodReturn output) at Telerik.Sitefinity.Security.SitefinityAuthorizationCallHandler.Invoke(IMethodInvocation input, GetNextHandlerDelegate getNext) at Telerik.Microsoft.Practices.Unity.InterceptionExtension.HandlerPipeline.Invoke(IMethodInvocation input, InvokeHandlerDelegate target) at Telerik.Microsoft.Practices.Unity.InterceptionExtension.PolicyInjectionBehavior.Invoke(IMethodInvocation input, GetNextInterceptionBehaviorDelegate getNext) at Telerik.Microsoft.Practices.Unity.InterceptionExtension.InterceptionBehaviorPipeline.Invoke(IMethodInvocation input, InvokeInterceptionBehaviorDelegate target) at DynamicModule.ns.Wrapped_OpenAccessLibrariesProvider_1bad29f82a2f4e02be68fb57f5bc701c.GetAlbums() at Telerik.Sitefinity.Modules.Libraries.LibrariesManager.GetAlbums() at pool_featured.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Hi,
Not sure what happened but the issue seem to have disappeared this morning as all the pages work fine now. I will try to investigate as to what the cause was.
Regards,
Josh
Hi Josh ,
We will certainly investigate this.
Have you done anything else? Perhaps the error was cleared when the web site has been restarted?