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 163:            }
Line 164:
Line 165:            if (propListing.typeOfListing.ToLower() == "re")
Line 166:            {
Line 167:                selectString = "ApprxAge,L_Class_N,L_AskingPrice,L_Address,L_AddressNumber,L_AddressStreet,L_City,L_State,L_Zip,Bedrooms,FullBaths,HalfBaths,L_SquareFeet,L_Area_N,LM_Char10_1,Subdivision,LM_Char10_8,ElemSchl,MidSchl,HighSchl,LotSize,VT_VTourURL,LM_Int1_3,LM_Int1_4,L_Remarks,LM_Int1_7,LM_Int1_8,LM_Int1_11,LM_Int1_12,LM_Int1_15,LM_Int1_16,LM_Int1_19,LM_Int1_20,LM_Int1_1,LM_Int1_2,LM_Int1_5,LM_Int1_6,LM_Int1_9,LM_Int1_10,LM_Int1_13,LM_Int1_14,LFD_EXTERIORFEATURES_3_N,LFD_INTERIOR_5_N,Latitude,Longitude";

Source File: c:\inetpub\vhosts\joyceklein.com\httpdocs\Listing.aspx.cs    Line: 165

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Listing.GetListingInfo() in c:\inetpub\vhosts\joyceklein.com\httpdocs\Listing.aspx.cs:165
   Listing.Page_Load(Object sender, EventArgs e) in c:\inetpub\vhosts\joyceklein.com\httpdocs\Listing.aspx.cs:69
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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