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

位置0没有行。

描述: 当前Web请求的执行期间发生未处理的异常。请查看堆栈跟踪以获取有关错误及其在代码中起源的更多信息。

异常详细信息: System.IndexOutOfRangeException:在位置0没有行。

源错误:


Line 84:                 sdsParentChild.SelectCommand = "SELECT Company FROM CMA_Organizations WHERE ModHeadComID = " + itemId;
Line 85:                 DataView dvIndividual = (DataView)sdsParentChild.Select(DataSourceSelectArguments.Empty);
Line 86:                 string company = dvIndividual.Table.Rows[0][0].ToString().Replace(" ", "-").Replace("/", "%5F").Replace("&", "amp;");
Line 87:                 authOnly.InnerHtml = "CMA Member Access Only - please <a href='http://www.toughleague.com/OasisRedirectLogon?redirecturl=directory.the-cma.org/Organizations/" + company + "_" + itemId + ".aspx' class='NormalBoldRed'>login</a> to view detailed information. If you are interested in joining CMA, simply complete this <a href='http://online.toughleague.com?WCE=C=Wizard|K=1090~0' class='NormalBoldRed'>form</a> and the membership department will contact you.";
Line 88:             }

源文件: d:\ directory.the-cma.org \ ViewDetail.aspx.cs    Line: 86

堆栈跟踪:


[IndexOutOfRangeException: 位置0没有行。]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +1547970
   System.Data.RBTree`1.get_Item(Int32 index) +19
   System.Data.DataRowCollection.get_Item(Int32 index) +11
   ViewDetail.Page_Load(Object sender, EventArgs e) in d:\ directory.the-cma.org \ ViewDetail.aspx.cs:86
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


版本信息: Microsoft .NET Framework版本:2.0.50727.8806; ASP.NET版本:2.0.50727.8762