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 267:            '------ Page Title ----
Line 268:            'Dim pT As HtmlTitle = Master.FindControl("pTitle")
Line 269:            Page.Title = "Minus70to20 " & adI.Title & " " & adI.DCategory.Name & ", " & adI.ContactName & "  Business Listing, Contact, Address, Phone, Mobile, Email, Website"
Line 270:            Dim metDes As String = String.Empty
Line 271:            '-- Description -- 

Source File: F:\WEBSITES\V2WEB\indianref4\indianrefrigerationmart.com\www\Show-Advertisement.aspx.vb    Line: 269

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Show_Advertisement.LoadAdvertisementInfoxID(Int32 AdvID) in F:\WEBSITES\V2WEB\indianref4\indianrefrigerationmart.com\www\Show-Advertisement.aspx.vb:269
   Show_Advertisement.Page_Load(Object sender, EventArgs e) in F:\WEBSITES\V2WEB\indianref4\indianrefrigerationmart.com\www\Show-Advertisement.aspx.vb:24
   System.Web.UI.Control.OnLoad(EventArgs e) +131
   System.Web.UI.Control.LoadRecursive() +65
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2427


Version Information: Microsoft .NET Framework Version:2.0.50727.8974; ASP.NET Version:2.0.50727.8974