Microsoft.WindowsAzure.Storage update to V8.2.1.0 has broken my code

谁都会走 提交于 2019-12-12 21:31:57

问题


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:

  1. Run command prompt as admin.
  2. Run cd C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator>.
  3. Run AzureStorageEmulator.exe init.
  4. Run AzureStorageEmulator.exe start.


来源:https://stackoverflow.com/questions/45370503/microsoft-windowsazure-storage-update-to-v8-2-1-0-has-broken-my-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!