none
Error installing component in com+ application inside Docker (Errors occurred accessing one or more objects - the ErrorInfo collection may have more detail (Exception from HRESULT: 0x80110401)) RRS feed

  • Question

  • When i run the command inside container:

    $comAdmin = New-Object -comobject COMAdmin.COMAdminCatalog

    $comAdmin.InstallComponent("ApplicationName", "C:\DLL\file.dll", "", "");

    I get the error:

    Errors occurred accessing one or more objects - the ErrorInfo collection may have more detail (Exception from HRESULT: 0x80110401)

    At C:\legado\scripts\installComponent.ps1:2 char:1

    + $comAdmin.InstallComponent("0800net", "C:\0800net\Componentes\ESAprov ...

    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

        + CategoryInfo          : OperationStopped: (:) [], COMException

        + FullyQualifiedErrorId : System.Runtime.InteropServices.COMException

    I use the commands bellow to create the application:

    $comAdmin = New-Object -comobject COMAdmin.COMAdminCatalog

    $apps = $comAdmin.GetCollection(“Applications”)

    $apps.Populate();

    $applicationName= “ApplicationName”

    $appExistCheckApp = $apps | Where-Object {$_.Name -eq $applicationName}

    $newApp1 = $apps.Add()

    $newApp1.Value(“Name”) = $applicationName

    $newApp1.Value(“Identity”) = “nt authority\localservice”

    $apps.SaveChanges()

    I tried using a vm with Windows Server 2019 and all commands work well.

    But with the following images, i have the error:

    FROM mcr.microsoft.com/windows/servercore/iis

    FROM mcr.microsoft.com/windows/servercore:1803

    I also tried register the dll before install using the command:

    regsvr32 /s file.dll

    The complete error message:

    ErrorCode      : -2146368511

    Message        : Errors occurred accessing one or more objects - the ErrorInfo collection may have more detail (Exception from HRESULT: 0x80110401)

    Data           : {System.Management.Automation.Interpreter.InterpretedFrameInfo}

    InnerException :

    TargetSite     : Void CheckThrowException(Int32, System.Management.Automation.ComInterop.ExcepInfo ByRef, System.Management.Automation.ComInterop.ComMethodDesc, System.Object[], UInt32)

    StackTrace     :    at System.Management.Automation.ComInterop.ComRuntimeHelpers.CheckThrowException(Int32 hresult, ExcepInfo& excepInfo, ComMethodDesc method, Object[] args, UInt32 argErr)

                        at CallSite.Target(Closure , CallSite , ComObject , String , String , String , String )

                        at System.Dynamic.UpdateDelegates.UpdateAndExecute5[T0,T1,T2,T3,T4,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4)

                        at System.Management.Automation.Interpreter.DynamicInstruction`6.Run(InterpretedFrame frame)

                        at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)

    HelpLink       :

    Source         : System.Management.Automation

    HResult        : -2146368511

    Generate by the command:

    try{$comAdmin.InstallComponent("0800net","C:\0800net\Components\ESAprovacao.dll","","")}catch{$_.exception | format-list -force}


    Monday, September 9, 2019 11:56 AM