V5 açılmıyor hata veriyor

Merhaba sambapos v5 kullanıyoruz ama bir anda ana makinadaki pc bu şekilde hata vermeye başladı veritabanı yedeğini alıp format sonrası tekrar kurduk aynı hata veriyor ama yeni bir veritabanı oluşturduğumuzda sorunsuz çalışıyor sorun ne olabilir ?

1 adet client bilgisayarı var bunda sorunsuz çalışıyor ama ana makinada çalışmıyor.


[General Info]

Application: SambaPOS
Version: 5.3.6
Region: tr
DB: SQ
Machine: DESKTOP-JFE28UV
User: pc
Date: 16.11.2021
Time: 14:01

User Explanation:

pc said “”

[Exception Info 1]

Top-level Exception
Type: System.Reflection.TargetInvocationException
Message: Özel durum bir çağırma hedefi tarafından oluşturuldu.
Source: mscorlib
Stack Trace: konum: System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
konum: System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
konum: System.Delegate.DynamicInvokeImpl(Object[] args)
konum: System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
konum: System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Inner Exception 1
Type: System.InvalidOperationException
Message: Sıra birden çok eşleşen öğe içeriyor
Source: System.Core
Stack Trace: konum: System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable1 source, Func2 predicate)
konum: Samba.Services.Implementations.SettingsModule.SettingService.GetDefaultTerminal() C:\Users\Vehbi\Documents\Source\Repos\sambapos-v5-pro\Samba.Services\Implementations\SettingsModule\SettingService.cs içinde: satır 65
konum: Samba.Presentation.Common.Services.ApplicationState.GetCurrentTerminal()
konum: Samba.Presentation.Common.Services.ApplicationState.get_CurrentTerminal()
konum: Samba.Presentation.Common.Services.ApplicationState.GetCurrentAppState()
konum: Samba.Presentation.Services.Implementations.AutomationModule.NotificationClient.NotifyEvent(String eventName, Object dataObject)
konum: Samba.Presentation.ClientLibrary.Modules.NavigationModule.VisibleNavigationModule.<.ctor>b__8_2(EventParameters1 x) C:\Users\Vehbi\Documents\Source\Repos\sambapos-v5-pro\Samba.Presentation.ClientLibrary\Modules\NavigationModule\VisibleNavigationModule.cs içinde: satır 66 konum: Microsoft.Practices.Prism.Events.EventSubscription1.InvokeAction(Action1 action, TPayload argument) konum: Microsoft.Practices.Prism.Events.EventSubscription1.<>c__DisplayClass2.b__0(Object[] arguments)
konum: Microsoft.Practices.Prism.Events.EventBase.InternalPublish(Object[] arguments)
konum: Microsoft.Practices.Prism.Events.CompositePresentationEvent`1.Publish(TPayload payload)
konum: Samba.Presentation.Services.Common.ExtensionMethods.Publish[TEventsubject](TEventsubject eventArgs, String eventTopic, Action expectedAction)


[Assembly Info]

mscorlib, Version=4.0.0.0
System, Version=4.0.0.0
Samba.Services, Version=5.3.7816.39267
Samba.Domain, Version=5.3.7816.39266
Samba.Infrastructure.Data, Version=5.3.7816.39266
System.ComponentModel.Composition, Version=4.0.0.0
Samba.Presentation.Services, Version=5.3.7816.39270
System.Core, Version=4.0.0.0
PresentationCore, Version=4.0.0.0
WindowsBase, Version=4.0.0.0
PresentationFramework, Version=4.0.0.0
DevExpress.Xpf.LayoutControl.v17.2, Version=17.2.13.0
System.Xml, Version=4.0.0.0
DevExpress.Xpf.Grid.v17.2, Version=17.2.13.0
DevExpress.Xpf.Grid.v17.2.Core, Version=17.2.13.0
System.Xaml, Version=4.0.0.0
Samba.Infrastructure, Version=5.3.7816.39262
Microsoft.Practices.Prism, Version=4.0.0.0
System.Runtime.Serialization, Version=4.0.0.0
Microsoft.Practices.Prism.MefExtensions, Version=4.0.0.0
DevExpress.Xpf.Core.v17.2, Version=17.2.13.0
System.Windows.Forms, Version=4.0.0.0
System.Drawing, Version=4.0.0.0
Samba.Persistance, Version=5.3.7816.39267
Stateless, Version=1.0.0.0
PropertyTools, Version=2012.4.14.1
Samba.Localization, Version=5.3.7816.39263
ReachFramework, Version=4.0.0.0
EntityFramework, Version=6.0.0.0
FluentValidation, Version=3.4.0.0
NCalc, Version=1.3.8.0
Microsoft.CSharp, Version=4.0.0.0
Omu.ValueInjecter, Version=2.3.0.0
Microsoft.Practices.ServiceLocation, Version=1.0.0.0
DevExpress.Data.v17.2, Version=17.2.13.0
WindowsInput, Version=1.0.4.0


[System Info]

Operating System
-Microsoft Windows 10 Pro
–CodeSet = 1254
–CSDVersion =
–CurrentTimeZone = 180
–FreePhysicalMemory = 1476672
–OSArchitecture = 64 bit
–OSLanguage = 1055
–ServicePackMajorVersion = 0
–ServicePackMinorVersion = 0
–Version = 10.0.19042

Machine
-DESKTOP-JFE28UV
–Manufacturer = LENOVO
–Model = 2349N7G
–TotalPhysicalMemory = 6106398720
–UserName = DESKTOP-JFE28UV\pc


IT says you had more than 1 terminal designated as default terminal

1pc main machine
there is 1 terminal

we have formatted the computer, but it is still not fixed, we have installed it from scratch

It says you defined more than 1 terminal as default in settings.

Maybe try redownloading sambapos from www.sambapos.com and reinstall.

Reinstalling won’t fix this, I think.

Somehow two terminals are defined as default which the application should prevent you from doing.

Go to Settings->Reports and click “Add Report”. Then in the report body paste this:

{REPORT SQL DETAILS:SELECT Id, Name FROM dbo.Terminals WHERE IsDefault = 1:F.Id, F.Name}

Then click “Preview” and post a screenshot here.

2 Likes