Azure Storage Emulator error and does not start

后端 未结 22 1572
遥遥无期
遥遥无期 2020-12-22 22:28

This error is really driving me crazy. (Terminal running in administrator mode)

Initialization of azure storage emulator in sql server 2014:

C:\\Prog         


        
相关标签:
22条回答
  • 2020-12-22 23:10

    I have had this happen recently, and it was because I'd recently installed the HDInsight emulator. It appears this was auto-starting the storage emulator causing an error when VS attempted to start it resulting in an error.

    Setting the "Start Microsoft Azure storage emulator" value to False worked in this case also.

    0 讨论(0)
  • 2020-12-22 23:10

    First you should initialize the emulator database and configuration be starting AzureStorageEmulator.exe as administrator with a key init: AzureStorageEmulator.exe init

    Then, if you still receive an error:

    Service Status: Blob http://127.0.0.1:10000/ False The process cannot access the file because it is being used by another process Error: Unable to start the storage emulator.

    try to change 127.0.0.1 to localhost for all services in C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator\AzureStorageEmulator.exe.config

    0 讨论(0)
  • 2020-12-22 23:11

    I just hit this, and it turns out that Microsoft Teams was using port 10000. Forcing teams to quit resolved the issue.

    0 讨论(0)
  • 2020-12-22 23:12

    It is also worth to try to run the command prompt with: "Run As Administrator" and then run the command: C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator>AzureStorageEmulator.exe start

    That did the trick for me!

    0 讨论(0)
  • 2020-12-22 23:12

    Another option is to change the ip binding that the emulator uses in the config file located in the storage emulator directory.

    Find wastorageemulator.exe.config and change

    <services>
          <service name="Blob" url="http://127.0.0.1:10000/"/>
          <service name="Queue" url="http://127.0.0.1:10001/"/>
          <service name="Table" url="http://127.0.0.1:10002/"/>
       </services>
    

    This would be usefull if another application is already using that port and you cannot uninstall.

    0 讨论(0)
  • 2020-12-22 23:14

    It worked for me:

    1. Press the Windows key and search "Azure Storage Emulator"
    2. It shows me an error message "..Cannot create the database "AzureStorageEmulatorDb510"
    3. I opened the SSMS and looked for that database but I found "AzureStorageEmulatorDb59"
    4. I renamed the database to "AzureStorageEmulatorDb510"
    5. Try again run "Azure Storage Emulator"
    0 讨论(0)
提交回复
热议问题