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 80:                 else
Line 81:                 {
Line 82:                     loHtmlMeta.Content = loSubCategory.stCategoryName + " , " + loProduct.stProductName + " , " + Otherfunction.getWebSiteName();
Line 83:                 }
Line 84:                 this.Page.Header.Controls.Add(loHtmlMeta);

Source File: c:\inetpub\vhosts\pioneeradhesives.com\httpdocs\ProductDetails.aspx.cs    Line: 82

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ProductDetail.insertMetaDetails() in c:\inetpub\vhosts\pioneeradhesives.com\httpdocs\ProductDetails.aspx.cs:82
   ProductDetail.Page_PreRender(Object sender, EventArgs e) in c:\inetpub\vhosts\pioneeradhesives.com\httpdocs\ProductDetails.aspx.cs:49
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Control.OnPreRender(EventArgs e) +8788774
   System.Web.UI.Control.PreRenderRecursiveInternal() +80
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842


Version Information: Microsoft .NET Framework Version:2.0.50727.9061; ASP.NET Version:2.0.50727.9062