Merhaba arkadaslar,
Gun sonu almaya calistigimda bir hatayla karsilasildi, program calismaya devam edicek, teknik destege danisin "Sequence contains more than one matching element" gibi bir hata aliyorum, sorun nedir acaba? Simdiden tesekkurler.
Merhaba arkadaslar,
Gun sonu almaya calistigimda bir hatayla karsilasildi, program calismaya devam edicek, teknik destege danisin "Sequence contains more than one matching element" gibi bir hata aliyorum, sorun nedir acaba? Simdiden tesekkurler.
3 cevap
Log dosyamda asagidaki gibidir,
[Exception Info 1]
Top-level Exception
Type: System.InvalidOperationException
Message: Sequence contains more than one matching element
Source: System.Core
Stack Trace: at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
at Samba.Domain.Models.Inventory.WarehouseConsumption.UpdateFinalCost(Recipe recipe)
at System.Collections.Generic.List`1.ForEach(Action`1 action)
at Samba.Domain.Models.Inventory.WarehouseConsumption.UpdateFinalCost(IEnumerable`1 recipes)
at Samba.Domain.Models.Inventory.PeriodicConsumption.UpdateFinalCost(IList`1 recipes, Int32 warehouseId)
at Samba.Presentation.Services.Implementations.InventoryModule.InventoryService.CalculateCost(PeriodicConsumption pc, WorkPeriod workPeriod)
at Samba.Presentation.Services.Implementations.InventoryModule.InventoryService.CreateNewPeriodicConsumption(Boolean filter)
at Samba.Presentation.Services.Implementations.InventoryModule.InventoryService.GetCurrentPeriodicConsumption()
at Samba.Presentation.Services.Implementations.InventoryModule.InventoryService.DoWorkPeriodEnd()
at Samba.Presentation.Services.Implementations.InventoryModule.InventoryWorkperiodProcessor.ProcessWorkPeriodEnd(WorkPeriod workPeriod)
at Samba.Presentation.Services.Implementations.WorkPeriodModule.WorkPeriodService.StopWorkPeriod(String description)
-----------------------------
[Assembly Info]
PresentationFramework, Version=4.0.0.0
System.Xaml, Version=4.0.0.0
Microsoft.Practices.Prism.MefExtensions, Version=4.0.0.0
mscorlib, Version=4.0.0.0
System, Version=4.0.0.0
WindowsBase, Version=4.0.0.0
Samba.Services, Version=1.0.0.0
Samba.Presentation.Services, Version=1.0.0.0
Samba.Domain, Version=1.0.0.0
PresentationCore, Version=4.0.0.0
Microsoft.Practices.ServiceLocation, Version=1.0.0.0
Samba.Infrastructure, Version=1.0.0.0
Microsoft.Practices.Prism, Version=4.0.0.0
Samba.Presentation.Common, Version=1.0.0.0
System.ComponentModel.Composition, Version=4.0.0.0
Samba.Localization, Version=1.0.0.0
Sorunu daha onceki cevaplari inceleyerek cozdum. Recetede olan bi urunun ismi degistirilmis, gun sonu yaparken stoktan o urunu dusmek istiyor sistem fakat isim degisikligi oldugu icin o urunu bulamiyoru sanirim. Ben sorunu ilgili receteleri silerek halletim, ayni sorunu yasayacak arkadaslarin bilgisine..
Çözümü bulmuş olmanız çok güzel.
Kolay gelsin, iyi çalışmalar....