Outlook VSTO ClickOnce以“结束”;无法下载应用程序,因为无法建立到网络的连接。”;

Outlook VSTO ClickOnce以“结束”;无法下载应用程序,因为无法建立到网络的连接。”;,outlook,vsto,clickonce,manifest,Outlook,Vsto,Clickonce,Manifest,我们使用ApacheAnt任务生成并签署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 Micros

我们使用ApacheAnt任务生成并签署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()

从Apache Ant启动的signtool.exe重新评估目录的内容。当您无意中在目录中包含可执行文件(*.exe)时,clickonce会在产品安装过程中引发错误“无法下载应用程序,因为无法建立到网络的连接”

背景 在签名期间,如果存在可执行文件,则包含DLL-s的文件夹中清单的标题将从

<entryPoint>
  <co.v1:customHostSpecified />
</entryPoint>

致:



有一个错误是正确的,因为清单不是我想要的,但是消息文本有点混乱。

很好的观察到,click once deployment installer目录中的未知可执行文件将导致此错误。谢谢@JoelMC很高兴听到这有帮助。享受:-)@GuidoLeenders我也有同样的问题,我真的不知道如何解决它…你能告诉我我需要修改的文件是哪一个吗?@Valip它在清单中。部署文件夹中的小文件。修改此文件后,是否可以复制
[AddIn].vsto
文件并在另一台计算机上运行?
<entryPoint>
  <assemblyIdentity name="Invantive.Estate.App" version="20141.0.14188.24543" language="neutral" processorArchitecture="msil" />
  <commandLine file="Invantive.Estate.App.exe" parameters="" />
</entryPoint>