Crash when login as a new user

Hi. Updated to 5.3.4. and after that there was a problem with new users. The new user cannot log into the system, the system crashes. How to fix? The error does not give any text to copy. Can new fields affect the error? newfields

What was the crash. Show us the report please. You should have something in documents/sambapos and the log.txt

The crash happened on save?

If I was to guess I would think it’s the name


[General Info]

Application: SambaPOS
Version: 5.3.4
Region: en
DB: SQ
Machine: GEDEON
User: Administrator
Date: 4/11/2021
Time: 5:42 PM

User Explanation:

Administrator said “”

[Exception Info 1]

Top-level Exception
Type: System.Reflection.TargetInvocationException
Message: Exception has been thrown by the target of an invocation.
Source: mscorlib
Stack Trace: at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Inner Exception 1
Type: System.InvalidOperationException
Message: Sequence contains more than one matching element
Source: System.Core
Stack Trace: at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable1 source, Func2 predicate)
at Samba.Services.Implementations.UserModule.UserServiceBase.IsUserPermittedFor(User user, String permissionName) in C:\Users\Vehbi\Documents\Source\Repos\sambapos-v5-pro\Samba.Services\Implementations\UserModule\UserServiceBase.cs:line 42
at Samba.Presentation.Services.Implementations.UserModule.UserService.IsUserPermittedFor(String permissionName)
at Samba.Presentation.ClientLibrary.Modules.NavigationModule.VisibleNavigationModule.ActivateNavigation() in C:\Users\Vehbi\Documents\Source\Repos\sambapos-v5-pro\Samba.Presentation.ClientLibrary\Modules\NavigationModule\VisibleNavigationModule.cs:line 102
at Samba.Presentation.ClientLibrary.Modules.NavigationModule.VisibleNavigationModule.<.ctor>b__8_0(EventParameters1 x) in C:\Users\Vehbi\Documents\Source\Repos\sambapos-v5-pro\Samba.Presentation.ClientLibrary\Modules\NavigationModule\VisibleNavigationModule.cs:line 51 at Microsoft.Practices.Prism.Events.EventSubscription1.InvokeAction(Action1 action, TPayload argument) at Microsoft.Practices.Prism.Events.EventSubscription1.<>c__DisplayClass2.b__0(Object[] arguments)
at Microsoft.Practices.Prism.Events.EventBase.InternalPublish(Object[] arguments)
at Microsoft.Practices.Prism.Events.CompositePresentationEvent`1.Publish(TPayload payload)
at 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.7758.18495
Samba.Domain, Version=5.3.7758.18494
Samba.Infrastructure.Data, Version=5.3.7758.18494
System.ComponentModel.Composition, Version=4.0.0.0
Samba.Presentation.Services, Version=5.3.7758.18497
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.7758.18490
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.7758.18494
Stateless, Version=1.0.0.0
PropertyTools, Version=2012.4.14.1
Samba.Localization, Version=5.3.7758.18491
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 Server Standard
–CodeSet = 1252
–CSDVersion =
–CurrentTimeZone = 240
–FreePhysicalMemory = 2189320
–OSArchitecture = 64-bit
–OSLanguage = 1033
–ServicePackMajorVersion = 0
–ServicePackMinorVersion = 0
–Version = 10.0.18363

Machine
-GEDEON
–Manufacturer = HP
–Model = ProLiant MicroServer Gen8
–TotalPhysicalMemory = 4124557312
–UserName = GEDEON\Administrator


Looks like you may have two of same user.

Run this report and see if you have any duplicate users:

[Duplicate Users:2,2]
>>Count|Name
{REPORT SQL DETAILS:SELECT COUNT(*) AS Count, Name FROM dbo.Users GROUP BY Name HAVING COUNT(Name) > 1:F.Count,F.Name}

I get a different stack trace when I create a duplicate user and login. It looks like your crash happened when trying to confirm admin pin.

1 Like