我有一个Outlook外接程序,它是从web服务器安装的。这个外接程序的工作方式与我在Office中做过的所有其他外接程序的工作方式相同。
到目前为止,安装这个外接程序的每个人都没有问题(这个外接程序已经使用了大约一年)。我们有一个新的客户安装在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机器在安装上没有问题。
有人看到我遗漏了什么吗?
发布于 2012-08-31 14:01:11
使用),它纠正了ClickOnce部署问题代理身份验证时有一个。
发布于 2015-12-08 23:40:27
最终用户或IT可以修改machine.config以使用他们的NTLM登录启用代理身份验证。这将允许他们在需要身份验证的代理之后安装ClickOnce或VSTO应用程序。
如何:将默认代理更改为始终使用默认凭据(NTLM登录)。
<configuration>
..
<system.net>
<defaultProxy enabled="true" useDefaultCredentials="true"/>
</system.net>
...
</configuration>useDefaultCredentials指定此主机的默认凭据是否用于访问web代理。默认值是false。
https://stackoverflow.com/questions/12216839
复制相似问题