Synchronization error: An error occurred in the Microsoft .NET Framework while trying to load assembly id 65555 / 65545.

Description

The synchronization is broken and there is one of the following texts in the log file:

Request processed with error response 'rcGeneralError'
System.InvalidOperationException: Problem executing trigger 'eWaySP_NotifyAboutTeamChanged'
---> System.Data.SqlClient.SqlException: An error occurred in the Microsoft .NET Framework while trying to load assembly id 65555.
The server may be running out of resources, or the assembly may not be trusted with PERMISSION_SET = EXTERNAL_ACCESS or UNSAFE.
Run the query again, or check documentation to see how to solve the assembly trust issues.
For more information about this error:
System.IO.FileLoadException: Could not load file or assembly 'eway.webservice.sqlclr, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
An error relating to security occurred. (Exception from HRESULT: 0x8013150A)

or

Request processed with error response 'rcGeneralError'
System.InvalidOperationException: Problem executing trigger 'eWaySP_NotifyAboutTeamChanged'
--->System.Data.SqlClient.SqlException: An error occurred in the Microsoft .NET Framework while trying to load assembly id 65545.
The server may be running out of resources, or the assembly may not be trusted with PERMISSION_SET = EXTERNAL_ACCESS or UNSAFE.
Run the query again, or check documentation to see how to solve the assembly trust issues.
For more information about this error: System.IO.FileLoadException: Could not load file or assembly 'eway.webservice.sqlclr, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
An error relating to security occurred. (Exception from HRESULT: 0x8013150A)

Version

All versions of eWay-CRM

Difficulty

High

Resolution

Option 1 - Local PCs

Restart your PC.

Option 2 - Server

  1. Launch Microsoft SQL Server Management Studio - you can download it here.
  2. Run this SQL script whereas the path in the parameter is the path to the eWay-CRM web service folder (you have to run procedure as system administrator):
    EXEC [dbo].[eWaySP_CreateClrProcedures] @WebServicePath = N'C:\inetpub\wwwroot\eWay\'
  3. Now, eWay-CRM synchronization should be proceeded successfully.