使用Apache Ant任务,我们生成并签署Microsoft ClickOnce VSTO部署的清单。对于一个特定的ClickOnce安装,我们收到错误:
The application could not be downloaded because a connection to the network could not be established.
Ensure that you can connect to the network, and try again.
at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.DownloadAddIn(TimeSpan timeout)
at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.InstallAddIn()
答案 0 :(得分:1)
从Apache Ant启动的signtool.exe重新评估目录的内容。当您偶然在目录中包含可执行文件(* .exe)时,错误"无法下载该应用程序,因为无法建立与网络的连接。"在安装产品期间通过clickonce引发。
在签名期间,当存在可执行文件时,DLL-s文件夹中清单的标题将从
更改<entryPoint>
<co.v1:customHostSpecified />
</entryPoint>
为:
<entryPoint>
<assemblyIdentity name="Invantive.Estate.App" version="20141.0.14188.24543" language="neutral" processorArchitecture="msil" />
<commandLine file="Invantive.Estate.App.exe" parameters="" />
</entryPoint>
错误是正确的,因为清单不是我想要的,但是消息文本有点令人困惑。