Server Error in '/' Application.

Sequence contains no elements

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.InvalidOperationException: Sequence contains no elements

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:


[InvalidOperationException: Sequence contains no elements]
   System.Linq.Enumerable.First(IEnumerable`1 source) +405
   vcommerce.dal.ProductController.GetByPath(String Path, Int32 PriceGroupID) +552
   vcommerce.core.UserControls.vcommerceProductDetails.Page_Init(Object sender, EventArgs e) +578
   System.Web.UI.Control.OnInit(EventArgs e) +106
   System.Web.UI.Control.InitRecursive(Control namingContainer) +166
   System.Web.UI.Control.AddedControl(Control control, Int32 index) +214
   umbraco.presentation.templateControls.Macro.CreateChildControls() +2309
   System.Web.UI.Control.EnsureChildControls() +106
   umbraco.presentation.templateControls.Macro.OnInit(EventArgs e) +44
   System.Web.UI.Control.InitRecursive(Control namingContainer) +166
   System.Web.UI.Control.AddedControl(Control control, Int32 index) +214
   umbraco.presentation.templateControls.<>c__DisplayClass6.<ParseMacros>b__2(String macroAlias, Dictionary`2 attributes) +370
   Umbraco.Core.Macros.MacroTagParser.ParseMacros(String text, Action`1 textFoundCallback, Action`2 macroFoundCallback) +806
   umbraco.presentation.templateControls.ItemRenderer.ParseMacros(Item item) +250
   umbraco.presentation.templateControls.ItemRenderer.Load(Item item) +150
   umbraco.presentation.templateControls.Item.OnLoad(EventArgs e) +32
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Control.LoadRecursive() +162
   System.Web.UI.Control.LoadRecursive() +162
   System.Web.UI.Control.LoadRecursive() +162
   System.Web.UI.Control.LoadRecursive() +162
   System.Web.UI.Control.LoadRecursive() +162
   System.Web.UI.Control.LoadRecursive() +162
   System.Web.UI.Control.LoadRecursive() +162
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


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