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 8:      <title><%=Template.Title%> - Media</title>
Line 9:      <link href="http://content.2viewrealestate.com/template<%=Template.TemplateId%>/style/structure.css" type="text/css" rel="stylesheet" />
Line 10:     <link href="http://content.2viewrealestate.com/template<%=Template.TemplateId%>/style/media.css" type="text/css" rel="stylesheet" />
Line 11:     <link href="/script/facebox/facebox.css" media="screen" rel="stylesheet" type="text/css"/>      
Line 12:         

Source File: i:\Source\Projects\ADELELUCAS\toview.v1\Websites\Realestate\RELEASE\modules\media.aspx    Line: 10

Stack Trace:


[ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index]
   System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource) +72
   ToView.RealestateControls.VideoGallery.Render(HtmlTextWriter writer) in G:\Development\PETER\Projects\ADELELUCAS\toview.v1\ToView.RealestateControls\Media\VideoGallery.cs:28
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   ToView.RealestateControls.Media.Player.GenerateContent(HtmlTextWriter writer) in G:\Development\PETER\Projects\ADELELUCAS\toview.v1\ToView.RealestateControls\Media\Player.cs:147
   ToView.RealestateControls.Media.Player.Render(HtmlTextWriter writer) in G:\Development\PETER\Projects\ADELELUCAS\toview.v1\ToView.RealestateControls\Media\Player.cs:47
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   ASP.modules_media_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in i:\Source\Projects\ADELELUCAS\toview.v1\Websites\Realestate\RELEASE\modules\media.aspx:10
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +117
   System.Web.UI.Page.Render(HtmlTextWriter writer) +39
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +8753


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