Invalid request using Azure Storage Simulator (v4.2) and Micorosft.WindowsAzure.Storage (v7.0.0) => Azure SDK 2.9

When I try to call the CreateIfNotExistsAsync method for CloudBlobContainer (with "UseDevelopmentStorage = true" for the connection string), I get the following error:

Exception: Microsoft.WindowsAzure.Storage.StorageException: The remote server responded with an error: (400) Invalid request. ---> System.Net.WebException: the remote server responded with an error: (400) "Bad request". in Microsoft.WindowsAzure.Storage.Shared.Protocol.HttpResponseParsers.ProcessExpectedStatusCodeNoException [T] (HttpStatusCode expectedStatusCode, HttpStatusCode actualStatusCode, T retVal, StorageCommandBase`1 cmd \ expense_Exception Files) \ Lib \ Common \ Shared \ Proto col \ HttpResponseParsers.Common.cs: line 50 ....

At the end of the exception stack trace, I see the following information:

Request information RequestID: 6981043b-1ca2-4788-ba8e-bab39fb95956 RequestDate: Fri, Apr 08, 2016 7:18:21 PM GMT StatusMessage: The REST version of this request is not supported by this version of the storage emulator . Update the storage emulator to the latest version on. See the following URL for more information: http://go.microsoft.com/fwl ink /? LinkId = 392237

I am using the latest simulator (v4.2), as well as the latest Micorosft.WindowsAzure.Storage library (v7.0.0). Should I use anything else?

+6
source share
1 answer

Version 4.3 of the emulator, supporting .Net Client Library version 7.0.0, will be released shortly. We have some technical problems releasing it, but it is under development. At the moment, you can use an older version of the client.

Sorry for the inconvenience!

EDIT : 4.3 emulator is now enabled. Please respond if you have any problems.

+4
source

All Articles