Object reference not set to an instance of an object.

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 32: 		else CurrentSubBrand = new BremyBrand();
Line 33: 
Line 34: 		thisManufacturer = ManufacturerInfoProvider.GetManufacturerInfo(CurrentProduct.BrandID);
Line 35: 	}
Line 36: 

Source File: d:\Inetpub\wwwroot\LNNZ.Wines\Current\Client\Templates\Microsite\Product.aspx.cs    Line: 34

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Client_Templates_Microsite_Product.Page_Preload(Object sender, EventArgs e) in d:\Inetpub\wwwroot\LNNZ.Wines\Current\Client\Templates\Microsite\Product.aspx.cs:34
   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.Page.OnPreLoad(EventArgs e) +118
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2099


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