ClickOnce:DeploymentDownloadException:操作已超时

发布于 2024-08-13 00:57:52 字数 1065 浏览 1 评论 0原文

症状:ClickOnce 安装开始,并在大约 600 kB(2 MB 中)后停止。

进度条始终停止在相同的值(尝试了十次)。

错误日志显示操作已超时(在内部异常中)并失败并显示“DeploymentDownloadException(未知子类型)”。

错误日志详细信息(已删除无关信息):

ERROR DETAILS 在此操作期间检测到以下错误。 System.Deployment.Application.DeploymentDownloadException(未知子类型) - 下载 http://fullpath/name.dll.deploy 失败。 - 来源:System.Deployment - 堆栈跟踪:位于 System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(Downloa 接下来是 dQueueItem) 在 System.Deployment.Application.SystemNetDownloader.DownloadAllFiles() 在 System.Deployment.Application.FileDownloader.Download(订阅状态 子状态) --- 内部异常 --- 系统.Net.WebException - 操作已超时。 - 来源:系统 - 堆栈跟踪: 在 System.Net.ConnectStream.Read(Byte[] 缓冲区, Int32 偏移量、Int32 大小) 在 System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(下载 接下来是 dQueueItem)


这只发生在两个客户身上。对于成千上万的其他人来说,安装工作正常。我通过谷歌发现了许多没有答案或通用的“防火墙是问题”或“客户正在使用拨号”的帖子。

有人解决这个问题了吗?这是 ClickOnce 错误吗?

Symptom: ClickOnce installation starts and stops after around 600 kB (out of 2 MB).

Progress bar always stops at the same value (tried ten times).

Error log says that The operation has timed out (in inner exception) and fails with "DeploymentDownloadException (Unknown subtype)".

Error log details (irrelevant information trimmed):

ERROR DETAILS
Following errors were detected during this operation.
System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
- Downloading http://fullpath/name.dll.deploy did not succeed.
- Source: System.Deployment
- Stack trace: at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(Downloa
dQueueItem next)
at
System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
at
System.Deployment.Application.FileDownloader.Download(SubscriptionState
subState)
--- Inner Exception ---
System.Net.WebException
- The operation has timed out.
- Source: System
- Stack trace:
at System.Net.ConnectStream.Read(Byte[] buffer,
Int32 offset, Int32 size)
at
System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(Downloa
dQueueItem next)


This only happens for two customers. The install works OK for thousands of others. I have found numerous posts via google with no answer or generic "firewall is the issue" or "customer was using dialup".

Has anyone solved this? Is this a ClickOnce bug?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

暗藏城府 2024-08-20 00:57:52

禁用计算机上的防火墙软件没有帮助,因为网络上安装的硬件防火墙是原因 (FortiGate 30B)。

Disabling firewall software on the machine did not help because a hardware firewall installed on the network was the cause (FortiGate 30B).

寂寞陪衬 2024-08-20 00:57:52

我怀疑这是一个错误。但是,它似乎卡在部署路径中的一个文件上。也许这是一种被防火墙阻止的文件类型。

我会从构建中删除除一个文件之外的所有文件,看看是否可以正常下载,然后将其余文件一一添加(或者可能按类型键入),然后查看 ClickOnce 在下载时卡住了哪些文件。

如果这似乎没有任何作用,我会构建一个虚拟应用程序并使用 ClickOnce 部署它,看看它是否安装在客户的盒子上。

I doubt that it's a bug. However, it seems like it gets stuck at one file in the deployment path. Maybe it is a type of file that is blocked by a firewall.

I would just remove all files but one from the build and see if that gets downloaded ok, and then add the rest of the files one by one (or maybe type by type) and see at what file ClickOnce gets stuck downloading.

If that doesn't seem to do anything, I'd build a dummy app and deploy it with ClickOnce and see if it installs at all on the customer's box.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文