vsto - 安装失败,但增强的日志记录不包含错误
问题描述
我有一个 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
请注意,失败的安装中没有实际错误。
当我确实看到这一点时,它不会再次发生。如何进一步解决此问题?
解决方案
推荐阅读
- linux - GRE 隧道之间的 Centos7 上未转发数据包
- javascript - 根据Angular 9中我的表格列的标题,基于表格内特定标题的单击事件显示/隐藏组件
- python - 在 Linux 上将 python 程序的输出通过管道传输到 PDF(带颜色)
- java - 如何将一个类的实例值传递给另一个包含测试注释方法的类
- h2 - 存在前提条件时,Liquibase 未在 H2 DB 上执行变更集(表存在)
- javascript - 动态替换数组中的值
- javascript - 如何在一个函数中为不同的按钮添加多个事件监听器?
- python - 如何在同一服务器和同一端口中创建烧瓶应用程序的多个实例
- angular - Angular Material - 垫表行工具提示
- android - 如何将 CharSequence 的 Arraylist 转换为 String 的 ArrayList