1
SmarterMail service keeps stopping
Problem reported by Sean Middlemore - 6/27/2016 at 3:51 AM
Not A Problem
Hello,

Our SmarterMail 15 service keeps crashing every minute, even after a re-install. The event log produces the following messages:

Event code: 3005 
Event message: An unhandled exception has occurred. 
Event time: 27/06/2016 10:26:54 
Event time (UTC): 27/06/2016 09:26:54 
Event ID: aad197f503424d3fa10295867f4e6cbb 
Event sequence: 88 
Event occurrence: 71 
Event detail code: 0 

Application information: 
Application domain: /LM/W3SVC/2/ROOT-4-131114928665166675 
Trust level: Full 
Application Virtual Path: / 
Application Path: C:\Program Files (x86)\SmarterTools\SmarterMail\MRS\ 
Machine name: MAIL 

Process information: 
Process ID: 1200 
Process name: w3wp.exe 
Account name: NT AUTHORITY\NETWORK SERVICE 

Exception information: 
Exception type: SocketException 
Exception message: No connection could be made because the target machine actively refused it 127.0.0.1:17001

Server stack trace: 
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
at System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket(EndPoint ipEndPoint)
at System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket()
at System.Runtime.Remoting.Channels.SocketCache.GetSocket(String machinePortAndSid, Boolean openNew)
at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.SendRequestWithRetry(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream)
at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.ProcessMessage(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, ITransportHeaders& responseHeaders, Stream& responseStream)
at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage(IMessage msg)

Exception rethrown at [0]: 
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at SmarterMail.RemoteInterface.IMail.GetGlobalMailSettings(String sessionStr)
at SMWeb.HelperClasses.RemoteWrapper.SessionCallWithConnection[T](UserData usr, Func`2 f)
at SMWeb.Login.Page_Load(Object sender, EventArgs e)
at SMWeb.HelperClasses.CustomPage.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)



Request information: 
Request URL: https://webmail.xlvets.co.uk:443/Login.aspx 
Request path: /Login.aspx 
User host address: 62.49.78.233 
User: 
Is authenticated: False 
Authentication Type: 
Thread account name: NT AUTHORITY\NETWORK SERVICE 

Thread information: 
Thread ID: 39 
Thread account name: NT AUTHORITY\NETWORK SERVICE 
Is impersonating: False 
Stack trace: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at SmarterMail.RemoteInterface.IMail.GetGlobalMailSettings(String sessionStr)
at SMWeb.HelperClasses.RemoteWrapper.SessionCallWithConnection[T](UserData usr, Func`2 f)
at SMWeb.Login.Page_Load(Object sender, EventArgs e)
at SMWeb.HelperClasses.CustomPage.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)



----


Application: MailService.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
Stack:
at System.Data.SQLite.UnsafeNativeMethods.sqlite3_step(IntPtr)
at System.Data.SQLite.UnsafeNativeMethods.sqlite3_step(IntPtr)
at System.Data.SQLite.SQLite3.Step(System.Data.SQLite.SQLiteStatement)
at System.Data.SQLite.SQLiteDataReader.Read()
at MailStore.MailingLists.Data.MailingListRepositoryBase`1+#Jgk[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext()
at MailStore.MailingLists.Data.SubscriberRepository.GetSubscribersWithDetails(Int32, SmarterMail.Config.MailingLists.ListSubscriberType, System.String, Boolean)
at MailStore.MailingLists.Data.SubscriberRepository.GetSubscribersSubscribedToList(Int32, SmarterMail.Config.MailingLists.ListSubscriberType)
at MailStore.MailingLists.MailingListManager.GetSubscribers(SmarterMail.Config.MailingLists.ListSubscriberType)
at MailService.Remoting.Mail.GetMailListSubscribers(System.String, System.String, System.String)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr, System.Object[], System.Object, System.Object[] ByRef)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage)
at System.Runtime.Remoting.Messaging.ServerObjectTerminatorSink.SyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage)
at System.Runtime.Remoting.Messaging.ServerContextTerminatorSink.SyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage)
at System.Runtime.Remoting.Channels.CrossContextChannel.SyncProcessMessageCallback(System.Object[])
at System.Runtime.Remoting.Channels.ChannelServices.DispatchMessage(System.Runtime.Remoting.Channels.IServerChannelSinkStack, System.Runtime.Remoting.Messaging.IMessage, System.Runtime.Remoting.Messaging.IMessage ByRef)
at System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage(System.Runtime.Remoting.Channels.IServerChannelSinkStack, System.Runtime.Remoting.Messaging.IMessage, System.Runtime.Remoting.Channels.ITransportHeaders, System.IO.Stream, System.Runtime.Remoting.Messaging.IMessage ByRef, System.Runtime.Remoting.Channels.ITransportHeaders ByRef, System.IO.Stream ByRef)
at System.Runtime.Remoting.Channels.Tcp.TcpServerTransportSink.ServiceRequest(System.Object)
at System.Runtime.Remoting.Channels.SocketHandler.ProcessRequestNow()
at System.Runtime.Remoting.Channels.SocketHandler.BeginReadMessageCallback(System.IAsyncResult)
at System.Net.LazyAsyncResult.Complete(IntPtr)
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.Net.ContextAwareResult.Complete(IntPtr)
at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)
at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)



----

Faulting application name: MailService.exe, version: 15.1.6005.27635, time stamp: 0x575adb67
Faulting module name: system.data.sqlite.dll, version: 1.0.60.0, time stamp: 0x48e4f015
Exception code: 0xc0000005
Fault offset: 0x000000000008d2c9
Faulting process id: 0x107c
Faulting application start time: 0x01d1d0560885b6c2
Faulting application path: C:\Program Files (x86)\SmarterTools\SmarterMail\Service\MailService.exe
Faulting module path: C:\Program Files (x86)\SmarterTools\SmarterMail\Service\platformdependent\x64\system.data.sqlite.dll
Report Id: 50123706-3c49-11e6-87c3-00259057415c
 
Does anyone have any ideas? I keep having to restart the service every minute or so!
 
Sean

3 Replies

Reply to Thread
1
Sean Middlemore Replied
Hi everyone,
 
In case anyone else has this issue in the future this was caused by a corrupt mailinglist.db file. Rod at SmarterTools was great in sorting this for us.
 
Sean
0
Employee Replied
Employee Post
Thanks for the compliment Sean!
0
Employee Replied
Employee Post
Thanks for following up with the resolution, Sean! I updated this thread status to Not a Problem, since it was caused by a corrupted mailing list file. Thanks!

Reply to Thread