After updating Rapid Recovery to 6.1, you will notice the reporting Powershell scripts (such as Reports.ps1) no longer work.
When running such a script, the following error is generated:
Exception calling "LoadFrom" with "1" argument(s): "Could not load file or assembly 'file:///C:\Program Files\AppRecovery\Core\CoreService\coreadmin\bin\Reporting.Implementation.dll' or one of its dependencies. The system cannot find the file specified."
This is caused by several auxilliary script files not being updated as part of the general 6.1 release of Rapid Recovery, causing the reporting scripts (such as Reports.ps1) not to work properly.
To resolve, you can either download and install patch P-2031 but this requires restarting the Core server.
An alternative solution is to manually fix the problems in two auxiliary PS scripts yourself, in which case a restart of the Core services is not needed. The files to fix are:
DumpReport.ps1
Look for the line:
LoadAssemblyFromServiceInstall $apiName "Reporting.Implementation.dll" $true
Change $true to $false:
LoadAssemblyFromServiceInstall $apiName "Reporting.Implementation.dll" $false
GetApiClient.ps1
Rather at the end of the file, look for the line:
$apiClient.ApplicationIdManagement.GetId()
Add the [void] prefix:
[void]$apiClient.ApplicationIdManagement.GetId()
« ‹ | December 2024 | › » | ||||
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |