I'm trying to add a custom price for some country shipment, but it's falls
adding screenshots:
checked in Log:
An unhandled exception occurred System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.InvalidOperationException: Sequence contains more than one matching element at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable1 source, Func2 predicate) at TeaCommerce.Umbraco.Application.Views.ShippingMethods.EditShippingMethod.LvCurrenciesItemDataBound(Object sender, ListViewItemEventArgs e) at System.Web.UI.WebControls.ListView.OnItemDataBound(ListViewItemEventArgs e) at System.Web.UI.WebControls.ListView.CreateItemsWithoutGroups(ListViewPagedDataSource dataSource, Boolean dataBinding, InsertItemPosition insertPosition, ArrayList keyArray) at System.Web.UI.WebControls.ListView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) at System.Web.UI.WebControls.ListView.PerformDataBinding(IEnumerable data) at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) at System.Web.UI.WebControls.DataBoundControl.PerformSelect() at System.Web.UI.WebControls.ListView.PerformSelect() at TeaCommerce.Umbraco.Application.Views.ShippingMethods.EditShippingMethod.LvCountriesItemDataBound(Object sender, ListViewItemEventArgs e) at System.Web.UI.WebControls.ListView.OnItemDataBound(ListViewItemEventArgs e) at System.Web.UI.WebControls.ListView.CreateItemsWithoutGroups(ListViewPagedDataSource dataSource, Boolean dataBinding, InsertItemPosition insertPosition, ArrayList keyArray) at System.Web.UI.WebControls.ListView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) at System.Web.UI.WebControls.ListView.PerformDataBinding(IEnumerable data) at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) at System.Web.UI.WebControls.DataBoundControl.PerformSelect() at System.Web.UI.WebControls.ListView.PerformSelect() at TeaCommerce.Umbraco.Application.Views.ShippingMethods.EditShippingMethod.LoadCurrenciesAndCountries() at TeaCommerce.Umbraco.Application.Views.ShippingMethods.EditShippingMethod.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Does it happens for all countries or some specific countries maybe?
From the stack trace it looks like some of the elements in the list have same key, so when it lookup an element by a key it fails because it match more than one element.
Shipping Methods - custom prices per country
Hello,
I'm trying to add a custom price for some country shipment, but it's falls
adding screenshots:
checked in Log:
An unhandled exception occurred System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.InvalidOperationException: Sequence contains more than one matching element at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable
1 source, Func
2 predicate) at TeaCommerce.Umbraco.Application.Views.ShippingMethods.EditShippingMethod.LvCurrenciesItemDataBound(Object sender, ListViewItemEventArgs e) at System.Web.UI.WebControls.ListView.OnItemDataBound(ListViewItemEventArgs e) at System.Web.UI.WebControls.ListView.CreateItemsWithoutGroups(ListViewPagedDataSource dataSource, Boolean dataBinding, InsertItemPosition insertPosition, ArrayList keyArray) at System.Web.UI.WebControls.ListView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) at System.Web.UI.WebControls.ListView.PerformDataBinding(IEnumerable data) at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) at System.Web.UI.WebControls.DataBoundControl.PerformSelect() at System.Web.UI.WebControls.ListView.PerformSelect() at TeaCommerce.Umbraco.Application.Views.ShippingMethods.EditShippingMethod.LvCountriesItemDataBound(Object sender, ListViewItemEventArgs e) at System.Web.UI.WebControls.ListView.OnItemDataBound(ListViewItemEventArgs e) at System.Web.UI.WebControls.ListView.CreateItemsWithoutGroups(ListViewPagedDataSource dataSource, Boolean dataBinding, InsertItemPosition insertPosition, ArrayList keyArray) at System.Web.UI.WebControls.ListView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) at System.Web.UI.WebControls.ListView.PerformDataBinding(IEnumerable data) at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) at System.Web.UI.WebControls.DataBoundControl.PerformSelect() at System.Web.UI.WebControls.ListView.PerformSelect() at TeaCommerce.Umbraco.Application.Views.ShippingMethods.EditShippingMethod.LoadCurrenciesAndCountries() at TeaCommerce.Umbraco.Application.Views.ShippingMethods.EditShippingMethod.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)teaCommerce version: 3.0.1
umbraco version: 6.2.4
Thanks.
Hi Oleg
Does it happens for all countries or some specific countries maybe?
From the stack trace it looks like some of the elements in the list have same key, so when it lookup an element by a key it fails because it match more than one element.
/Bjarne
Hi Oleg
I think this was a bug in Tea Commerce. Please update.
http://documentation.teacommerce.net/revision-history/
Kind regards
Anders
is working on a reply...