Skip to main content

Practice Management: The type initializer for 'APS.Console.ActionDeferrer' threw an exception

An unexpected error has occurred and console will now exit

Error: 'An unexpected error has occurred and console will now exit

Details:

The type initializer for 'APS.Console.ActionDefferrer' threw an exception.
Could not load file or assembly 'log4net, Version=1.2.11.0,

Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a' or oneof
its dependencies. The located assembly's manifest definition
oes not match the assembly reference.(Exception from
HRESULT: 0x80131040)'.

Follow the below to resolve the error:

  1. In C:\ADV2000 folder, check the versions of the log4net.dll and log4net.config.

  2. If the file versions are higher than 1.2.11.0 , close all APS applications and delete log4net.dll and log4net.config files

  3. Perform a repair on the most recent version of the installed PM version to redownload the files and apply the hotfix files for the updated PM version. The new files should have the version no 1.2.11.0.

  4. Alternatively ,after deleting these files you can manually replace the log4net.dll and log4net.config files in C:\adv2000 folder (please ensure that the versions on these files are 1.2.11.0).

  1. In the C:\ADV2000 folder, verify the versions of log4net.dll and log4net.config.

  2. If the file versions are higher than 1.2.11.0, close all APS applications, then delete both log4net.dll and log4net.config.

  3. Perform a Repair on the most recently installed PM version. The replacement files should have version 1.2.11.0.

  4. Alternatively, after deleting the files, you can manually copy log4net.dll and log4net.config into the C:\ADV2000 folder, ensuring both files are version 1.2.11.0.

Did this answer your question?