Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure storage emulator failed to initialize for Azure SDK 2.4

Tags:

azure

I was learning how to use the Microsoft Azure Tools for Visual Studio to develop an Azure cloud service at :"Getting Started with the Azure Tools for Visual Studio".

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

3rd step was build and debug the cloud service, where i was stuck. While debugging i got an error "Failed to initialize Microsoft Azure Storage Emulator".

I did try various methods given on various websites to initialize the Storage Emulator, but none of them worked for me.

When I was trying the command WAStorageEmulator.exe init , i got an error "cannot create database".

Any help would be greatly appreciated.

like image 398
sourabh pandey Avatar asked Aug 25 '14 13:08

sourabh pandey


1 Answers

Step 1 : Start your system in safe mode (Immediately after the computer is powered on or restarted tap the F8 key to enter safe mode).

Step 2 : In safe mode go the path C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator.

Step 3 : Search for WAStorageEmulator.exe - config file.

enter image description here

Step 4 : Edit WAStorageEmulator.exe with 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 your system in normal mode and run the program.

I hope this helps.

like image 147
sourabh pandey Avatar answered Oct 20 '22 01:10

sourabh pandey