VSTO加载项单击一次安装问题 [英] VSTO add-in click-once installation problems

查看:81
本文介绍了VSTO加载项单击一次安装问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我们有一个VSTO Outook加载项,我们通过clickonce部署到用户。我们的一个用户安装失败,但有以下异常:


System.TimeoutException:无法下载应用程序,因为无法建立与网络的连接。确保您可以连接到网络,然后重试。


这似乎发生在安装结束时(即进度条已满)。我读到这可能与IIS中的MIME类型有关,但是对于我的大多数用户来说,相同的安装工作正常,所以情况并非如此。
事实上,这个问题是通过创建一个全新的加载项,而不是指定和安装文件夹URL(只是一个发布文件夹位置)来解决的。所以,如果有必要的话,我可以通过这种方式解决这个问题。


我似乎无法解决的主要问题(这个用户的计算机也是特定的)就是以这种方式安装失败,我似乎无法完全删除安装,所以当我再次尝试安装加载项时,我得到
以下错误之一:


"指定的参数超出了有效值的范围。参数名称:entryValue。 "



"价值不属于 预期的范围"。


无论哪种方式,即使在卸载后,我也无法再获得更多。 (当我在其他用户的计算机上看到这些问题时,卸载并重新安装自定义工作正常。)


这些错误似乎是在vstoinstaller更新注册表时,但我有通过注册表搜索尝试手动清理但无法找到任何组件的痕迹。如何删除部分安装的插件的所有痕迹?安装尝试的
记录必须存储在某处,因为此时,我必须使用不同的程序集名称重建加载项,只是为了获得"网络连接"。问题。


此外,有关可能导致网络连接问题的任何想法? 


我尝试创建"空" ; outlook和Excel加载项,并在这个用户的计算机上遇到同样的问题。有趣的是,通过clickonce部署一个简单的winforms应用程序工作正常。


预先感谢您的帮助。 


  


 




 

解决方案

< blockquote>


我会检查用户是否安装了代理软件,还检查了IE代理的设置。


还要检查用户是否具有正确的网关,以及用户是否可以访问您为VSTO扩展程序提供的网址的互联网连接。

如果是内部服务器,请确保将其排除在外代理。


Greets - Helmut


Hi,

We have a VSTO Outook add-in which we are deploying to users via clickonce. The installation is failing for one of our users with the following exception:

System.TimeoutException: 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.

This seems to happen right at the end of the installation of the cusomization (i.e. when the progress bar is full). I read that this could be to do with MIME types in IIS, but the same installation works fine for most of my users, so this can't be the case. And, infact, this problem is solved by creating a brand new add-in, and not specifying and Installation Folder URL (just a Publishing Folder Location). So, I can work around this problem this way if necessary.

The main problem that I can't seem to resolve (which is again specific to this user's) computer, is that when an installation fails in this way, I don't seem to be able to fully remove the installation, and so when I try again to install the add-in, I get one of the following errors:

"Specified argument was out of the range of valid values. Parameter name: entryValue. "

OR

"Value does not fall within  the expected range".

Either way, I am no longer able to get any further than this subsequently, even after uninstalling. (When I've seen these problems on other users' computers, uninstalling and reinstalling the customization has worked fine).

These errors seem to be when vstoinstaller is updating the registry, but I have trawled through the registry to try and manually clean up but cannot find any trace of the assembly. How do I remove all traces of the partially installed addin? A record of the install attempt must be getting stored somewhere becuase, at the moment, I have to rebuild the add-in with a different assembly name, just to get as far as the "network connectivity" problem.

Also, any ideas on what could be causing the network connectivity issue? 

I've tried creating an "empty" outlook and Excel add-in and come up against the same issues in both on this user's computer. Interestingly deployment of a plain winforms app via clickonce worked fine.

Thanks in advance for your assistance. 

  

 


 

解决方案

Hi,

I would check if the user has installed a proxy-software and also check the settings of IE for proxy.

Also check if the user has the correct gateway and that the internet-connection to the url you gave for the VSTO extension is accessible to the user.
If it's an internal server make sure it is excluded from proxy.

Greets - Helmut


这篇关于VSTO加载项单击一次安装问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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