Server Error in '/' Application.

ProductName

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.IndexOutOfRangeException: ProductName

Source Error:


Line 30:         
Line 31:          
Line 32:         ObjProductDetails objProduct = Products.getById(ProductId);
Line 33: 
Line 34:         lblProductNameTitle.Text = "<a  href=/default.aspx > " + Resources.Resource.lblHome + " </a> »" + Category.getPathLevels(objProduct.CategoryId).ToLower() + " » " + objProduct.ProductName.ToLower();

Source File: c:\Sites\thegioiphimhd.com\httpdocs\Controls\Products\ProductDetails.ascx.cs    Line: 32

Stack Trace:


[IndexOutOfRangeException: ProductName]
   System.Data.ProviderBase.FieldNameLookup.GetOrdinal(String fieldName) +5056474
   System.Data.SqlClient.SqlDataReader.GetOrdinal(String name) +67
   System.Data.SqlClient.SqlDataReader.get_Item(String name) +15
   DiamonSoft.SqlDataProvider.ProductSqlDataProviders.getById(Int32 ProductId) in E:\DTC\Projects\WebApplication\thegioiphimhd\Version2\Source\Client\DiamonSoft.SqlDataProvider\Products\Products.cs:249
   DiamonSoft.Components.Methods.Products.getById(Int32 ProductId) +51
   Controls_Products_ProductDetails.BinData() in c:\Sites\thegioiphimhd.com\httpdocs\Controls\Products\ProductDetails.ascx.cs:32
   Products_product_details.Page_Load(Object sender, EventArgs e) in c:\Sites\thegioiphimhd.com\httpdocs\products\product_details.aspx.cs:8
   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.Web.UI.Control.OnLoad(EventArgs e) +91
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207


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