c# - Creating Table in Azure Storage Emulator produces HTTP 500 Error -


i've been attempting create table through machine's azure storage emulator. can recreate problem simple program uses windowsazure.storage nuget version 6.2.0 :

using microsoft.windowsazure.storage;  namespace storageemulatortest {     internal class program     {         private static void main(string[] args)         {             var cloudstorageaccount = cloudstorageaccount.parse("usedevelopmentstorage=true");             var cloudtableclient = cloudstorageaccount.createcloudtableclient();             cloudtableclient.gettablereference("johnnytest").createifnotexists();         }     } } 

after 25 seconds, throw exception of type microsoft.windowsazure.storage.storageexception, message: the remote server returned error: (500) internal server error.

i have attempted:

  1. ensuring windowsazure.storage nuget package latest version (6.2.0).
  2. re-installing azure sdk vs2015 2.8.1 (and ensuring it's latest version)
  3. stopping, clearing, initing azure storage emulator through azure storage emulator command line tool (seemed work fine, no errors)
  4. reading web response's stream through exception's ".innerexception.response.getresponsestream()". fails exception states "stream not readable".
  5. restarting machine (desperation kicked in)

my bag of tricks running low. has encountered issue?

i solved it. had wipe out existing local storage emulation instance. using "azurestorageemulator.exe clear" or "azurestorageemulator.exe init" insufficient. uninstalling azure sdk insufficient.

i started stopping storage emulation:

azurestorageemulator.exe stop azurestorageemulator.exe clear azurestorageemulator.exe init /forcecreate 

that last command errored , indicated not create database.

then deleted (actually, renamed them) these remaining files comprised database behind azure storage emulator:

  • c:\users\[me]\azurestorageemulatordb42_log.ldf
  • c:\users\[me]\azurestorageemulatordb42_log.mdf

finally, started emulator up

azurestorageemulator.exe init /forcecreate azurestorageemulator.exe start 

success!

i'm unsure got me situation, best guess caused recent upgrade of azure sdk.


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -