Home > Azure, My Handy References > How to fix Failed to initialize Windows Azure storage emulator error

How to fix Failed to initialize Windows Azure storage emulator error

When you press F5 to start debugging Azure project, you might get the following exception:

If you go to the Output windows, you will see the detailed error message below:

Windows Azure Tools: Failed to initialize Windows Azure storage emulator.

Unable to start Development Storage. Failed to start Development Storage: the SQL Server instance ‘localhost\SQLExpress’ could not be found.

Please configure the SQL Server instance for Development Storage using the ‘DSInit’ utility in the Windows Azure SDK.

This is because by default, Azure uses the SQLExpress to start Development Storage. To fix this you can do the following:

  1. You need to open command prompt, and navigate to C:\Program Files\Windows Azure SDK\v1.4\bin\devstore (depending on your Azure version, the file path is slightly different.)

  2. Next, run DSInit /sqlInstance:. (. Means the SQL Server use the default instance, if you have name instance, you need to change. to the name of the SQL Server)

  3. After a short while, you should see the following windows showing the configuration succeeds.

You can download a batch file here.

*************Updated 25th July****************

If you are using the latest version of Window Azure , the location for devstore change to “C:\Program Files\Windows Azure Emulator\emulator\devstore”.So I have updated my batch file and you can download the updated batch file here.

If you are using the

References:

http://msdn.microsoft.com/en-us/library/gg433132.aspx

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: