Server Error in '/' Application.

No product was found for the specified ID.

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.ApplicationException: No product was found for the specified ID.

Source Error:


Line 47: 
Line 48:             // display all article's data on the page
Line 49:             this.Title = string.Format(this.Title, product.Title);
Line 50:             lblTitle.Text = product.Title;
Line 51:             lblRating.Text = string.Format(lblRating.Text, product.Votes);

Source File: d:\WebData\barameegroup.com\ShowProduct.aspx.cs    Line: 49

Stack Trace:


[ApplicationException: No product was found for the specified ID.]
   MB.TheBeerHouse.UI.ShowProduct.Page_Load(Object sender, EventArgs e) in d:\WebData\barameegroup.com\ShowProduct.aspx.cs:49
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42
   System.Web.UI.Control.OnLoad(EventArgs e) +132
   MB.TheBeerHouse.UI.BasePage.OnLoad(EventArgs e) in d:\WebData\barameegroup.com\App_Code\BasePage.cs:62
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428


Version Information: Microsoft .NET Framework Version:2.0.50727.8964; ASP.NET Version:2.0.50727.8962