Microsoft.Practices.Prism Error

In the version 5.7.12 there are crashed that are happening often enough to warrant concern. I am not sure exactly whats causing them.

These errors are way more frequent than they are actually logged.

log.zip (4.7 KB)

10/2/2024 8:11 AM
-----------------------------
[General Info]

Application: SambaPOS
Version:     5.7.12
Region:      en
DB:          SQ
Machine:     DELISPC
User:        DELIS 360
Date:        10/2/2024
Time:        1:11 AM

User Explanation:

DELIS 360 said ""
-----------------------------

[Exception Info 1]

Top-level Exception
Type:        Microsoft.Practices.Prism.Regions.ViewRegistrationException
Message:     An exception has occurred while trying to add a view to region 'MainRegion'. 
    - The most likely causing exception was was: 'System.InvalidOperationException: View already exists in region.
   at Microsoft.Practices.Prism.Regions.Region.InnerAdd(Object view, String viewName, IRegionManager scopedRegionManager)
   at Microsoft.Practices.Prism.Regions.Region.Add(Object view, String viewName, Boolean createRegionManagerScope)
   at Microsoft.Practices.Prism.Regions.Region.Add(Object view)
   at Microsoft.Practices.Prism.Regions.Behaviors.AutoPopulateRegionBehavior.AddViewIntoRegion(Object viewToAdd)
   at Microsoft.Practices.Prism.Regions.Behaviors.AutoPopulateRegionBehavior.OnViewRegistered(Object sender, ViewRegisteredEventArgs e)'.
    But also check the InnerExceptions for more detail or call .GetRootException(). 
Source:      Microsoft.Practices.Prism
Stack Trace: at Microsoft.Practices.Prism.Regions.RegionViewRegistry.OnContentRegistered(ViewRegisteredEventArgs e)
   at Microsoft.Practices.Prism.Regions.RegionViewRegistry.RegisterViewWithRegion(String regionName, Func`1 getContentDelegate)
   at Microsoft.Practices.Prism.Regions.RegionViewRegistry.RegisterViewWithRegion(String regionName, Type viewType)
   at Microsoft.Practices.Prism.Regions.RegionManagerExtensions.RegisterViewWithRegion(IRegionManager regionManager, String regionName, Type viewType)
   at Samba.Presentation.ClientLibrary.Modules.TimeClockModule.TimeClockModule.OnInitialization()
   at Samba.Presentation.Common.StagedSequenceService`1.ProcessSequence(ILogService logService)

Inner Exception 1
Type:        System.InvalidOperationException
Message:     View already exists in region.
Source:      Microsoft.Practices.Prism
Stack Trace: at Microsoft.Practices.Prism.Regions.Region.InnerAdd(Object view, String viewName, IRegionManager scopedRegionManager)
   at Microsoft.Practices.Prism.Regions.Region.Add(Object view, String viewName, Boolean createRegionManagerScope)
   at Microsoft.Practices.Prism.Regions.Region.Add(Object view)
   at Microsoft.Practices.Prism.Regions.Behaviors.AutoPopulateRegionBehavior.AddViewIntoRegion(Object viewToAdd)
   at Microsoft.Practices.Prism.Regions.Behaviors.AutoPopulateRegionBehavior.OnViewRegistered(Object sender, ViewRegisteredEventArgs e)

-----------------------------

[Assembly Info]

mscorlib, Version=4.0.0.0
PresentationFramework, Version=4.0.0.0
PresentationCore, Version=4.0.0.0
System, Version=4.0.0.0
WindowsBase, Version=4.0.0.0
Samba.Services, Version=5.7.8962.19621
System.ComponentModel.Composition, Version=4.0.0.0
System.Configuration, Version=4.0.0.0
DevExpress.Xpf.Core.v17.2, Version=17.2.13.0
System.Xaml, Version=4.0.0.0
Microsoft.Practices.Prism.MefExtensions, Version=4.0.0.0
Samba.Presentation.Services, Version=5.7.8962.19623
Samba.Presentation.Common, Version=5.7.8962.19625
System.Drawing, Version=4.0.0.0
Samba.Domain, Version=5.7.8962.19620
Microsoft.Practices.Prism, Version=4.0.0.0
Samba.Infrastructure, Version=5.7.8962.19617
System.Core, Version=4.0.0.0
DevExpress.Data.v17.2, Version=17.2.13.0
Microsoft.Practices.ServiceLocation, Version=1.0.0.0
Samba.Localization, Version=5.3.8962.19618
Samba.Persistance, Version=5.7.8962.19620
FastButton, Version=1.0.0.0

-----------------------------

[System Info]

Operating System
-Microsoft Windows 11 Pro
--CodeSet = 1252
--CSDVersion = 
--CurrentTimeZone = 420
--FreePhysicalMemory = 3627236
--OSArchitecture = 64-bit
--OSLanguage = 1033
--ServicePackMajorVersion = 0
--ServicePackMinorVersion = 0
--Version = 10.0.22631

Machine
-DELISPC
--Manufacturer = Default string
--Model = Default string
--TotalPhysicalMemory = 16538619904
--UserName = DELISPC\DELIS 360