Download file blob: Proxy Error (The request was rejected by the HTTP filter. Contact your Forefront TMG administrator.)
-
2012年6月13日 7:29
Hi all,
I am encountering a strange problem. I am downloading file from Azure blob storage using code as below:
CloudBlobContainer container = AzureAccountManagement.currentBlobClient.GetContainerReference(containerName); CloudBlob blob = container.GetBlobReference(blobName); BlobRequestOptions options = new BlobRequestOptions(); options.Timeout = new TimeSpan(0, TiMEOUT, 0); try { blob.DownloadToFile(localPath, blob.Name), options); }In AzureAccountManagement above, I have configurated correct connection string.
Using code above, when I am downloading a file with .mdb extension, I will get a exception as below:
--------------------------------------------------------------------------------
Microsoft.WindowsAzure.StorageClient.StorageServerException was caught
Message=Proxy Error ( The request was rejected by the HTTP filter. Contact your Forefront TMG administrator. )
InnerException:
"The remote server returned an error: (502) Bad Gateway."
-------------------------------------------------------------------------------------------------
Other trying:
1. When I attempt to download other files(.xml/html/txt), the code successfully download them.
2. I used Azure Storage Explorer to download them, .mdb file --failed with the same error; other file types, successful.
3. I tested on other machines, actually the same configuration as my machine, it successfully download both .mdb file and other file types.
So I think there are some HTTP filter or security problems with my machine, but I don't know how to figure it out. Do you guys have encountered similar issues? If yes, I hope to get solutions from you.
My working machine is Windows 7/64-bit/VS 2010 SP1/Azure SDK 1.6. if the information is useful.
- 已更改类型 Paul Zhou 2012年6月13日 7:51
全部回复
-
2012年6月14日 3:57版主
Hi,
I think this issue was caused by the Forefront TMG, would you like to contact the Forefront TMG administrator to see if this machine has rejected .mdb file? It seems that I can not reproduce your issue at my side.
If you contact your Forefront TMG administrator and find nothing special, please inform me, thanks.
BR,
Arwind
Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact msdnmg@microsoft.com Microsoft One Code Framework
- 已标记为答案 Paul Zhou 2012年6月19日 1:24
-
2012年6月18日 22:40
Hi Paul - like Arwind said, this is likely an issue with your local network firewall. I'd contact your Forefront administrator for help with this. Thanks!
-Jeff

