This project is read-only.

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

Sep 30, 2011 at 6:30 AM


I am new to Azure world, I downloaded the sample 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
   at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 c
   at System.Collections.Generic.List`1.AddRange(IEnumerable`1 collection)
   at StorageSampleDotNet.BlobHelper.ListContainers(List`1& containerList) in E:
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:

    <defaultProxy useDefaultCredentials="true"></defaultProxy>

Good luck :-)


Oct 15, 2012 at 10:06 AM

Many thanks. It also helped me.