问题
I've created a WebJob that places items in a queue, this process worked perfectly well until I updated Microsoft.WindowsAzure.Storage to v8.2.1.0 and I'm now getting this error
'Invalid storage account 'devstoreaccount1'. Please make sure your credentials are correct.'
It was working perfectly well until the update, is this an issue? whats the fix?
回答1:
According to this article, you could find:
The Client Library uses a particular Storage Service version. In order to use the Storage Client Library with the Storage Emulator, a corresponding minimum version of the Azure Storage Emulator must be used. Older versions of the Storage Emulator do not have the necessary code to successfully respond to new requests. Currently, the minimum version of the Azure Storage Emulator needed for this library is 5.4. If you encounter a VersionNotSupportedByEmulator (400 Bad Request) error, please update the Storage Emulator.
But I have also downloaded the Storage Emulator from this page. The Storage Emulator version currently is 5.1.
So I suggest you could firstly create a feed at this site and wait for the storage emulator team update the version.
Currently, if you want to use Storage Emulator to test, I suggest you could use the version below 8.2.0.
The storage SKD release notes.
回答2:
Although solution above works fine, But still you are facing the same error. You can follow the below steps, it's working in my case.
You have to make sure that Microsoft Azure Storage Emulator is started, start it if not started.
If this also doesn't work then follow the below steps:
- Run command prompt as admin.
- Run
cd C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator>
. - Run
AzureStorageEmulator.exe init
. - Run
AzureStorageEmulator.exe start
.
来源:https://stackoverflow.com/questions/45370503/microsoft-windowsazure-storage-update-to-v8-2-1-0-has-broken-my-code