Last week I was installing an Azure Backup Agent on a Microsoft Azure virtual machine (VM) running Windows Server 2008 R2 (W2K8 R2 Datacenter SP1) created from the latest image available in the gallery. But when I started the Microsoft Azure Recovery Agent Setup I received the following error:
After investigating the Event Viewer, I found following error in the Application log, indicating there is a problem with Microsoft.VC90.CRT:
Activation context generation failed for "D:\a797047d0244f077010a1b1df6ff975a\CBPSetup.exe". Dependent Assembly Microsoft.VC90.CRT,processorArchitecture="amd64",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8" could not be found. Please use sxstrace.exe for detailed diagnosis.
The error is generated by the Microsoft Visual C++ client installed on the image used on Azure. To resolve this issue I installed the previous version of the Visual C++ Runtime on the VM. To do so I followed these steps:
1) Download the Microsoft Visual C++ 2008 Redistributable Package (x64) via the following link http://www.microsoft.com/en-us/download/details.aspx?id=15336 and copy it to a folder on your VM.
2) Run the package as an administrator
3) Click Next
4) Mark I have read and accept the license terms and click Install
5) Press Finish to complete the installation
6) Run MARSAgentInstaller as administrator to start the Microsoft Azure Recovery Services Agent Setup all over again
7) Like you can see, it all works fine now.
Hope it helps!
Wim Matthyssen (@wmatthyssen)