Server Error in '/' Application.

Object reference not set to an instance of an object.

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.NullReferenceException: Object reference not set to an instance of an object.

Source Error:


Line 589:            '
Line 590:            If sFromTo = "to" Then
Line 591:                sSQL = "SELECT Bracket.DrawId, Bracket.BracketId, DrawSheetInformation.ActualDrawSize " & _
Line 592:                       "  FROM Bracket " & _
Line 593:                       " INNER JOIN DrawSheetInformation ON Bracket.DrawId = DrawSheetInformation.DrawId " & _

Source File: D:\Websites\www.platformtennismembers.org\2012nationals\2011eventhome.aspx    Line: 591

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP._2012nationals_2011eventhome_aspx.GetDrawIdFromFeed(String sFromTo, String sFeed) in D:\Websites\www.platformtennismembers.org\2012nationals\2011eventhome.aspx:591
   ASP._2012nationals_2011eventhome_aspx.page_load() in D:\Websites\www.platformtennismembers.org\2012nationals\2011eventhome.aspx:13
   System.Web.Util.CalliHelper.ArglessFunctionCaller(IntPtr fp, Object o) +8
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +9044207
   System.Web.UI.Control.OnLoad(EventArgs e) +91
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207


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