eWayAgent.exe crashes a moment after MS Outlook is launched


The issue shows on the terminal server. At first, you will witness the synchronization error:

Synchronization failed
System.Runtime.InteropServices.COMException (0x80080005): Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80080005.
at eWay.Core.OutlookAccess.Application..ctor()
at eWay.StandardEdition.Synchronization.SynchronizeThread.SynchronizeAll(IEnumerable`1 folders, Boolean& synchronizationOK, Boolean& newData, DateTime till)
at eWay.StandardEdition.Synchronization.SynchronizeThread.Synchronize()

Then, the process will crash.

MS Windows Event Viewer has logged this error:

Faulting application name: eWayAgent.exe, version:, time stamp: 0x5421251b
Faulting module name: mso.dll, version:, time stamp: 0x54bf78bd
Exception code: 0xc0000005
Fault offset: 0x000000000135e3cf
Faulting process id: 0x%9
Faulting application start time: 0x%10
Faulting application path: %11
Faulting module path: %12
Report Id: %13
Faulting package full name: %14
Faulting package-relative application ID: %15 


All versions of eWay-CRM.




Option 1: Delete the user's profile

The resolution of the issue was the deleting of the user's profile. After next launch of the MS Outlook, the eWay-CRM profile was created again and everything worked correctly.

Option 2: Delete only the profile in MS Outlook (not tested)

It is probable that deleting the profile in MS Outlook will be sufficient enough, but the option is not tested yet.