0x80131401 error when you click the module icon in eWay-CRM after installation

Description

When you install eWay-CRM and open it, you click the icon of any module and this error will pop-up:

*** EXCEPTION ***
Message: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileLoadException: Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401)  at System.AppDomain.GetData(String name)
at eWay.Core.Proxy.DomainMaker.InvokeMethod(String assemblyName, String typeName, String methodName, Object[] parameters)
at eWay.Core.Modules.ModuleManagerProxy.GetTableDefinition(String folderName)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at eWay.Core.Modules.ModuleManager.<>c__DisplayClass1.<GetTableDefinition>b__0()
at eWay.Core.Modules.ModuleManager.MethodRunner`1.RunMethod(RunMethodDelegate action)
at eWay.Core.Modules.ModuleManager.GetTableDefinition(String folderName)
at eWay.Core.GUI.Grid.eWayOutlookGrid.InitializeSingleTypeDataGrid(ILocalItemStore itemStore, String table, String layoutStorageSubkey, Boolean loadAdditionalFields, Boolean checkPermissions)
at eWay.Core.OutlookGridActiveX.OutlookGrid.DataBind()
TargetSite: System.Object _InvokeMethodFast(System.Object, System.Object[], System.SignatureStruct ByRef, System.Reflection.MethodAttributes, System.RuntimeTypeHandle)
Source: mscorlib
StackTrace:
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at eWay.Core.Modules.ModuleManager.<>c__DisplayClass1.<GetTableDefinition>b__0()
at eWay.Core.Modules.ModuleManager.MethodRunner`1.RunMethod(RunMethodDelegate action)
at eWay.Core.Modules.ModuleManager.GetTableDefinition(String folderName)
at eWay.Core.GUI.Grid.eWayOutlookGrid.InitializeSingleTypeDataGrid(ILocalItemStore itemStore, String table, String layoutStorageSubkey, Boolean loadAdditionalFields, Boolean checkPermissions)
at eWay.Core.OutlookGridActiveX.OutlookGrid.DataBind()

Version

All versions of eWay-CRM

Difficulty

Medium

Resolution

Option 1: Update

The error is caused by Microsoft .NET 2.0 that should be repaired by updates. Check also:

  • Microsoft Windows are up to date - you have the newest version of Service Pack (SP) and all smaller updates
  • Your Microsoft Office has the current version (e.g. Microsoft Office 2003 is SP3 or Microsoft Office 2007 is SP2)
  • Microsoft .NET 3.5 or higher is installed.

Option 2: Edit in Windows Registry

Go to this path:

HKEY_CURRENT_USER\Software\Microsoft\.NETFramework

or

HKEY_LOCAL_MACHINE\Software\Microsoft\.NETFramework

Change UseNewCrossDomainRemoting to 0.