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 39:     // from a database or some object in the application        
Line 40:     Event ev = new Event();        
Line 41:     ev.Title = ds.Tables[0].Rows[0]["title"].ToString();        
Line 42:     ev.Description = ds.Tables[0].Rows[0]["description"].ToString();        
Line 43:     //ev.Location = "At ryanfarley.com";        

Source File: d:\inetpub\wwwroot\FAITHNETWORK_VAULT\PITTSGROVE\CalendarItem.ashx    Line: 41

Stack Trace:


[IndexOutOfRangeException: There is no row at position 0.]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +2441533
   System.Data.DataRowCollection.get_Item(Int32 index) +19
   CalendarItem.ProcessRequest(HttpContext context) in d:\inetpub\wwwroot\FAITHNETWORK_VAULT\PITTSGROVE\CalendarItem.ashx:41
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +790
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +88


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