加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

vb.net – Office加载项安装VSTO下载失败

发布时间:2020-12-17 07:18:35 所属栏目:百科 来源:网络整理
导读:我有一个从Web服务器安装的Outlook加载项.此加载项的工作方式与我在Office中使用的所有其他加载项的工作方式相同. 下载并执行setup.exe 验证所有先决条件(.Net框架等) 已下载vsto文件 到目前为止,安装此加载项的每个人都没有遇到任何问题(此加载项已使用了大
我有一个从Web服务器安装的Outlook加载项.此加载项的工作方式与我在Office中使用的所有其他加载项的工作方式相同.

>下载并执行setup.exe
>验证所有先决条件(.Net框架等)
>已下载vsto文件

到目前为止,安装此加载项的每个人都没有遇到任何问题(此加载项已使用了大约一年).我们有一个新客户在Windows 7上安装它,我们正在看第一期.这是错误:

There was an error during installation:
Downloading http://<path and filename>.vsto did not succeed

***************** Exception Text******************
System.Deployment.Application.DeploymentDownloadException: Downloading http://<path and filename>.vsto did not succeed
System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required. ---> System.ComponentModel.Win32Exception: The token supplied to the function is invalid
at System.Net.NTAuthentication.GetOutgoingBlob(Byte[] incomingBlob,Boolean throwOnError,SecurityStatus& statusCode)
at System.Net.NTAuthentication.GetOutgoingBlob(String incomingBlob)
at System.Net.NtlmClient.DoAuthenticate(String challenge,WebRequest webRequest,ICredentials credentials,Boolean preAuthenticate)
at System.Net.NtlmClient.Authenticate(String challenge,WebRequest webrequest,ICredentials credentials)
at System.Net.AuthenticationManager.Authenticate(String challenge,WebRequest request,ICredentials credentials)
at System.Net.AuthenticationState.AttemptAuthenticate(HttpWebRequest httpWebRequest,ICredentials authInfo)
at System.Net.HttpWebRequest.CheckResubmitForAuth()
at System.Net.HttpWebRequest.CheckSubmit(Exception& e)
--- End of inner exception stack trace ---
at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.InstallAddIn()

显然,我不能从我的位置复制.我的直觉告诉我这个客户的网络安全问题导致了一个问题(我的理解是他们有一系列防火墙等),但他们的Windows XP机器安装没有问题.

有人看到我遗失的任何东西吗?

解决方法

最后,答案并不太难.发生的事情显然是,用户是阻止下载VSTO文件的代理服务器,因为它没有代理凭据.

因此,我必须为这些用户制作一个例外,将所有文件发送到他们可以安装的zip文件中.

请注意,遇到此问题的用户必须先运行命令以清除ClickOnce应用程序缓存,然后再继续;看起来仅仅是尝试安装它就会留下一些残留物,这会造成问题.如果您还不知道,可以通过从命令提示符运行此命令(或创建包含的.bat文件)来清除应用程序缓存:

rundll32 dfshim CleanOnlineAppCache

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读