Server Error in '/' Application.

Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

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.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

Source Error:


Line 422:    ''' <remarks></remarks>
Line 423:    Sub ShowSpecification(ByVal oAttributes As ArrayList, ByVal zModelName As String, ByVal iAssetID As Integer)
Line 424:        If oAttributes.Count > 0 And Not oAttributes(0) Is Nothing Then
Line 425:            litModelName_Spec.Text = zModelName
Line 426:

Source File: C:\inetpub\wwwroot\websites\Dealer Websites\QB Motorcycles\Live\royal-enfield-view-bike.aspx.vb    Line: 424

Stack Trace:


[ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index]
   System.Collections.ArrayList.get_Item(Int32 index) +14814396
   royal_enfield_view_bike.ShowSpecification(ArrayList oAttributes, String zModelName, Int32 iAssetID) in C:\inetpub\wwwroot\websites\Dealer Websites\QB Motorcycles\Live\royal-enfield-view-bike.aspx.vb:424
   royal_enfield_view_bike.ShowModel(List`1 oParents, List`1 oValues, String zRawQueryString) in C:\inetpub\wwwroot\websites\Dealer Websites\QB Motorcycles\Live\royal-enfield-view-bike.aspx.vb:78
   royal_enfield_view_bike.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\websites\Dealer Websites\QB Motorcycles\Live\royal-enfield-view-bike.aspx.vb:30
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


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