连接到Azure存储帐户直通代理服务器 [英] Connecting to Azure storage account thru proxy server

查看:218
本文介绍了连接到Azure存储帐户直通代理服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的'LocalClient应用程序是在后面的HTTP代理服务器的企业LAN(ISA)。第一Azure的API调用我做 - CloudQueue.CreateIfNotExist() - 导致异常:(407)代理身份验证。我尝试以下操作:

My 'LocalClient' app is in a corporate LAN behind an HTTP proxy server (ISA). The first Azure API call i make - CloudQueue.CreateIfNotExist() - causes an exception: (407) Proxy Authentication Required. I tried following things:


  • 新增了 &LT; System.Net > defaultProxy 元素的app.config,但它似乎没有是工作(参考:<一href=\"http://geekswithblogs.net/mnf/archive/2006/03/08/71663.aspx\">http://geekswithblogs.net/mnf/archive/2006/03/08/71663.aspx).

  • 我配置Microsoft防火墙客户端的ISA服务器,但是这并没有帮助。

  • 使用自定义代理处理程序如下建议:<一href=\"http://dunnry.com/blog/2010/01/25/SupportingBasicAuthProxies.aspx\">http://dunnry.com/blog/2010/01/25/SupportingBasicAuthProxies.aspx.我不能够得到这个工作 - 获得一个配置的初始化例外

  • Added the <System.Net> defaultProxy element to app.config, but it doesn't seem to be working (Reference: http://geekswithblogs.net/mnf/archive/2006/03/08/71663.aspx).
  • I configured 'Microsoft Firewall Client for ISA Server', but that did not help either.
  • Used a custom proxy handler as suggested here: http://dunnry.com/blog/2010/01/25/SupportingBasicAuthProxies.aspx. I am not able to get this working - getting a Configuration initialization exception.

根据MSDN,HTTP代理服务器,可以在连接字符串中只存储发展的情况下,指定(请参阅http://msdn.microsoft.com/en-us/library/ee758697.aspx):

UseDevelopmentStorage = TRUE; DevelopmentStorageProxyUri = HTTP:// myProxyUri

As per MSDN, an HTTP proxy server can be specified in the connection string only in case of Development Storage (see http://msdn.microsoft.com/en-us/library/ee758697.aspx):
UseDevelopmentStorage=true;DevelopmentStorageProxyUri=http://myProxyUri

有没有办法连接到Azure存储直通代理服务器?

Is there any way to connect to the Azure Storage thru a proxy server?

推荐答案

自定义代理解决方案(我想在我原来的问题中提到的第三件事)完美工作。这个错误我前面所做的是不是把&LT; configSections&GT; 之初元素&lt;结构&GT; 中app.config中的要求。在这样做,自定义代理解决方案给这里解决我的问题。

The custom proxy solution (the third thing i tried as mentioned in my original question) worked perfectly. The mistake i was doing earlier was not putting the <configSections> element at the beginning of <configuration> in app.config as required. On doing that, the custom proxy solution given here solved my problem.

这篇关于连接到Azure存储帐户直通代理服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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