My development Sambapos system has been working fine for several years but I am now getting an error on startup as follows
I can still access the database with SSMS so I don’t think this is the issue. I have completely uninstalled and reinstalled SambaPOS but the issue is still there and I am unable to start the application.
The log is shown below and I think is saying this is a .NET error rather than anything to do with SambaPOS however, I am not sure if that is the case or what to do next.
[Exception Info 1]
Top-level Exception
Type: System.ComponentModel.Composition.CompositionException
Message: The composition produced a single composition error. The root cause is provided below. Review the CompositionException.Errors property for more detailed information.
- Cannot bind to the target method because its signature or security transparency is not compatible with that of the delegate type.
Resulting in: The type initializer for ‘DevExpress.Xpf.Utils.Themes.ThemeKeyExtensionGeneric’ threw an exception.
Resulting in: Set property ‘System.Windows.Controls.ContentControl.Content’ threw an exception.
Resulting in: An exception occurred while trying to create an instance of type ‘Samba.Presentation.Shell’.
Resulting in: Cannot activate part ‘Samba.Presentation.Shell’.
Element: Samba.Presentation.Shell → Samba.Presentation.Shell → DirectoryCatalog (Path=“C:\Program Files (x86)\SambaPOS5”)
Resulting in: Cannot get export ‘Samba.Presentation.Shell (ContractName=“Samba.Presentation.Shell”)’ from part ‘Samba.Presentation.Shell’.
Element: Samba.Presentation.Shell (ContractName=“Samba.Presentation.Shell”) → Samba.Presentation.Shell → DirectoryCatalog (Path=“C:\Program Files (x86)\SambaPOS5”)
Source: System.ComponentModel.Composition
Stack Trace: at System.ComponentModel.Composition.Hosting.CompositionServices.GetExportedValueFromComposedPart(ImportEngine engine, ComposablePart part, ExportDefinition definition)
at System.ComponentModel.Composition.Hosting.CatalogExportProvider.GetExportedValue(CatalogPart part, ExportDefinition export, Boolean isSharedPart)
at System.ComponentModel.Composition.Hosting.CatalogExportProvider.CatalogExport.GetExportedValueCore()
at System.ComponentModel.Composition.Primitives.Export.get_Value()
at System.ComponentModel.Composition.ExportServices.GetCastedExportedValue[T](Export export)
at System.ComponentModel.Composition.Hosting.ExportProvider.GetExportedValueCore[T](String contractName, ImportCardinality cardinality)
at Samba.Presentation.Bootstrapper.CreateShell()
at Microsoft.Practices.Prism.MefExtensions.MefBootstrapper.Run(Boolean runWithDefaultConfiguration)
at Samba.Presentation.App.RunInReleaseMode()
[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 11 Home Single Language
–CodeSet = 1252
–CSDVersion =
–CurrentTimeZone = 420
–FreePhysicalMemory = 15615132
–OSArchitecture = 64-bit
–OSLanguage = 1033
–ServicePackMajorVersion = 0
–ServicePackMinorVersion = 0
–Version = 10.0.22598