安装VSTO解决方案时出现随机TimeoutException [英] Random TimeoutException while installing VSTO solution

查看:65
本文介绍了安装VSTO解决方案时出现随机TimeoutException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个可以发布到Web服务器的VSTO解决方案,我正在通过在多台计算机上安装解决方案来测试它。 安装通常有效,但在某些情况下,
"检索Office自定义信息"后约90秒发生了以下错误:消息出现:
$


" System.TimeoutException:无法下载部署清单,因为无法建立与网络的连接。确保您可以连接到网络,然后重试。"单


如果我再次运行安装程序,它总是在第二个或第三个成功尝试。



我读了几篇报道同样问题的帖子,但我还没有看到明确的解决方案。 有几个人提到代理,但没有代理任何失败的计算机。



我使用Fiddler来监控ClickOnce正在发出的请求。 第一个请求是部署清单(.vsto文件),该请求成功:



1.获取http://www.myserver.org/ExcelTemplate .vsto 200 OK



然后在下列事件发生前大约90秒:



2。获取http://www.myserver.org/ExcelTemplate.vsto 200 OK



3.获取http://www.myserver.org/Application%20Files/ExcelTemplate_1_0_1_1 /ExcelTemplate.dll.manifest 200 OK



4.显示TimeoutException消息。



我也是检查了Web服务器上的IIS日志,它们与Fiddler报告的请求一致:请求了三个文件(第一个文件后暂停90秒),返回三个文件,并且没有任何错误。



这里发生了什么?  ClickOnce在请求(并获取)部署清单之后执行什么操作,以及在执行此操作时可能导致其超时的原因是什么? 我怀疑错误信息是假的,因为它说无法下载部署清单
,但证据表明它确实存在。



我不喜欢除了我已经完成的工作之外,我知道如何调试它。 任何人都可以了解它吗?


谢谢!




- Tony

解决方案

嗨Tony,


我认为TCP设置可能与您的问题有关,因此您可以尝试此解决方案:


http://social.msdn.microsoft.com/Forums/windows/en-US/8d8c3dd4-dc1b-4f0b-8a2d-86f19ae295b1/clickonce-timeout-error


netsh interface tcp set global autotuning = disabled and firewall setting。


但是,我正试图让其他人参与此问题。


问候,


I've created a VSTO solution that gets published to a Web server, and I'm testing it by installing the solution on a number of computers.  The installation usually works, but in several cases the following error has occurred about 90 seconds after the "Retrieving Office customization information" message appears:

"System.TimeoutException: The deployment manifest 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."

If I run the setup program again, it always succeeds on the second or third attempt.

I've read several posts reporting the same problem, but I haven't seen a definitive solution.  Several people mentioned proxies, but there is no proxy on any of the failing computers.

I used Fiddler to monitor the requests that ClickOnce is making.  The first request is for the deployment manifest (a .vsto file), and that request succeeds:

1. GET http://www.myserver.org/ExcelTemplate.vsto 200 OK

Then about 90 seconds go by before the following events occur:

2. GET http://www.myserver.org/ExcelTemplate.vsto 200 OK

3. GET http://www.myserver.org/Application%20Files/ExcelTemplate_1_0_1_1/ExcelTemplate.dll.manifest 200 OK

4. The TimeoutException message is displayed.

I also checked the IIS logs on the Web server and they are consistent with the requests that Fiddler reported: three files requested (with a 90-second pause after the first one), three files returned, and no errors anywhere.

What's going on here?  What is ClickOnce doing after it requests (and gets) the deployment manifest, and what might cause it to time out while doing it?  I suspect the error message is bogus, because it says it couldn't download the deployment manifest but the evidence indicates that it did.

I don't know how to debug this, apart from what I've already done.  Can anyone shed light on it?

Thanks!


-- Tony

解决方案

Hi Tony,

I'm thinking that TCP set may related to your issue, so you may try this solution:

http://social.msdn.microsoft.com/Forums/windows/en-US/8d8c3dd4-dc1b-4f0b-8a2d-86f19ae295b1/clickonce-timeout-error

netsh interface tcp set global autotuning=disabled and firewall setting.

However, I'm trying to involve some others on this issue.

Regards,


这篇关于安装VSTO解决方案时出现随机TimeoutException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆