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 33:         }
Line 34: 
Line 35:         string strLID = Page.RouteData.Values["ListingID"].ToString();
Line 36:         bool isNum = false;
Line 37:         isNum = int.TryParse(strLID.ToString(), out intLID);

Source File: C:\ALL\LiveSites\MakeMyCredit.com\site\UserControls_YP\ClaimListing.ascx.cs    Line: 35

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   UserControls_YP_ClaimListing.Page_Load(Object sender, EventArgs e) in C:\ALL\LiveSites\MakeMyCredit.com\site\UserControls_YP\ClaimListing.ascx.cs:35
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +67
   System.Web.UI.Control.LoadRecursive() +164
   System.Web.UI.Control.LoadRecursive() +164
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4497


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