locked
SCVMM 2012 RC Installation Error - System.TypeInitializationException: The type initializer for 'Microsoft.VirtualManager.Engine.Placement.IndyPlacementHelper' threw an exception RRS feed

  • Question

  • Hi,

    I'm getting the following error (pasted from C:\ProgramData\VMMLogs\SetupWizard.log.  My setup is a W2008 R2 Domain, SQL 2008 R2 installed locally.  I had initially tried separate SQL Server, have tried with SQL 2008 R2 SP1 and the latest CU#3 but no avail - same error.

    08:46:29:FailureReason = System.TypeInitializationException: The type initializer for 'Microsoft.VirtualManager.Engine.Placement.IndyPlacementHelper' threw an exception. ---> System.BadImageFormatException: Could not load file or assembly 'Microsoft.CapacityManager.Common, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The module was expected to contain an assembly manifest.
    File name: 'Microsoft.CapacityManager.Common, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
       at Microsoft.CapacityManager.Modeling.Store.ImportExport.ModelLibraryReaderWriterXml.GetReaderWriter(String version)
       at Microsoft.CapacityManager.Modeling.Store.ImportExport.ModelLibraryReaderWriterXml.InitializeModelLibrary(String manifestFilePath)
       at Microsoft.VirtualManager.Engine.Placement.IndyPlacementHelper.InitializeIndyData()
       at Microsoft.VirtualManager.Engine.Placement.IndyPlacementHelper..cctor()

    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

       --- End of inner exception stack trace ---
       at Microsoft.VirtualManager.Engine.Placement.IndyPlacementHelper.GetProcessorName(Nullable`1 procId)
       at Microsoft.VirtualManager.Engine.ImageLibrary.AuditCommonDataHelpers.AuditMemoryAndProcessorInfo(LibObjectBase libObject, IHardwareConfigSettings currentInstance, IHardwareConfigSettings oldInstance)
       at Microsoft.VirtualManager.Engine.ImageLibrary.VMBase.AuditObjectData()
       at Microsoft.VirtualManager.Engine.WorkloadCreation.Template.AuditObjectData()
       at Microsoft.VirtualManager.Engine.ImageLibrary.LibObjectBase.UpdateDB(ImgLibCatalog catalog)
       at Microsoft.VirtualManager.Engine.ImageLibrary.SharableLibObject.UpdateDB(ImgLibCatalog catalog)
       at Microsoft.VirtualManager.Engine.ImageLibrary.LibObjectBase.UpdateDB(Boolean audit)
       at Microsoft.VirtualManager.Setup.ServiceTemplateHelper.CreateNewTemplate()
       at Microsoft.VirtualManager.Setup.ServiceTemplateHelper.CreateServiceTemplatePatterns()
       at Microsoft.VirtualManager.Setup.InstallItemCustomDelegates.PangaeaServerPostinstallProcessor()
    08:46:29:ErrorLogFile = C:\ProgramData\VMMLogs\vmmServer.log
    08:46:29:Collection RollbacksToProcess (System.Collections.ArrayList):
    08:46:29:    [0] = VMM management server (Microsoft.VirtualManager.SetupFramework.InstallItemsInstallDataItem)
    08:46:29:    [1] = Microsoft SQL Server 2008 R2 Data-Tier Application Framework (Microsoft.VirtualManager.SetupFramework.InstallItemsInstallDataItem)
    08:46:29:    [2] = Microsoft SQL Server 2008 R2 Management Objects(x64) (Microsoft.VirtualManager.SetupFramework.InstallItemsInstallDataItem)
    08:46:29:    [3] = Microsoft SQL Server 2008 R2 Transact-SQL Language Service (Microsoft.VirtualManager.SetupFramework.InstallItemsInstallDataItem)
    08:46:29:    [4] = Microsoft SQL Server System CLR Types(x64) (Microsoft.VirtualManager.SetupFramework.InstallItemsInstallDataItem)
    08:46:29:    [5] = Microsoft Storage Management Service (Microsoft.VirtualManager.SetupFramework.InstallItemsInstallDataItem)
    08:46:29:    [6] = Web Deployment Tool (Microsoft.VirtualManager.SetupFramework.InstallItemsInstallDataItem)
    08:46:29:ProcessingRollback = 1
    08:46:29:uninstall = True

    Thanks in advance for any help,

    David

    Tuesday, November 1, 2011 8:57 PM

Answers

  • I've resolved the problem.  I was using CDBurnerXP to create an ISO image of the downloaded and extracted file from website but it seems it has been creating a corrupted ISO thus causing the problem.

    I verified that it worked installing from share and then used the freeware ISO Recorder utility and it worked fine with the ISO gnerated from it.

    Apologies for hassle,

    David

    • Marked as answer by David McCallan Wednesday, November 9, 2011 3:38 PM
    Wednesday, November 9, 2011 3:38 PM

All replies

  • You use regedit for enable binding logging?
    Tuesday, November 1, 2011 9:14 PM
  • You use regedit for enable binding logging?

    Apologies, had meant to do that.  Below is the additional info in log after that reg mod.


    === Pre-bind state information ===
    LOG: User = SC\admin
    LOG: DisplayName = Microsoft.CapacityManager.Common, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
     (Fully-specified)
    LOG: Appbase = file:///C:/Users/admin/AppData/Local/Temp/VMEC41.tmp/Setup/
    LOG: Initial PrivatePath = NULL
    Calling assembly : Microsoft.CapacityManager.Modeling.Store.ImportExport, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
    ===
    LOG: This bind starts in default load context.
    LOG: No application configuration file found.
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v2.0.50727\config\machine.config.
    LOG: Post-policy reference: Microsoft.CapacityManager.Common, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    LOG: Attempting download of new URL file:///C:/Users/admin/AppData/Local/Temp/VMEC41.tmp/Setup/Microsoft.CapacityManager.Common.DLL.
    ERR: Failed to complete setup of assembly (hr = 0x80131018). Probing terminated.

       --- End of inner exception stack trace ---
       at Microsoft.VirtualManager.Engine.Placement.IndyPlacementHelper.GetProcessorName(Nullable`1 procId)
       at Microsoft.VirtualManager.Engine.ImageLibrary.AuditCommonDataHelpers.AuditMemoryAndProcessorInfo(LibObjectBase libObject, IHardwareConfigSettings currentInstance, IHardwareConfigSettings oldInstance)
       at Microsoft.VirtualManager.Engine.ImageLibrary.VMBase.AuditObjectData()
       at Microsoft.VirtualManager.Engine.WorkloadCreation.Template.AuditObjectData()
       at Microsoft.VirtualManager.Engine.ImageLibrary.LibObjectBase.UpdateDB(ImgLibCatalog catalog)
       at Microsoft.VirtualManager.Engine.ImageLibrary.SharableLibObject.UpdateDB(ImgLibCatalog catalog)
       at Microsoft.VirtualManager.Engine.ImageLibrary.LibObjectBase.UpdateDB(Boolean audit)
       at Microsoft.VirtualManager.Setup.ServiceTemplateHelper.CreateNewTemplate()
       at Microsoft.VirtualManager.Setup.ServiceTemplateHelper.CreateServiceTemplatePatterns()
       at Microsoft.VirtualManager.Setup.InstallItemCustomDelegates.PangaeaServerPostinstallProcessor()

    Tuesday, November 1, 2011 9:49 PM
  • Still getting the above error even with the latest download from connect of the Pre-RTM bits.  I used the VHD previously downloaded which did work with the partly pre-installed SCVMM2012 RC, removed it and then tried re-installing using both RC and RTM builds but no joy.  I can't understand what the issue is - SetupWizard log file is pasted below.

    09:57:20:currentInstallItem = Web Deployment Tool
    09:57:20:CurrentWorkingInstallItem = Web Deployment Tool
    09:57:20:microsoftinstallerinstalldone = True
    09:57:20:vitalfailure = Installing, Uninstalling, MicrosoftInstaller, PostInstallItem
    09:57:20:FailureReason = System.TypeInitializationException: The type initializer for 'Microsoft.VirtualManager.Engine.Placement.IndyPlacementHelper' threw an exception. ---> System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
       at System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark)
       at System.Reflection.Assembly.GetTypes()
       at Microsoft.CapacityManager.Modeling.Store.ImportExport.ModelLibraryReaderWriterXml.ImportDeviceModelAssembly(DeviceModelInfoCollection deviceModelsCollection, String fileName)
       at Microsoft.CapacityManager.Modeling.Store.ImportExport.ModelLibraryReaderWriterXml.Read()
       at Microsoft.CapacityManager.Modeling.Store.ImportExport.ModelLibraryReaderWriterXml.InitializeModelLibrary(String manifestFilePath)
       at Microsoft.VirtualManager.Engine.Placement.IndyPlacementHelper.InitializeIndyData()
       at Microsoft.VirtualManager.Engine.Placement.IndyPlacementHelper..cctor()
       --- End of inner exception stack trace ---
       at Microsoft.VirtualManager.Engine.Placement.IndyPlacementHelper.GetProcessorName(Nullable`1 procId)
       at Microsoft.VirtualManager.Engine.ImageLibrary.AuditCommonDataHelpers.AuditMemoryAndProcessorInfo(LibObjectBase libObject, IHardwareConfigSettings currentInstance, IHardwareConfigSettings oldInstance)
       at Microsoft.VirtualManager.Engine.ImageLibrary.VMBase.AuditObjectData()
       at Microsoft.VirtualManager.Engine.WorkloadCreation.Template.AuditObjectData()
       at Microsoft.VirtualManager.Engine.ImageLibrary.LibObjectBase.UpdateDB(ImgLibCatalog catalog)
       at Microsoft.VirtualManager.Engine.ImageLibrary.SharableLibObject.UpdateDB(ImgLibCatalog catalog)
       at Microsoft.VirtualManager.Engine.ImageLibrary.LibObjectBase.UpdateDB(Boolean audit)
       at Microsoft.VirtualManager.Setup.ServiceTemplateHelper.CreateNewTemplate()
       at Microsoft.VirtualManager.Setup.ServiceTemplateHelper.CreateServiceTemplatePatterns()
       at Microsoft.VirtualManager.Setup.InstallItemCustomDelegates.PangaeaServerPostinstallProcessor()
    09:57:20:ErrorLogFile = C:\ProgramData\VMMLogs\vmmServer.log
    09:57:20:Collection RollbacksToProcess (System.Collections.ArrayList):
    09:57:20: [0] = VMM management server (Microsoft.VirtualManager.SetupFramework.InstallItemsInstallDataItem)
    09:57:20: [1] = Microsoft SQL Server 2008 R2 Data-Tier Application Framework (Microsoft.VirtualManager.SetupFramework.InstallItemsInstallDataItem)
    09:57:20: [2] = Microsoft SQL Server 2008 R2 Management Objects(x64) (Microsoft.VirtualManager.SetupFramework.InstallItemsInstallDataItem)
    09:57:20: [3] = Microsoft SQL Server 2008 R2 Transact-SQL Language Service (Microsoft.VirtualManager.SetupFramework.InstallItemsInstallDataItem)
    09:57:20: [4] = Microsoft SQL Server System CLR Types(x64) (Microsoft.VirtualManager.SetupFramework.InstallItemsInstallDataItem)
    09:57:20: [5] = Microsoft Storage Management Service (Microsoft.VirtualManager.SetupFramework.InstallItemsInstallDataItem)
    09:57:20: [6] = Web Deployment Tool (Microsoft.VirtualManager.SetupFramework.InstallItemsInstallDataItem)
    09:57:20:ProcessingRollback = 1
    09:57:20:uninstall = True
    09:57:20:End of list Property Bag Values.
    09:57:21:
    2011-11-03T09:57:21.2216631-07:00 Always: Trace Session Ended

    David

    Thursday, November 3, 2011 6:12 PM
  • I've resolved the problem.  I was using CDBurnerXP to create an ISO image of the downloaded and extracted file from website but it seems it has been creating a corrupted ISO thus causing the problem.

    I verified that it worked installing from share and then used the freeware ISO Recorder utility and it worked fine with the ISO gnerated from it.

    Apologies for hassle,

    David

    • Marked as answer by David McCallan Wednesday, November 9, 2011 3:38 PM
    Wednesday, November 9, 2011 3:38 PM
  • This still happens to SCVMM 2019 as I just encountered the same error. Similarly, I had the SCVMM installer prepared into an ISO file, and when installing from the ISO, it was failing with the same error. Thank you David for sharing your solution, saved me a ton of time.
    • Edited by jasonyzs88 Wednesday, August 26, 2020 2:12 AM
    Wednesday, August 26, 2020 2:12 AM