Getting error - Theremote server returned an error: (407) Proxy Authentication Required

Sep 30, 2011 at 6:30 AM

Hi,

I am new to Azure world, I downloaded the sample Storage_DotNet_CS.zip file. However when I execute it I get following error. I do not have live account on Azure cloud & want to use the local storage.

-------------------------------------------------------------------------------------------

List containers EXCEPTION Microsoft.WindowsAzure.StorageClient.StorageServerException: The server encountered an unknown failure: The remote server returned an
error: (407) Proxy Authentication Required. ---> System.Net.WebException: Theremote server returned an error: (407) Proxy Authentication Required.
   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
   at Microsoft.WindowsAzure.StorageClient.EventHelper.ProcessWebResponse(WebReq
uest req, IAsyncResult asyncResult, EventHandler`1 handler, Object sender)
   --- End of inner exception stack trace ---
   at Microsoft.WindowsAzure.StorageClient.Tasks.Task`1.get_Result()
   at Microsoft.WindowsAzure.StorageClient.Tasks.Task`1.ExecuteAndWait()
   at Microsoft.WindowsAzure.StorageClient.TaskImplHelper.ExecuteImplWithRetry[T
](Func`2 impl, RetryPolicy policy)
   at Microsoft.WindowsAzure.StorageClient.CommonUtils.<LazyEnumerateSegmented>d
__0`1.MoveNext()
   at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 c
ollection)
   at System.Collections.Generic.List`1.AddRange(IEnumerable`1 collection)
   at StorageSampleDotNet.BlobHelper.ListContainers(List`1& containerList) in E:
\Storage_DotNet_CS\Storage_DotNet\Storag
eSampleDotNet\BlobHelper.cs:line 74
   at StorageSampleDotNet.Program.TestBlobStorage() in E:\VS 2010 Projects\Storage_DotNet\StorageSampleDotNet\Program.c
s:line 43

-------------------------------------------------------------------------------------------

My system configuration: WK7 OS, I am running VS 2010 as an administrator.

Can anybody please tell me what's going wrong.

Atul Sureka

Oct 1, 2011 at 11:45 PM

Hello Atul,

You have to configure the proxy authenctication if your pc performs HTTP requests through a proxy. Stick the following config section in your app.config\web.config and you should be ok to move on:

<system.net>
    <defaultProxy useDefaultCredentials="true"></defaultProxy>
  </system.net>

Good luck :-)

Shmulik 


Oct 15, 2012 at 10:06 AM

Many thanks. It also helped me.