Server Error in '/' Application.

There is no row at position 0.

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: There is no row at position 0.

Source Error:


Line 28:                 {
Line 29:                     Systemtek.DAL.DbHelperSQL.ExecuteSql("update BH_Article set Hits=Hits+1 where id=" + Request.QueryString["nid"]);
Line 30:                     DataRow myrow = bllc.ForArticleSomeLoad("Admin_Article_Modify_Load", Convert.ToInt32(Request.QueryString["nid"]));
Line 31:                     if ((int)myrow["ClassID"] == 16)
Line 32:                     {

Source File: c:\inetpub\wwwroot\news\Content.aspx.cs    Line: 30

Stack Trace:


[IndexOutOfRangeException: There is no row at position 0.]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +2556141
   System.Data.RBTree`1.get_Item(Int32 index) +16
   System.Data.DataRowCollection.get_Item(Int32 index) +16
   Systemtek.DAL.ArticleClass.ForArticleSomeLoad(String Pro, Int32 Int) in D:\parttime\limin\110617sourcecodes-chineseofchicago.com\chineseofchicago.com\DAL\DAL_ArticleClass.cs:43
   Systemtek.BLL.ArticleClass.ForArticleSomeLoad(String Pro, Int32 Int) in D:\parttime\limin\110617sourcecodes-chineseofchicago.com\chineseofchicago.com\BLL\BLL_ArticleClass.cs:47
   MyArticleContent.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\news\Content.aspx.cs:30
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42
   System.Web.UI.Control.OnLoad(EventArgs e) +132
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428


Version Information: Microsoft .NET Framework Version:2.0.50727.8806; ASP.NET Version:2.0.50727.8762