“/”应用程序中的服务器错误。

索引超出范围。必须为非负值并小于集合大小。
参数名: index

说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.ArgumentOutOfRangeException: 索引超出范围。必须为非负值并小于集合大小。
参数名: index

源错误:


行 31:           <div id="setInfo">
行 32:             <div class="nph_set_title">
行 33:               <h1><%=bNewsInfo.GetNewsInfoListByNewsID(id)[0].Title%></h1>
行 34:               <span class="nph_set_cur hidden" id="photoType">(<span id="photoIndex" class="nph_c_lh"></span>/<%=bNewsInfo.GetNewsInfoListByNewsID(id)[0].SplitImages.Split('|').Length - 1%>)</span><span class="nph_set_size" id="streamType">(共<span class="nph_c_lh"><%=bNewsInfo.GetNewsInfoListByNewsID(id)[0].SplitImages.Split('|').Length - 1%></span>张)</span> </div>
行 35:           </div>

源文件: e:\cipNewsNEW\cipNews\Web\Index_LookPhoto.aspx    行: 33

堆栈跟踪:


[ArgumentOutOfRangeException: 索引超出范围。必须为非负值并小于集合大小。
参数名: index]
   System.ThrowHelper.ThrowArgumentOutOfRangeException() +78
   System.Collections.Generic.List`1.get_Item(Int32 index) +53
   ASP.index_lookphoto_aspx.__Renderform1(HtmlTextWriter __w, Control parameterContainer) in e:\cipNewsNEW\cipNews\Web\Index_LookPhoto.aspx:33
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +115
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +253
   System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +87
   System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +53
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
   System.Web.UI.Page.Render(HtmlTextWriter writer) +38
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4240


版本信息: Microsoft .NET Framework 版本:2.0.50727.8745; ASP.NET 版本:2.0.50727.8745