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:


Line 85:         aRss = orss.returnXmlFeed(3, strXMLpath & "X-files/P-files.xml", "gallery")
Line 86: 
Line 87:         galleriID = aRss(0, 0)
Line 88: 
Line 89:         Return galleriID

Source File: D:\w003527\bystromdesign.se\WWWRoot\usercontrols\ProjectsUserControl.ascx.vb    Line: 87

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   System.Array.InternalGetReference(Void* elemRef, Int32 rank, Int32* pIndices) +0
   System.Array.GetValue(Int32 index1, Int32 index2) +97
   Microsoft.VisualBasic.CompilerServices.Container.GetArrayValue(Object[] Indices) +243
   Microsoft.VisualBasic.CompilerServices.NewLateBinding.InternalLateIndexGet(Object Instance, Object[] Arguments, String[] ArgumentNames, Boolean ReportErrors, ResolutionFailure& Failure) +191
   Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateIndexGet(Object Instance, Object[] Arguments, String[] ArgumentNames) +22
   html_usercontrols_ProjectsUserControl.getLatestGalleryID() in D:\w003527\bystromdesign.se\WWWRoot\usercontrols\ProjectsUserControl.ascx.vb:87
   html_usercontrols_ProjectsUserControl.initControl() in D:\w003527\bystromdesign.se\WWWRoot\usercontrols\ProjectsUserControl.ascx.vb:57
   MasterPage4.Page_load(Object obj, EventArgs e) in D:\w003527\bystromdesign.se\WWWRoot\eng\MasterPage4.master.vb:93
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.9174; ASP.NET Version:2.0.50727.9175