Cannot generate report & clicking on any settings force crashed on Sambapos 4.1.39

Issue: after installing Sambapos 4.1.39, i the app crashed everytime i choose any option on settings.

the same happened when i click " work period report" in reports option

DB Type and Version: sql server express
OS Type (32/64) and Version: windows 7 x64 , although the sql server express installed was x86
Device Type (PC/Tablet/etc) : PC
Screenshots:
Error Messages: this one?

Application: Samba.Presentation.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileNotFoundException
Stack:
at DevExpress.Xpf.Core.Internal.ReflectionHelper.CalcGenericArguments(System.Type, System.Object[])
at DevExpress.Xpf.Core.Internal.ReflectionHelper.CreateStaticMethodInvoke[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.Type, System.String, System.Reflection.BindingFlags, System.Object[])
at DevExpress.Xpf.Core.Internal.ReflectionHelper.GetInvokeMethod[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.Type, System.String, System.Reflection.BindingFlags, System.Object[])
at DevExpress.Xpf.Core.Native.RenderTriggerHelper.CanConvertUsingSystemConverter(System.Type, System.Type)
at DevExpress.Xpf.Core.Native.RenderTriggerHelper.Convert(System.Type, System.Type, System.Object)
at DevExpress.Xpf.Core.Native.RenderTriggerHelper.GetConvertedValue(System.Type, System.Object)
at DevExpress.Xpf.Core.Native.RenderConditionContext.InitializeDescriptorOverride()
at DevExpress.Xpf.Core.Native.RenderPropertyChangedListenerContext.InitializeDescriptor()
at DevExpress.Xpf.Core.Native.RenderConditionContext.AttachOverride(DevExpress.Xpf.Core.Native.INamescope, DevExpress.Xpf.Core.Native.IElementHost, DevExpress.Xpf.Core.Native.IPropertyChangedListener, DevExpress.Xpf.Core.Native.RenderTriggerContextBase)
at DevExpress.Xpf.Core.Native.RenderPropertyContextBase.Attach(DevExpress.Xpf.Core.Native.INamescope, DevExpress.Xpf.Core.Native.IElementHost, DevExpress.Xpf.Core.Native.IPropertyChangedListener, DevExpress.Xpf.Core.Native.RenderTriggerContextBase)
at DevExpress.Xpf.Core.Native.RenderConditionGroupContext.AttachOverride(DevExpress.Xpf.Core.Native.INamescope, DevExpress.Xpf.Core.Native.IElementHost, DevExpress.Xpf.Core.Native.IPropertyChangedListener, DevExpress.Xpf.Core.Native.RenderTriggerContextBase)
at DevExpress.Xpf.Core.Native.RenderPropertyContextBase.Attach(DevExpress.Xpf.Core.Native.INamescope, DevExpress.Xpf.Core.Native.IElementHost, DevExpress.Xpf.Core.Native.IPropertyChangedListener, DevExpress.Xpf.Core.Native.RenderTriggerContextBase)
at DevExpress.Xpf.Core.Native.MultiRenderTriggerContext.AttachOverride(DevExpress.Xpf.Core.Native.INamescope, DevExpress.Xpf.Core.Native.IElementHost, DevExpress.Xpf.Core.Native.IPropertyChangedListener)
at DevExpress.Xpf.Core.Native.RenderTemplate.InitializeTemplate(DevExpress.Xpf.Core.Native.FrameworkRenderElementContext, DevExpress.Xpf.Core.Native.INamescope, DevExpress.Xpf.Core.Native.IElementHost, DevExpress.Xpf.Core.Native.IPropertyChangedListener)
at DevExpress.Xpf.Core.Native.Chrome+<>c__DisplayClass14.b__13(DevExpress.Xpf.Core.Native.RenderTemplate)
at DevExpress.Mvvm.Native.MayBe.Do[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.__Canon, System.Action`1<System.__Canon>)
at DevExpress.Xpf.Core.Native.Chrome.InitializeContext(DevExpress.Xpf.Core.Native.FrameworkRenderElementContext)
at DevExpress.Xpf.Core.Native.Chrome.CreateContext()
at DevExpress.Xpf.Core.Native.Chrome.get_Context()
at DevExpress.Xpf.Core.Native.Chrome.MeasureOverride(System.Windows.Size)
at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
at System.Windows.UIElement.Measure(System.Windows.Size)
at System.Windows.Controls.Control.MeasureOverride(System.Windows.Size)
at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
at System.Windows.UIElement.Measure(System.Windows.Size)
at System.Windows.Controls.DockPanel.MeasureOverride(System.Windows.Size)
at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
at System.Windows.UIElement.Measure(System.Windows.Size)
at MS.Internal.Helper.MeasureElementWithSingleChild(System.Windows.UIElement, System.Windows.Size)
at System.Windows.Controls.ContentPresenter.MeasureOverride(System.Windows.Size)
at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
at System.Windows.UIElement.Measure(System.Windows.Size)
at System.Windows.Controls.Grid.MeasureOverride(System.Windows.Size)
at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
at System.Windows.UIElement.Measure(System.Windows.Size)
at System.Windows.Controls.Border.MeasureOverride(System.Windows.Size)
at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
at System.Windows.UIElement.Measure(System.Windows.Size)
at System.Windows.Controls.Grid.MeasureOverride(System.Windows.Size)
at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
at System.Windows.UIElement.Measure(System.Windows.Size)
at System.Windows.Controls.Control.MeasureOverride(System.Windows.Size)
at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
at System.Windows.UIElement.Measure(System.Windows.Size)
at System.Windows.Controls.Primitives.TabPanel.MeasureOverride(System.Windows.Size)
at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
at System.Windows.UIElement.Measure(System.Windows.Size)
at System.Windows.ContextLayoutManager.UpdateLayout()
at System.Windows.ContextLayoutManager.UpdateLayoutCallback(System.Object)
at System.Windows.Media.MediaContext+InvokeOnRenderCallback.DoWork()
at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
at System.Windows.Media.MediaContext.RenderMessageHandlerCore(System.Object)
at System.Windows.Media.MediaContext.RenderMessageHandler(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
at System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)
at System.Windows.Threading.Dispatcher.Run()
at System.Windows.Application.RunDispatcher(System.Object)
at System.Windows.Application.RunInternal(System.Windows.Window)
at System.Windows.Application.Run(System.Windows.Window)
at Samba.Presentation.App.Main()

My Setup: i have caller id setup & uses samba messaging service
Additional Notes: tried re-starting, re-downloading7 re-installing, changed to localdb. no success. reverting back to 4.1.38 works fine

I can confirm this.

SambaPOS: v4.1.39
DB Type: SQL Server Express 2012 64-bit
OS: Windows 7 x64
Device Type: PC Laptop
TouchScreen Device: No


In Reports section, clicking on Work Period Report causes program crash.
In Manage section, clicking on any Items in a Category (i.e. Settings > Printer Templates) causes program crash.

Also, on WorkPeriod End, I have a Rule that Executes a Print Job for Drawer Kick. When I End the WorkPeriod, I get a program crash with this message:

I also get the same error above when I attempt to Start a Workperiod, which again has a Rule to Execute a Print Job to my Pole Display as a welcome message.

Could not load file or assembly 'DevExpress.Printing.v14.1.Core, Version=14.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a' or one of its dependencies. The system cannot find the file specified.

I’m not seeing any Crash Report at all, but in C:\Users\%USER%\Documents\SambaPOS4\log.txt, there is this report:

-----------------------------
[General Info]

Application: SambaPOS
Version:     4.1.39
Region:      en
DB:          SQ
Machine:     ACERROCKET
User:        Quentin
Date:        2014-06-28
Time:        15:43

User Explanation:

Quentin said ""
-----------------------------

[Exception Info 1]

Top-level Exception
Type:        System.ComponentModel.Win32Exception
Message:     The system cannot find the file specified
Source:      System
Stack Trace: at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
   at Samba.Presentation.Common.ActionProcessors.StartProcess.Process(ActionData actionData)

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

[Assembly Info]

PresentationFramework, Version=4.0.0.0
System.Xaml, Version=4.0.0.0
Microsoft.Practices.Prism.MefExtensions, Version=4.0.0.0
mscorlib, Version=4.0.0.0
System, Version=4.0.0.0
WindowsBase, Version=4.0.0.0
Samba.Services, Version=1.0.0.0
Samba.Presentation.Services, Version=1.0.0.0
Samba.Presentation.Common, Version=1.0.0.0
Samba.Domain, Version=1.0.0.0
PresentationCore, Version=4.0.0.0
DevExpress.Xpf.Core.v14.1, Version=14.1.4.0
Microsoft.Practices.ServiceLocation, Version=1.0.0.0
Samba.Infrastructure, Version=1.0.0.0
Microsoft.Practices.Prism, Version=4.0.0.0
System.ComponentModel.Composition, Version=4.0.0.0
System.Core, Version=4.0.0.0
Samba.Localization, Version=1.0.0.0
FastButton, Version=1.0.0.0

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

[System Info]

Operating System
-Microsoft Windows 7 Home Premium
--CodeSet = 1252
--CSDVersion = Service Pack 1
--CurrentTimeZone = -360
--FreePhysicalMemory = 13584784
--OSArchitecture = 64-bit
--OSLanguage = 1033
--ServicePackMajorVersion = 1
--ServicePackMinorVersion = 0
--Version = 6.1.7601

Machine
-ACERROCKET
--Manufacturer = Acer
--Model = Aspire E1-531
--TotalPhysicalMemory = 17008279552
--UserName = ACERROCKET\Quentin

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

Further, if I choose to Debug in Visual studio, Copying the Exception to the Clipboard reveals:

System.IO.FileNotFoundException was unhandled
  HResult=-2147024894
  Message=Could not load file or assembly 'DevExpress.Printing.v14.1.Core, Version=14.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a' or one of its dependencies. The system cannot find the file specified.
  Source=DevExpress.Xpf.Core.v14.1
  FileName=DevExpress.Printing.v14.1.Core, Version=14.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a
  FusionLog=WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

  StackTrace:
       at DevExpress.Xpf.Core.Internal.ReflectionHelper.CalcGenericArguments(Type genericType, Object[] objects)
       at DevExpress.Xpf.Core.Internal.ReflectionHelper.CreateStaticMethodInvoke[T](Type type, String methodName, BindingFlags bindingFlags, Object[] param)
       at DevExpress.Xpf.Core.Internal.ReflectionHelper.GetInvokeMethod[T](Type entityType, String methodName, BindingFlags bindingFlags, Object[] param)
       at DevExpress.Xpf.Core.Native.RenderTriggerHelper.CanConvertUsingSystemConverter(Type sourceType, Type targetType)
       at DevExpress.Xpf.Core.Native.RenderTriggerHelper.Convert(Type sourceType, Type targetType, Object value)
       at DevExpress.Xpf.Core.Native.RenderTriggerHelper.GetConvertedValue(Type targetType, Object value)
       at DevExpress.Xpf.Core.Native.RenderConditionContext.InitializeDescriptorOverride()
       at DevExpress.Xpf.Core.Native.RenderPropertyChangedListenerContext.InitializeDescriptor()
       at DevExpress.Xpf.Core.Native.RenderConditionContext.AttachOverride(INamescope scope, IElementHost elementHost, IPropertyChangedListener listener, RenderTriggerContextBase context)
       at DevExpress.Xpf.Core.Native.RenderPropertyContextBase.Attach(INamescope scope, IElementHost elementHost, IPropertyChangedListener listener, RenderTriggerContextBase context)
       at DevExpress.Xpf.Core.Native.RenderConditionGroupContext.AttachOverride(INamescope scope, IElementHost elementHost, IPropertyChangedListener listener, RenderTriggerContextBase context)
       at DevExpress.Xpf.Core.Native.RenderPropertyContextBase.Attach(INamescope scope, IElementHost elementHost, IPropertyChangedListener listener, RenderTriggerContextBase context)
       at DevExpress.Xpf.Core.Native.MultiRenderTriggerContext.AttachOverride(INamescope scope, IElementHost elementHost, IPropertyChangedListener listener)
       at DevExpress.Xpf.Core.Native.RenderTemplate.InitializeTemplate(FrameworkRenderElementContext context, INamescope namescope, IElementHost elementHost, IPropertyChangedListener listener)
       at DevExpress.Xpf.Core.Native.Chrome.<>c__DisplayClass14.<InitializeContext>b__13(RenderTemplate x)
       at DevExpress.Mvvm.Native.MayBe.Do[TI](TI input, Action`1 action)
       at DevExpress.Xpf.Core.Native.Chrome.InitializeContext(FrameworkRenderElementContext context)
       at DevExpress.Xpf.Core.Native.Chrome.CreateContext()
       at DevExpress.Xpf.Core.Native.Chrome.get_Context()
       at DevExpress.Xpf.Core.Native.Chrome.MeasureOverride(Size availableSize)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Control.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.StackPanel.StackMeasureHelper(IStackMeasure measureElement, IStackMeasureScrollData scrollData, Size constraint)
       at System.Windows.Controls.StackPanel.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
       at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)
       at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
       at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Border.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Control.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
       at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)
       at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
       at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.ContextLayoutManager.UpdateLayout()
       at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
       at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
       at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
       at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
       at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.DispatcherOperation.InvokeImpl()
       at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Windows.Threading.DispatcherOperation.Invoke()
       at System.Windows.Threading.Dispatcher.ProcessQueue()
       at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.Run()
       at System.Windows.Application.RunDispatcher(Object ignore)
       at System.Windows.Application.RunInternal(Window window)
       at System.Windows.Application.Run(Window window)
       at Samba.Presentation.App.Main()
  InnerException: 

If I had to guess, the Installer is not including file DevExpress.Xpf.Printing.v14.1.dll, but it is in fact present…

Sorry for that… I’ve uploaded fixed setup. I’ll be happy if you can reinstall 4.1.39.

2 Likes

Re-downloaded and re-ran setup. All is good. Errors are gone. Thanks @emre!