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 1176: List<SqlParam> arr_where = new List<SqlParam>(); Line 1177: arr_where.Add(new SqlParam("tit_id", doc_title)); Line 1178: DataRow dr = CatalogAccess.Select_param(arr_where, " select * from title_dr ").Rows[0]; Line 1179: Line 1180:

Source File: c:\inetpub\wwwroot\labeebsabagroup\App_Code\ApplicationPublic.cs    Line: 1178

Stack Trace:


[IndexOutOfRangeException: There is no row at position 0.] System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +2704337 System.Data.DataRowCollection.get_Item(Int32 index) +19 ApplicationPublic.get_title(String doc_title, String gender) in c:\inetpub\wwwroot\labeebsabagroup\App_Code\ApplicationPublic.cs:1178 detail_news.show_title(String doc_title, String gender, String fullname, String doc_id) in c:\inetpub\wwwroot\labeebsabagroup\detail_news.aspx.cs:209 detail_news.get_detail_news(String new_id) in c:\inetpub\wwwroot\labeebsabagroup\detail_news.aspx.cs:63 detail_news.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\labeebsabagroup\detail_news.aspx.cs:26 System.Web.UI.Control.OnLoad(EventArgs e) +109 System.Web.UI.Control.LoadRecursive() +68 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436


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