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 153:            dicParams.Add("@ItemID", _HTMLPageID)
Line 154:            dicParams.Add("@ContentTypeName", "HTML Page")
Line 155:            Return SQLExec.Query("sp_Content_FindID", dicParams).Rows(0).Item(0)
Line 156:        End Get
Line 157:    End Property

Source File: C:\Inetpub\vhosts\chuckkleinauthor.com\httpdocs\App_Code\HTMLPage.vb    Line: 155

Stack Trace:


[IndexOutOfRangeException: There is no row at position 0.]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +2567421
   System.Data.RBTree`1.get_Item(Int32 index) +16
   System.Data.DataRowCollection.get_Item(Int32 index) +16
   HTMLPage.get_ContentID() in C:\Inetpub\vhosts\chuckkleinauthor.com\httpdocs\App_Code\HTMLPage.vb:155
   Page.Page_PreInit(Object sender, EventArgs e) in C:\Inetpub\vhosts\chuckkleinauthor.com\httpdocs\Page.aspx.vb:14
   System.Web.UI.Page.OnPreInit(EventArgs e) +11174494
   System.Web.UI.Page.PerformPreInit() +42
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1256


Version Information: Microsoft .NET Framework Version:2.0.50727.8974; ASP.NET Version:2.0.50727.8975