我收到的错误是System.Deployment.Application.DeploymentDownloadException当我尝试为ClickOnce应用程序运行setup.exe时.如果通过网络从原始位置运行它可以正常工作,但如果我setup.exe从服务器上的路径复制,我会收到错误
无法下载应用程序.应用程序缺少必需的文件.
我需要安装程序,因为它安装了最终用户可能没有的一些先决条件(.NET 4).
单击错误窗口中的详细信息按钮可提供以下信息:
PLATFORM VERSION INFO
Windows : 6.1.7601.65536 (Win32NT)
Common Language Runtime : 4.0.30319.237
System.Deployment.dll : 4.0.30319.1 (RTMRel.030319-0100)
clr.dll : 4.0.30319.237 (RTMGDR.030319-2300)
dfdll.dll : 4.0.30319.1 (RTMRel.030319-0100)
dfshim.dll : 4.0.31106.0 (Main.031106-0000)
SOURCES
Deployment url : file:///C:/Users/srchamberlain/Downloads/ContractFlowTool.application
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of C:\Users\srchamberlain\Downloads\ContractFlowTool.application resulted in exception. Following failure messages were detected:
+ Downloading file:///C:/Users/srchamberlain/Downloads/ContractFlowTool.application did not succeed. …Run Code Online (Sandbox Code Playgroud)