Error Message on StartUp: not a valid value for property "Name'


[General Info]

Application: SambaPOS
Version: 4.1.21 BETA
Region: en
DB: CE
Machine: ROBO-PC
User: Robo
Date: 3/12/2014
Time: 8:43 PM

User Explanation:
I had added a new entity called PickUp/TakeOut. Everything seemed to work fine and when I restarted SambaPOS I got this error message.

Robo said ""

[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.

  1. ‘PickUp/TakeOut_3’ is not a valid value for property ‘Name’.

Resulting in: An exception occurred while trying to create an instance of type ‘Samba.Modules.TicketModule.TicketModule’.

Resulting in: Cannot activate part ‘Samba.Modules.TicketModule.TicketModule’.
Element: Samba.Modules.TicketModule.TicketModule --> Samba.Modules.TicketModule.TicketModule --> DirectoryCatalog (Path=“C:\Program Files (x86)\SambaPOS4”)

Resulting in: Cannot get export ‘Samba.Modules.TicketModule.TicketModule (ContractName=“Microsoft.Practices.Prism.Modularity.IModule”)’ from part ‘Samba.Modules.TicketModule.TicketModule’.
Element: Samba.Modules.TicketModule.TicketModule (ContractName=“Microsoft.Practices.Prism.Modularity.IModule”) --> Samba.Modules.TicketModule.TicketModule --> DirectoryCatalog (Path=“C:\Program Files (x86)\SambaPOS4”)

Resulting in: An exception occurred while initializing module ‘TicketModule’.
- The exception message was: The composition produced a single composition error. The root cause is provided below. Review the CompositionException.Errors property for more detailed information.

  1. ‘PickUp/TakeOut_3’ is not a valid value for property ‘Name’.

Resulting in: An exception occurred while trying to create an instance of type ‘Samba.Modules.TicketModule.TicketModule’.

Resulting in: Cannot activate part ‘Samba.Modules.TicketModule.TicketModule’.
Element: Samba.Modules.TicketModule.TicketModule --> Samba.Modules.TicketModule.TicketModule --> DirectoryCatalog (Path=“C:\Program Files (x86)\SambaPOS4”)

Resulting in: Cannot get export ‘Samba.Modules.TicketModule.TicketModule (ContractName=“Microsoft.Practices.Prism.Modularity.IModule”)’ from part ‘Samba.Modules.TicketModule.TicketModule’.
Element: Samba.Modules.TicketModule.TicketModule (ContractName=“Microsoft.Practices.Prism.Modularity.IModule”) --> Samba.Modules.TicketModule.TicketModule --> DirectoryCatalog (Path=“C:\Program Files (x86)\SambaPOS4”)

Check the InnerException property of the exception for more information. If the exception occurred 
while creating an object in a DI container, you can exception.GetRootException() to help locate the 
root cause of the problem. 

Resulting in: An exception occurred while calling the ‘OnImportsSatisfied’ method on type ‘Microsoft.Practices.Prism.MefExtensions.Modularity.MefModuleManager’.

Resulting in: Cannot activate part ‘Microsoft.Practices.Prism.MefExtensions.Modularity.MefModuleManager’.
Element: Microsoft.Practices.Prism.MefExtensions.Modularity.MefModuleManager --> Microsoft.Practices.Prism.MefExtensions.Modularity.MefModuleManager --> AssemblyCatalog (Assembly=“Microsoft.Practices.Prism.MefExtensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35”)

Resulting in: Cannot get export ‘Microsoft.Practices.Prism.MefExtensions.Modularity.MefModuleManager (ContractName=“Microsoft.Practices.Prism.Modularity.IModuleManager”)’ from part ‘Microsoft.Practices.Prism.MefExtensions.Modularity.MefModuleManager’.
Element: Microsoft.Practices.Prism.MefExtensions.Modularity.MefModuleManager (ContractName=“Microsoft.Practices.Prism.Modularity.IModuleManager”) --> Microsoft.Practices.Prism.MefExtensions.Modularity.MefModuleManager --> AssemblyCatalog (Assembly=“Microsoft.Practices.Prism.MefExtensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35”)

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 Microsoft.Practices.Prism.MefExtensions.MefBootstrapper.InitializeModules()
at Samba.Presentation.Bootstrapper.InitializeModules()
at Microsoft.Practices.Prism.MefExtensions.MefBootstrapper.Run(Boolean runWithDefaultConfiguration)
at Samba.Presentation.App.RunInReleaseMode()


[Assembly Info]

Samba.Services, Version=1.0.0.0
mscorlib, Version=4.0.0.0
PresentationCore, Version=4.0.0.0
Microsoft.Practices.Prism, Version=4.0.0.0
WindowsBase, Version=4.0.0.0
Samba.Infrastructure.Data, Version=1.0.0.0
PresentationFramework, Version=4.0.0.0
System.Xaml, Version=4.0.0.0
Samba.Presentation.Services, Version=1.0.0.0
System, Version=4.0.0.0
Samba.Infrastructure, Version=1.0.0.0
FluentValidation, Version=3.4.0.0
Samba.Domain, Version=1.0.0.0
DevExpress.Xpf.Grid.v13.2, Version=13.2.7.0
Stateless, Version=1.0.0.0
System.Core, Version=4.0.0.0
System.Drawing, Version=4.0.0.0
System.Windows.Forms, Version=4.0.0.0
System.ComponentModel.Composition, Version=4.0.0.0
Samba.Localization, Version=1.0.0.0
Microsoft.CSharp, Version=4.0.0.0
DevExpress.Xpf.Grid.v13.2.Core, Version=13.2.7.0
Microsoft.Practices.ServiceLocation, Version=1.0.0.0
Samba.Persistance, Version=1.0.0.0
Microsoft.Practices.Prism.MefExtensions, Version=4.0.0.0
DevExpress.Xpf.Core.v13.2, Version=13.2.7.0
PropertyTools, Version=2012.4.14.1


[System Info]

Operating System
-Microsoft Windows 7 Ultimate
–CodeSet = 1252
–CSDVersion =
–CurrentTimeZone = -240
–FreePhysicalMemory = 2200564
–OSArchitecture = 64-bit
–OSLanguage = 1033
–ServicePackMajorVersion = 0
–ServicePackMinorVersion = 0
–Version = 6.1.7600

Machine
-ROBO-PC
–Manufacturer = Hewlett-Packard
–Model = HP G60 Notebook PC
–TotalPhysicalMemory = 4193456128
–UserName =


Did it work the second time you tried to restart ?
Sometimes if you restart SambaPOS to fast it will crash.

Thank you for reporting. The problem is PickUp/TakeOut 3 entity name. Using / symbol is the reason of the issue. It will work fine on next update.

Thanks, Emre. I thought use of the “/” may be the problem so I took it out.