Unable to Install the Azure Storage Emulator 4.2

I ran into an issue this morning when trying to get the latest Azure Storage Emulator running on my Windows 10 (10565) workstation.   After each time running the installation from the Web Platform Installer, it continually failed with the error:

 CAQuietExec:  Windows Azure Storage Emulator 4.2.0.0 command line tool
 CAQuietExec:  Error: Cannot create database.

After spending a bunch of time trying different solutions that people had suggested, what finally ended up working for me was following this process:

  • Open an elevated PowerShell window.
  • Delete the LocalDB SQL database:
    • sqllocaldb stop MSSQLLocalDB
    • sqllocaldb delete MSSQLLocalDB
  • Delete the raw Storage Emulator files (if you where running a previous version):
    • del %USERPROFILE%\AzureStorageEmulatorDb*.mdf
    • del %USERPROFILE%\AzureStorageEmulatorDb*.ldf
  • Recreate the LocalDB SQL database:
    • sqllocaldb start MSSQLLocalDB
EmulatorReinstall

2 thoughts on “Unable to Install the Azure Storage Emulator 4.2

  1. Score one for your side, although I did not use powershell, a simple administrator command prompt worked for me. (PS couldn’t find the %USERPROFILE% env variable, but CMD could).

    Liked by 1 person

Leave a comment