Error while starting Storage Emulator on windows azure
This problem may occur if you delete the data file C:\Users\<Username>\DevelopmentStorageDb201206.mdf
but do not delete the corresponding database on the LocalDB server instance. One possible solution is:
- Connect to the
(localdb)\v11.0
instance from SQL Server Management Studio. - Delete the
DevelopmentStorageDb201206
database. There will be the error message that the database deletion ended with an error. Ignore this message and refresh the database list manually. - Now you can start the Azure Storage Emulator.
This is not a problem related with Azure components rather LocalDB instance is reporting back to Azure request that DB still exist. Check LocalDB instances in your machine using "sqllocaldb i" first and the delete the instance using "sqllocaldb d 'instance_name'". I could not test it in my machine but this may unblock you if localdb instance is blocking you.
In Windows Azure SDK 1.7, Windows Azure Storage Emulator uses LocalDB instance specific configuration at following location:
%LocalAppData%\DevelopmentStorage\DevelopmentStorage.201206.config
And based on that you will see that v11.0 instance is Windows Azure Storage Emulator specific so verify if that is running and deleting it will let DSInit to create the DB again in LocalDB.