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 131:            '
Line 132:            If sFromTo = "to" Then
Line 133:                sSQL = "SELECT Bracket.DrawId, Bracket.BracketId, DrawSheetInformation.ActualDrawSize " & _
Line 134:                       "  FROM Bracket " & _
Line 135:                       " INNER JOIN DrawSheetInformation ON Bracket.DrawId = DrawSheetInformation.DrawId " & _

Source File: D:\Websites\www.platformtennismembers.org\2012nationals\2011eventround.aspx    Line: 133

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP._2012nationals_2011eventround_aspx.GetDrawIdFromFeed(String sFromTo, String sFeed) in D:\Websites\www.platformtennismembers.org\2012nationals\2011eventround.aspx:133
   ASP._2012nationals_2011eventround_aspx.page_load() in D:\Websites\www.platformtennismembers.org\2012nationals\2011eventround.aspx:18
   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