Server Error in '/' Application.

System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.AggregateException: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> System.NullReferenceException: Object reference not set to an instance of an object.
  at SE_ED.Promotion.DiscountByUnit.<>c__DisplayClass14_0.<GetAppropriatePromotion>b__0(DiscountByUnit p)
  at System.Linq.EnumerableSorter`2.ComputeKeys(TElement[] elements, Int32 count)
  at System.Linq.EnumerableSorter`1.Sort(TElement[] elements, Int32 count)
  at System.Linq.OrderedEnumerable`1.<GetEnumerator>d__1.MoveNext()
  at SE_ED.Promotion.DiscountByUnit.GetAppropriatePromotion(CartItemParameter param, DateTime date, PromotionStatus status, AppEnum application, String branchCode)
  at SE_ED.Promotion.DiscountByUnit.CurrentPromotion(CartItemParameter param, AppEnum application, String branchCode)
  at SE_ED.Promotion.Promotions.<>c__DisplayClass18_0.<GetDiscount>b__25()
  at System.Threading.Tasks.Parallel.<>c__DisplayClass4_0.<Invoke>b__0()
  --- End of inner exception stack trace ---
  at System.Threading.Tasks.Parallel.Invoke(ParallelOptions parallelOptions, Action[] actions)
  at SE_ED.Promotion.Promotions.GetDiscount(CartItemParameter param, Decimal unitPrice, Int32 qty, AppEnum application, String branchCode, DiscountCard cardType, String discountCode)
  at SE_ED.Promotion.Promotions.GetDiscount(CartItemParameter param, Decimal unitPrice, Int32 qty, Boolean& wrapCover, AppEnum application, String branchCode, DiscountCard cardType, String discountCode, OnPromotions& onPromotion)
  at SE_ED.Promotion.Promotions.CurrentDiscount(CartItemParameter param, Decimal unitPrice, Int32 qty, Boolean& wrapCover, AppEnum application, String branchCode, DiscountCard cardType, String discountCode, OnPromotions& onPromotion)
  at SE_ED.ECommerce.Product.UnitDiscount(Decimal unitPrice, CartItemParameter param, DiscountCard card, String discountCode) in D:\Visual Studio 2015\Projects\SE-ED-COM-TEAM\SE-EDClassLibrary\SE-ED.ECommerce\Products\Product.cs:line 7492
  at SE_ED.ECommerce.Product.UnitDiscount(ProductDetail product, DiscountCard card, String discountCode) in D:\Visual Studio 2015\Projects\SE-ED-COM-TEAM\SE-EDClassLibrary\SE-ED.ECommerce\Products\Product.cs:line 7045
  at SE_ED.ECommerce.Product.UnitDiscount(ProductItem productItem, DiscountCard card, String discountCode) in D:\Visual Studio 2015\Projects\SE-ED-COM-TEAM\SE-EDClassLibrary\SE-ED.ECommerce\Products\Product.cs:line 6981
  at SE_ED.ECommerce.ProductItem.UnitDiscount(DiscountCard card, String discountCode) in D:\Visual Studio 2015\Projects\SE-ED-COM-TEAM\SE-EDClassLibrary\SE-ED.ECommerce\Products\ProductItem.cs:line 112
  at SE_ED.ECommerce.ProductItem.UnitDiscount() in D:\Visual Studio 2015\Projects\SE-ED-COM-TEAM\SE-EDClassLibrary\SE-ED.ECommerce\Products\ProductItem.cs:line 99
  at SE_ED.ECommerce.ASMX.ServiceImplementation._2024_01_01.TranslateECommerce.<>c__DisplayClass1_0.<TranslateProductDetailToItemDetail>b__0()
  at System.Threading.Tasks.Parallel.<>c__DisplayClass4_0.<Invoke>b__0()
  --- End of inner exception stack trace ---
  at System.Threading.Tasks.Parallel.Invoke(ParallelOptions parallelOptions, Action[] actions)
  at SE_ED.ECommerce.ASMX.ServiceImplementation._2024_01_01.TranslateECommerce.TranslateProductDetailToItemDetail(ProductDetail from)
  at SE_ED.ECommerce.ASMX.ServiceImplementation._2024_01_01.ECommerceServiceBase.ItemLookup(String barcode)
  --- End of inner exception stack trace ---

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.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.AggregateException: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> System.NullReferenceException: Object reference not set to an instance of an object.
  at SE_ED.Promotion.DiscountByUnit.<>c__DisplayClass14_0.<GetAppropriatePromotion>b__0(DiscountByUnit p)
  at System.Linq.EnumerableSorter`2.ComputeKeys(TElement[] elements, Int32 count)
  at System.Linq.EnumerableSorter`1.Sort(TElement[] elements, Int32 count)
  at System.Linq.OrderedEnumerable`1.<GetEnumerator>d__1.MoveNext()
  at SE_ED.Promotion.DiscountByUnit.GetAppropriatePromotion(CartItemParameter param, DateTime date, PromotionStatus status, AppEnum application, String branchCode)
  at SE_ED.Promotion.DiscountByUnit.CurrentPromotion(CartItemParameter param, AppEnum application, String branchCode)
  at SE_ED.Promotion.Promotions.<>c__DisplayClass18_0.<GetDiscount>b__25()
  at System.Threading.Tasks.Parallel.<>c__DisplayClass4_0.<Invoke>b__0()
  --- End of inner exception stack trace ---
  at System.Threading.Tasks.Parallel.Invoke(ParallelOptions parallelOptions, Action[] actions)
  at SE_ED.Promotion.Promotions.GetDiscount(CartItemParameter param, Decimal unitPrice, Int32 qty, AppEnum application, String branchCode, DiscountCard cardType, String discountCode)
  at SE_ED.Promotion.Promotions.GetDiscount(CartItemParameter param, Decimal unitPrice, Int32 qty, Boolean& wrapCover, AppEnum application, String branchCode, DiscountCard cardType, String discountCode, OnPromotions& onPromotion)
  at SE_ED.Promotion.Promotions.CurrentDiscount(CartItemParameter param, Decimal unitPrice, Int32 qty, Boolean& wrapCover, AppEnum application, String branchCode, DiscountCard cardType, String discountCode, OnPromotions& onPromotion)
  at SE_ED.ECommerce.Product.UnitDiscount(Decimal unitPrice, CartItemParameter param, DiscountCard card, String discountCode) in D:\Visual Studio 2015\Projects\SE-ED-COM-TEAM\SE-EDClassLibrary\SE-ED.ECommerce\Products\Product.cs:line 7492
  at SE_ED.ECommerce.Product.UnitDiscount(ProductDetail product, DiscountCard card, String discountCode) in D:\Visual Studio 2015\Projects\SE-ED-COM-TEAM\SE-EDClassLibrary\SE-ED.ECommerce\Products\Product.cs:line 7045
  at SE_ED.ECommerce.Product.UnitDiscount(ProductItem productItem, DiscountCard card, String discountCode) in D:\Visual Studio 2015\Projects\SE-ED-COM-TEAM\SE-EDClassLibrary\SE-ED.ECommerce\Products\Product.cs:line 6981
  at SE_ED.ECommerce.ProductItem.UnitDiscount(DiscountCard card, String discountCode) in D:\Visual Studio 2015\Projects\SE-ED-COM-TEAM\SE-EDClassLibrary\SE-ED.ECommerce\Products\ProductItem.cs:line 112
  at SE_ED.ECommerce.ProductItem.UnitDiscount() in D:\Visual Studio 2015\Projects\SE-ED-COM-TEAM\SE-EDClassLibrary\SE-ED.ECommerce\Products\ProductItem.cs:line 99
  at SE_ED.ECommerce.ASMX.ServiceImplementation._2024_01_01.TranslateECommerce.<>c__DisplayClass1_0.<TranslateProductDetailToItemDetail>b__0()
  at System.Threading.Tasks.Parallel.<>c__DisplayClass4_0.<Invoke>b__0()
  --- End of inner exception stack trace ---
  at System.Threading.Tasks.Parallel.Invoke(ParallelOptions parallelOptions, Action[] actions)
  at SE_ED.ECommerce.ASMX.ServiceImplementation._2024_01_01.TranslateECommerce.TranslateProductDetailToItemDetail(ProductDetail from)
  at SE_ED.ECommerce.ASMX.ServiceImplementation._2024_01_01.ECommerceServiceBase.ItemLookup(String barcode)
  --- End of inner exception stack trace ---

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[SoapException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.AggregateException: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at SE_ED.Promotion.DiscountByUnit.<>c__DisplayClass14_0.<GetAppropriatePromotion>b__0(DiscountByUnit p)
   at System.Linq.EnumerableSorter`2.ComputeKeys(TElement[] elements, Int32 count)
   at System.Linq.EnumerableSorter`1.Sort(TElement[] elements, Int32 count)
   at System.Linq.OrderedEnumerable`1.<GetEnumerator>d__1.MoveNext()
   at SE_ED.Promotion.DiscountByUnit.GetAppropriatePromotion(CartItemParameter param, DateTime date, PromotionStatus status, AppEnum application, String branchCode)
   at SE_ED.Promotion.DiscountByUnit.CurrentPromotion(CartItemParameter param, AppEnum application, String branchCode)
   at SE_ED.Promotion.Promotions.<>c__DisplayClass18_0.<GetDiscount>b__25()
   at System.Threading.Tasks.Parallel.<>c__DisplayClass4_0.<Invoke>b__0()
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Parallel.Invoke(ParallelOptions parallelOptions, Action[] actions)
   at SE_ED.Promotion.Promotions.GetDiscount(CartItemParameter param, Decimal unitPrice, Int32 qty, AppEnum application, String branchCode, DiscountCard cardType, String discountCode)
   at SE_ED.Promotion.Promotions.GetDiscount(CartItemParameter param, Decimal unitPrice, Int32 qty, Boolean& wrapCover, AppEnum application, String branchCode, DiscountCard cardType, String discountCode, OnPromotions& onPromotion)
   at SE_ED.Promotion.Promotions.CurrentDiscount(CartItemParameter param, Decimal unitPrice, Int32 qty, Boolean& wrapCover, AppEnum application, String branchCode, DiscountCard cardType, String discountCode, OnPromotions& onPromotion)
   at SE_ED.ECommerce.Product.UnitDiscount(Decimal unitPrice, CartItemParameter param, DiscountCard card, String discountCode) in D:\Visual Studio 2015\Projects\SE-ED-COM-TEAM\SE-EDClassLibrary\SE-ED.ECommerce\Products\Product.cs:line 7492
   at SE_ED.ECommerce.Product.UnitDiscount(ProductDetail product, DiscountCard card, String discountCode) in D:\Visual Studio 2015\Projects\SE-ED-COM-TEAM\SE-EDClassLibrary\SE-ED.ECommerce\Products\Product.cs:line 7045
   at SE_ED.ECommerce.Product.UnitDiscount(ProductItem productItem, DiscountCard card, String discountCode) in D:\Visual Studio 2015\Projects\SE-ED-COM-TEAM\SE-EDClassLibrary\SE-ED.ECommerce\Products\Product.cs:line 6981
   at SE_ED.ECommerce.ProductItem.UnitDiscount(DiscountCard card, String discountCode) in D:\Visual Studio 2015\Projects\SE-ED-COM-TEAM\SE-EDClassLibrary\SE-ED.ECommerce\Products\ProductItem.cs:line 112
   at SE_ED.ECommerce.ProductItem.UnitDiscount() in D:\Visual Studio 2015\Projects\SE-ED-COM-TEAM\SE-EDClassLibrary\SE-ED.ECommerce\Products\ProductItem.cs:line 99
   at SE_ED.ECommerce.ASMX.ServiceImplementation._2024_01_01.TranslateECommerce.<>c__DisplayClass1_0.<TranslateProductDetailToItemDetail>b__0()
   at System.Threading.Tasks.Parallel.<>c__DisplayClass4_0.<Invoke>b__0()
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Parallel.Invoke(ParallelOptions parallelOptions, Action[] actions)
   at SE_ED.ECommerce.ASMX.ServiceImplementation._2024_01_01.TranslateECommerce.TranslateProductDetailToItemDetail(ProductDetail from)
   at SE_ED.ECommerce.ASMX.ServiceImplementation._2024_01_01.ECommerceServiceBase.ItemLookup(String barcode)
   --- End of inner exception stack trace ---]
   System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +237812
   System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +273
   SE_ED.MobileECommerce.SE_EDWSECommerceService.ECommerceService.ItemLookup(String barcode) +135
   SE_ED.MobileECommerce.SE_EDWSMECommerceProvider.ItemLookup(String barcode) +351
   SE_ED.MobileECommerce.MECommerce.ItemLookup(String barcode) +265
   SE_ED.MobileECommerce.ItemResponse.get_ThumbnailUrl2() +104
   Templates_SE_ED_2015_Controls_ZoneTabCardDesignControl.genBookItem(ItemResponse item, String cssClass, String pos, Int32 imgW, Int32 imgH) +747
   Templates_SE_ED_2015_Controls_ZoneTabCardDesignControl.BindData(ItemResponses itemList) +681
   Templates_SE_ED_2015_Controls_ZoneProductTab.IBNewProductTab_Click(Object sender, EventArgs e) +753
   Templates_SE_ED_2015_Controls_ZoneProductTab.Page_Load(Object sender, EventArgs e) +94
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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