Backtrack:  
 
by lunarg on April 26th 2017, at 10:35

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."

Cause

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.

Solution

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:

  • <RapidRecovery-install_dir>\Core\PowerShellScripts\Reports\DumpReport.ps1
  • <RapidRecovery-install_dir>\Core\PowerShellScripts\Common\GetApiClient.ps1

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()

Full article

https://support.quest.com/rapid-recovery/kb/225450

 
 
« November 2024»
SunMonTueWedThuFriSat
     12
3456789
10111213141516
17181920212223
24252627282930
 
Links
 
Quote
« Most people tend to avoid true conflict. Ironically this breeds more conflict. »