Question

Patrick Olsson on Tue, 14 Oct 2014 13:24:56


Hi

I'm using the latest build of the agent (that I could find - 2.0.8692).

This KB http://support2.microsoft.com/kb/2997692/en-us says that 2.0.8689 and above should be supported on Windows Server 2012 R2 Core.

The installation works, but when I'm about to do the postsetup (Register Server Wizard) I get an unhandeld exception and cannot continue.

The error reads:

Creating an instance of the COM Component with CLSID {DC1C5A9C-E88A-4DDE-A5A1-60F82A20AEF7} from the IClassFactory failed due to the following error: 80040111 ClassFactory cannot supply requested class (Exception from HRESULT: 0x80040111 (CLASS_E_CLASSNOTAVAILABLE))


Sponsored



Replies

Calvin Robinson on Fri, 17 Oct 2014 14:01:20


I am encountering this same exact issue and am unable to proceed with an install that is being used for a web screencast.  Perhaps this error is due to incompatibility with Hyper-V 2012 R2 Core, however I am unable to find guidance on what the boundaries of compatibility are for the agent deployment.  If anyone is able to suggest anything remotely helpful regarding this issue, it would be greatly appreciated.

Rob-BBSRC on Tue, 03 Mar 2015 14:02:23


I am getting the same error, Hyper-V Server 2012R2

Full error

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Runtime.InteropServices.COMException (0x80040111): Creating an instance of the COM component with CLSID {DC1C5A9C-E88A-4DDE-A5A1-60F82A20AEF7} from the IClassFactory failed due to the following error: 80040111 ClassFactory cannot supply requested class (Exception from HRESULT: 0x80040111 (CLASS_E_CLASSNOTAVAILABLE)).
   at System.Windows.Forms.OpenFileDialog.CreateVistaDialog()
   at System.Windows.Forms.FileDialog.RunDialogVista(IntPtr hWndOwner)
   at System.Windows.Forms.CommonDialog.ShowDialog(IWin32Window owner)
   at Microsoft.Internal.CloudBackup.UI.Wizards.Activation.VaultCredentialBrowsePage.vaultCredentialBrowseButton_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34014 built by: FX45W81RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
PostSetup
    Assembly Version: 1.0.523.0
    Win32 Version: 2.0.8692.0
    CodeBase: file:///C:/Program%20Files/Microsoft%20Azure%20Recovery%20Services%20Agent/bin/PostSetup.exe
----------------------------------------
TraceWrapper
    Assembly Version: 1.0.523.0
    Win32 Version: 2.0.8692.0
    CodeBase: file:///C:/Program%20Files/Microsoft%20Azure%20Recovery%20Services%20Agent/bin/TraceWrapper.DLL
----------------------------------------
CBEngineServiceProxy
    Assembly Version: 1.0.523.0
    Win32 Version: 2.0.8692.0
    CodeBase: file:///C:/Program%20Files/Microsoft%20Azure%20Recovery%20Services%20Agent/bin/CBEngineServiceProxy.DLL
----------------------------------------
System.Runtime.Serialization
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34230 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34239 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
CBActivationWizard
    Assembly Version: 1.0.523.0
    Win32 Version: 2.0.8692.0
    CodeBase: file:///C:/Program%20Files/Microsoft%20Azure%20Recovery%20Services%20Agent/bin/CBActivationWizard.DLL
----------------------------------------
CBWizFx
    Assembly Version: 1.0.523.0
    Win32 Version: 2.0.8692.0
    CodeBase: file:///C:/Program%20Files/Microsoft%20Azure%20Recovery%20Services%20Agent/bin/CBWizFx.DLL
----------------------------------------
CBClientCommon
    Assembly Version: 1.0.523.0
    Win32 Version: 2.0.8692.0
    CodeBase: file:///C:/Program%20Files/Microsoft%20Azure%20Recovery%20Services%20Agent/bin/CBClientCommon.DLL
----------------------------------------
System.ServiceModel
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34230 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ServiceModel/v4.0_4.0.0.0__b77a5c561934e089/System.ServiceModel.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
CloudUtils
    Assembly Version: 1.0.523.0
    Win32 Version: 2.0.8692.0
    CodeBase: file:///C:/Program%20Files/Microsoft%20Azure%20Recovery%20Services%20Agent/bin/CloudUtils.DLL
----------------------------------------
System.ServiceProcess
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ServiceProcess/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.ServiceProcess.dll
----------------------------------------
NativeMethods
    Assembly Version: 1.0.523.0
    Win32 Version: 2.0.8692.0
    CodeBase: file:///C:/Program%20Files/Microsoft%20Azure%20Recovery%20Services%20Agent/bin/NativeMethods.DLL
----------------------------------------
SMDiagnostics
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34230 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/SMDiagnostics/v4.0_4.0.0.0__b77a5c561934e089/SMDiagnostics.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34230 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.ServiceModel.Internals
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34230 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ServiceModel.Internals/v4.0_4.0.0.0__31bf3856ad364e35/System.ServiceModel.Internals.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.IdentityModel
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34230 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.IdentityModel/v4.0_4.0.0.0__b77a5c561934e089/System.IdentityModel.dll
----------------------------------------
CBCommonControls
    Assembly Version: 1.0.523.0
    Win32 Version: 2.0.8692.0
    CodeBase: file:///C:/Program%20Files/Microsoft%20Azure%20Recovery%20Services%20Agent/bin/CBCommonControls.DLL
----------------------------------------
CBUIErrorHandling
    Assembly Version: 1.0.523.0
    Win32 Version: 2.0.8692.0
    CodeBase: file:///C:/Program%20Files/Microsoft%20Azure%20Recovery%20Services%20Agent/bin/CBUIErrorHandling.DLL
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

Anoop KV(MSFT) on Wed, 11 Mar 2015 05:56:22


Hello Rob,

From the above thread i am a little unclear on whether you are planning to use the Agent for Azure Backup or Azure Site Recovery.

If your intent is to use the Agent for Azure Site Recovery then there are 2 scenarios that I can think of (but if you were planning for Azure Backup, I'll need to re-direct you to a different forum)

Scenario I- where you have an SCVMM and it manages a lot of Windows Server Core/Hyper-V Servers

1) In this case you only need to install the Microsoft Azure Recovery Services Agent from here . You don't need to register each of your Hyper-V Servers.

Scenario II - where you don't have an SCVMM, but you have a bunch of Windows Servers running Hyper-V that you want to register with ASR.

1) If this is your scenario, then you need to download the ASR Agent from here and install it on your Hyper-V Host

2) Follow the steps mentioned in Deploy Provider on Server Core on Standalone Hyper-V SKU.

Regards,

Anoop KV

Robinaccio on Tue, 12 Jan 2016 12:55:08


Hi

I just wondered if there was any more on this issue...

I'm trying to install the ASR agent on 2012 R2 Core host machine and I'm getting the same error as those above. I don't have management on my HyperV server - just one host and a number of virual servers.

I run AzureSiteRecoveryProvider and get to the stage of registration - then I get the same error as above:

Creating an instance of the COM Component with CLSID {DC1C5A9C-E88A-4DDE-A5A1-60F82A20AEF7} from the IClassFactory failed due to the following error: 80040111 ClassFactory cannot supply requested class (Exception from HRESULT: 0x80040111 (CLASS_E_CLASSNOTAVAILABLE))

I've followed the links in Scenario 11 but nothing changes.

Thanks

Robin

Gareth_W87 on Thu, 14 Jan 2016 14:34:01


You need to complete the registration using command line rather that launching the executable file.

Log onto the server and from the command line change to the Azure site recovery provider directory and run DRConfiguator.exe with the required switches.

C:\Program Files\Microsoft Azure Site Recovery Provider\> DRConfigurator.exe /r /Friendlyname <friendly name of the server> /Credentials <path of the credentials file> /EncryptionEnabled <full file name to save the encryption certificate>

Where parameters include:

  • /Credentials: Specify the location of the registration key you downloaded.
  • /FriendlyName: Specify a name to identify the Hyper-V host server. This name will appear in the portal
  • /EncryptionEnabled: Optional. Specify whether you want to encrypt replica virtual machines in Azure (at rest encryption).
  • /proxyAddress; /proxyport; /proxyUsername; /proxyPassword: Optional. Specify proxy parameters if you want to use a custom proxy, or your existing proxy requires authentication.

Thanks,

Gareth

Robinaccio on Thu, 14 Jan 2016 14:51:14


Gareth

Thanks for replying. I found the answer you suggested last thing yesterday and it worked. I'll save your reply for future reference.

Robin

AhmedAH on Thu, 24 Mar 2016 19:52:43


I have same issue but my setup is VMM server with Hyper-V Core.

VMM is full windows and all are done. and the agent has been installed on Hyper-V core but when i run the setup to register I got the same as mentioned above.

Thanks

Rim Vel on Tue, 29 Mar 2016 11:53:33


Hello Anoop,

So you're telling that there is no need to install the agent on hyper-v hosts? Azure Site Recovery Provider on VMM is enough to protect all the VM's on my hosts?

Then what is the reason for "Step 2" here:

?

If i don't install agent on hosts I get this error:

Rim Vel on Tue, 29 Mar 2016 11:57:07


Same setup and problem here. 1 full vmm and 3 core hyper-v hosts. Unable to register, unable to select vault credentials.

AhmedAH on Tue, 29 Mar 2016 11:59:57


I think the registration only is not required if the VMM server in the picture.

so only install the agent, i did that already and my VM has been protected with out any problem.

Rim Vel on Tue, 29 Mar 2016 12:10:39


Ahmed, looks like you're correct! It was enough to install the agent on that host and error message is gone. Thank you!

Edgard Concha on Thu, 09 Nov 2017 21:51:24


Thanks!!! This solution worked! Just make sure to add " to the <path of the credentials file> if there are spaces. 

Example:
C:\Program Files\Microsoft Azure Site Recovery Provider>DRConfigurator.exe /r  /Friendlyname XXXXXXXX /Credentials "c:\Installs\XXXXVault_XXXX-Site_Thu Nov 09 2017.VaultCredentials"

You may also need to ran this

Set-OBMachineSetting  -NoProxy