0
votes

i've read some articles "http://www.c-sharpcorner.com/UploadFile/40e97e/windows-azu-creating-and-deploying-worker-role/"

if i try to run my code' error occurs:

ERROR: Windows Azure Tools: Failed to initialize the Development Storage service. Unable to start Development Storage

i made some investigation to solve this boring problem:

http://www.nimbo.com/blog/error-failed-to-initialize-windows-azure-storage-emulator/ http://kristofmattei.be/2010/01/28/windows-azure-sdk-connecting-to-non-sqlexpress-instance/

if i run "dsinit /sqlinstance:." if i use :"WAStorageEmulator init –forcecreate" result 's below: Error: "DsInit can not found"enter image description here

2

2 Answers

3
votes

If you're using Azure SDK 2.3, please note that DSInit.exe has been removed from the SDK. It has been replaced with WAStorageEmulator.exe which can be found in C:\Program Files (x86)\Microsoft SDKs\Windows Azure\Storage Emulator folder.

To initialize storage emulator, the command you will use is:

WAStorageEmulator init -forcecreate

This is similar to DSInit /forceCreate.

There are some other options available as well:

WAStorageEmulator clear table

Removes just the tables from storage emulator.

WAStorageEmulator clear blob

Removes just the blob containers from storage emulator

WAStorageEmulator clear queue

Removes just the queues from storage emulator.

WAStorageEmulator clear all

Removes all tables, queues and blob containers without deleting the database.

I wrote a blog post about it as well where I talked in somewhat more details about this. You can read the blog post here: http://gauravmantri.com/2014/04/04/managing-storage-emulator-in-azure-sdk-version-2-3

0
votes

I came across this issue when the emulator wouldn't initialise with SQL SERVER installed (it looks for SQLEXPRESS by default). For Microsoft Azure Storage Emulator v5.8 the accepted answer no longer works. I found the solution on the Microsoft site. In summary:

From the console window that opens on starting the emulator you can use the following commands:

If you want to initialise a specific SQL Server Instance

AzureStorageEmulator.exe init /server <SQLServerInstance>

You can also use the following command, which directs the emulator to use the default SQL Server instance

AzureStorageEmulator.exe init /server .

Or, you can use the following command, which reinitializes the database to the default LocalDB instance

AzureStorageEmulator.exe init /forceCreate