Laser storage emulator failed to initialize Azure SDK 2.4

I learned how to use Microsoft Azure Tools for Visual Studio to develop the Azure cloud service at: Get started with Azure Tools for Visual Studio . "

I have successfully completed the following steps: 1. Install Azure Tools. 2. Create an Azure cloud service.

The third step is to build and debug the cloud service where I am stuck. During debugging, I received the error message "Failed to initialize Microsoft Azure Storage Emulator."

I tried to use different methods defined on different sites to initialize the storage emulator, but none of them worked for me.

When I tried to execute the WAStorageEmulator.exe init command, I got a "cannot create database" error.

Any help would be greatly appreciated.

+6
source share
4 answers

Step 1 Start your system in safe mode (immediately after turning on or restarting the computer, press the F8 key to enter safe mode).

Step 2 In safe mode, go to C: \ Program Files (x86) \ Microsoft SDK \ Azure \ Storage Emulator .

Step 3 Locate WAStorageEmulator.exe configuration file.

enter image description here

Step 4 : edit WAStorageEmulator.exe using Notepad ++ (any editor).

enter image description here

Step 5 Change the port numbers as shown in the above snapshot. (By default, the port numbers will be 10000, 10001, 10002).

 <services> <service name="Blob" url="http://127.0.0.1:30000/"/> <service name="Queue" url="http://127.0.0.1:30001/"/> <service name="Table" url="http://127.0.0.1:30002/"/> </services> 

Step 6 Save the file and restart the system in normal mode and run the program.

Hope this helps.

+22
source

I had a similar problem and it sounds like one of the answers posted here: This post talks about deleting old mdf files so you can install again

It is like what you are experiencing.

I hope this helps

+2
source

Open an MS Azure command prompt. Type (depending on your local db name):

SqlLocalDb stop projectv12

SqlLocalDb delete projectv12

Then go to

C: \ Users (admin) \ AppData \ Local \ Microsoft \ Microsoft SQL Server Local DB \ Instances

and I deleted all instances there. Then try reinstalling the Azure storage emulator. It worked for me.

+2
source

A reload is not required according to the accepted answer.

  • Open the Powershell window in administrator mode.
  • Type the following command: netstat -p tcp -ano | findstr :10000 netstat -p tcp -ano | findstr :10000

This will tell you which process ID uses the port designated by the emulator. Use the Details tab in the Task Manager section to find a related application for the process ID. This is often something like bittorrent / utorrent.

  1. Kill this process and you're done.

..

But if you absolutely must run a conflicting application during development, you can change the ports used by the emulator.

To change the ports used by the emulator, then in powershell:

 chdir "C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator" .\WAStorageEmulator stop 

Then edit the configuration file according to the accepted answer and just save it.

 C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator\WAStorageEmulator.exe.config 

You do not need to copy it anywhere. Then go back to Powershell and:

 .\WAStorageEmulator status .\WAStorageEmulator start 
0
source

Source: https://habr.com/ru/post/974305/


All Articles