Mailer Error: SMTP connect() failed

When an error occurs in SambaPOS V5 and I click the Send button in the error report dialog, I get this message:

Mailer Error: SMTP connect() failed.

The error I am getting is when closing several tabs in the Management screen. I close one after the other as fast as I can and the application crashes.

1 Like

@mehmet seems like we can’t receive some error reports through e-mail.

@rodrigorila you can paste error log here.


[General Info]

Application: SambaPOS
Version: 5.1.61
Region: es-BO
DB: SQ
Machine: PIPERCUB
User: PiperCub
Date: 21/7/2016
Time: 3:27 p. m.

User Explanation:

PiperCub 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: The operation cannot be completed because the DbContext has been disposed.
Source: EntityFramework
Stack Trace: at System.Data.Entity.Internal.LazyInternalContext.InitializeContext()
at System.Data.Entity.Internal.LazyInternalContext.get_ObjectContext()
at System.Data.Entity.DbContext.System.Data.Entity.Infrastructure.IObjectContextAdapter.get_ObjectContext()
at Samba.Infrastructure.Data.SqlData.CommonDbContext.Contains(Object item)
at Samba.Infrastructure.Data.SqlData.CommonDbContext.Refresh(Object item)
at Samba.Infrastructure.Data.SqlData.EFWorkspace.Refresh(Object item)
at Samba.Presentation.Common.ModelBase.EntityViewModelBase1.RollbackModel() at Samba.Presentation.Common.ModelBase.EntityViewModelBase1.OnClosed()
at Samba.Presentation.Common.ModelBase.ModelListViewModelBase.b__6_0(EventParameters1 s) 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
Samba.Services, Version=1.0.0.0
Samba.Domain, Version=1.0.0.0
Samba.Infrastructure.Data, Version=1.0.0.0
System.ComponentModel.Composition, Version=4.0.0.0
System.Core, Version=4.0.0.0
PresentationCore, Version=4.0.0.0
DevExpress.Xpf.LayoutControl.v14.1, Version=14.1.13.0
System.Xml, Version=4.0.0.0
DevExpress.Xpf.Grid.v14.1, Version=14.1.13.0
System, Version=4.0.0.0
DevExpress.Xpf.Grid.v14.1.Core, Version=14.1.13.0
WindowsBase, Version=4.0.0.0
System.Xaml, Version=4.0.0.0
PresentationFramework, Version=4.0.0.0
Samba.Infrastructure, Version=1.0.0.0
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.v14.1, Version=14.1.13.0
Samba.Presentation.Services, Version=1.0.0.0
System.Windows.Forms, Version=4.0.0.0
System.Drawing, Version=4.0.0.0
Stateless, Version=1.0.0.0
Samba.Persistance, Version=1.0.0.0
PropertyTools, Version=2012.4.14.1
Samba.Localization, Version=1.0.0.0
ReachFramework, Version=4.0.0.0
EntityFramework, Version=6.0.0.0
FluentValidation, Version=3.4.0.0
Omu.ValueInjecter, Version=2.3.0.0
Microsoft.Practices.ServiceLocation, Version=1.0.0.0
Microsoft.CSharp, Version=4.0.0.0


[System Info]

Operating System
-Microsoft Windows 10 Home
–CodeSet = 1252
–CSDVersion =
–CurrentTimeZone = -240
–FreePhysicalMemory = 942764
–OSArchitecture = 64-bit
–OSLanguage = 1033
–ServicePackMajorVersion = 0
–ServicePackMinorVersion = 0
–Version = 10.0.10586

Machine
-PIPERCUB
–Manufacturer = Foxconn
–Model = Kangaroo Mobile Desktop
–TotalPhysicalMemory = 2031144960
–UserName = PIPERCUB\PiperCub


1 Like

Ok. This SMTP problem is fixed

1 Like

To reproduce the error when closing Tabs use the mouse wheel button to quickly close the tabs.

1 Like

Wow tried lots of ways to close tabs quickly until I realized middle button works on disabled tabs :wink: I’ll fix that, thank you!!

1 Like