首页 > 解决方案 > 安装失败,但增强的日志记录不包含错误

问题描述

我有一个 ClickOnce Office 加载项始终无法在 PowerShell 脚本中安装。该脚本正在从 SCCM 运行。当它失败时,安装日志中唯一的错误是返回值 -400,这当然几乎没有任何意义。在该错误之前和之后还有其他输出,并且没有什么特别突出的。

在打开 ClickOnce 日志记录时,我能够复制一次,输出如下(没有时间戳,因为我必须手动转录)。

安装失败:

PLATFORM VERSION INFO
  Windows             : 6.2.9200.0 (WinNT)
  Common Language Runtime     : 4.0.30319.42000
  System.Deployment.dll       : 4.7.2046.0 built by: NET47REL1
  clr.dll             : 4.7.3260.0 built by: NET472REL1LAST_C
  dfdll.dll           : 4.7.2046.0 built by: NET47REL1
  dfshim.dll          : 10.0.15063.0 (WinBuild.160101.0800)

SOURCES
  Deployment url         : file://path/to/my.vsto

ERROR SUMMARY
  No errors were detected during this operation.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
  No transaction error was detected.

WARNINGS
  There were no warnings during this operation.

OPERATION PROGRESS STATUS
  No phase information is available.

ERROR DETAILS
  No errors were detected during this operation.

COMPONENT STORE TRANSACTION DETAILS
  No transaction information is available.

DETAILED EXECUTION FLOW
  Activation through IPHM APIs is started.
  Method Call : InPlaceHostingManager(file://path/to/my.vsto,False) called.
  Method Call : InPlaceHostingManager.GetManifestAsync() called.
  Internal state=GettingManifest
  Method Call : DeploymentManager.BindAsync() called.
  Binding started in a worker thread.
  Internal state=DownloadingDeploymentInformation
  Method Call : InPlaceHostingManager.Dispose() called.
  Internal state=Done

安装成功:

PLATFORM VERSION INFO
  Windows             : 6.2.9200.0 (WinNT)
  Common Language Runtime     : 4.0.30319.42000
  System.Deployment.dll       : 4.7.2046.0 built by: NET47REL1
  clr.dll             : 4.7.3260.0 built by: NET472REL1LAST_C
  dfdll.dll           : 4.7.2046.0 built by: NET47REL1
  dfshim.dll          : 10.0.15063.0 (WinBuild.160101.0800)

SOURCES
  Deployment url         : file://path/to/my.vsto
  Application url        : file://path/to/my/Application Files/my_1_0_0_123/my.dll.manifest

IDENTITIES
  Deployment Identity    : my.vsto, Version=1.0.0.123, Culture=neutral, PublicKeyToken=<an alphnumeric value>, processorArchitecture=msil
  Application Identity   : my.dll, Version=1.0.0.123, Culture=neutral, PublicKeyToken=<an alphnumeric value>, processorArchitecture=msil, type=win32

APPLICATION SUMMARY
  * Online only application

ERROR SUMMARY
  No errors were detected during this operation.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
  No transaction error was detected.

WARNINGS
  There were no warnings during this operation.

OPERATION PROGRESS STATUS
  No phase information is available.

ERROR DETAILS
  No errors were detected during this operation.

COMPONENT STORE TRANSACTION DETAILS
  No transaction information is available.

DETAILED EXECUTION FLOW
  Activation through IPHM APIs is started.
  Method Call : InPlaceHostingManager(file://path/to/my.vsto,False) called.
  Method Call : InPlaceHostingManager.GetManifestAsync() called.
  Internal state=GettingManifest
  Method Call : DeploymentManager.BindAsync() called.
  Binding started in a worker thread.
  Internal state=DownloadingDeploymentInformation
  Method Call : InPlaceHostingManager.Dispose() called.
  expectedAppId=file://path/to/my.vsto#my.vsto, Version=1.0.0.123, culture=neutral, PublicKeyToken=<an alphnumeric value>, processorArchitecture=msil/my.dll, Version=1.0.0.123, culture=neutral, PublicKeyToken=<an alphnumeric value>, processorArchitecture=msil, type=win32
  Application is not found in store.
  Internal state=DownloadingApplicationInformation
  _cached=False
  _isUpdate=False
  Binding is successful.
  Creating GetManifestCompletedEventArgs.
  Application Identity=file://path/to/my.vsto, Version=1.0.0.123, culture=neutral, PublicKeyToken=<an alphnumeric value>, processorArchitecture=msil/my.dll, Version=1.0.0.123, culture=neutral, PublicKeyToken=<an alphnumeric value>, processorArchitecture=msil, type=win32
  IsCached=False
  Method Call : InPlaceHostingManager.DownloadApplicationAsync() called.
  Internal state=DownloadingApplcication
  Method Call : DeploymentManager.SynchronizeAsync() called.
  Download and install of the application started ina  worker thread.
  Application is not cached.
  Application is successfully committed to the store.
  Refreshing ActivationContext from store.
  Installation is successful.
  Internal state=Done
  Method Call : InPlaceHostingManager.Dispose() called.
  Internal state=Done

请注意,失败的安装中没有实际错误。

当我确实看到这一点时,它不会再次发生。如何进一步解决此问题?

标签: vstoclickonce

解决方案


推荐阅读