Server Error in '/' Application.

ImagePath

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: ImagePath

Source Error:


Line 123:        int ProductId = Utils.GetDefautInteger(Request.QueryString[Constants.QUERY_PRODUCT_ID]);
Line 124:        string ProductName = "";
Line 125:        IList lstImage = Products.getAllImages(ProductId, ref ProductName);
Line 126:        
Line 127:        count = lstImage.Count;

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

Stack Trace:


[IndexOutOfRangeException: ImagePath]
   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.getAllImages(Int32 ProductId, String& ProductName) in E:\DTC\Projects\WebApplication\thegioiphimhd\Version2\Source\Client\DiamonSoft.SqlDataProvider\Products\Products.cs:480
   DiamonSoft.Components.Methods.Products.getAllImages(Int32 ProductId, String& ProductName) +56
   Controls_Products_ProductDetails.bindImages() in c:\Sites\thegioiphimhd.com\httpdocs\Controls\Products\ProductDetails.ascx.cs:125
   Products_product_details.Page_Load(Object sender, EventArgs e) in c:\Sites\thegioiphimhd.com\httpdocs\products\product_details.aspx.cs:9
   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