Invalid agent assembly path
Problem:
- Installation of CodeTwo agent fails with "Invalid agent assembly path" error.
- The following or similar error event is recorded in your Application Event Viewer log file:
Failed to create type 'Agent.CAgentFactoryRouting' from assembly 'E:\Program Files\CodeTwo\CodeTwo Exchange Rules Pro\CodeTwo.ER.Agent.dll'
due to error 'Invalid agent assembly path.'.Microsoft.Exchange.Data.ExchangeConfigurationException:
Failed to create type 'Agent.CAgentFactoryRouting' from assembly 'E:\Program Files\CodeTwo\CodeTwo Exchange Rules Pro\CodeTwo.ER.Agent.dll'
due to error 'Invalid agent assembly path.'. ---> System.ArgumentException: Invalid agent assembly path.
Solution:
You installed CodeTwo software in a non-default location, your "Program Files" folder is not on drive C: or the installation folder permissions were modified.
Apply changes to the CodeTwo installation folder permissions by granting full access for NETWORK SERVICE system account.