I have a live site and a local development site. Live site was working ok, but I wanted to deploy my dev site to overwrite the live site. I took a bacpac of the live database, then tried to use SSMS to move the dev database on to the live Azure server and in the process of attempting this, deleted the original database. My attempts to deploy the dev database failed, so I decided to restore the original database while I retired to work out why I had failed. I used SSMS to restore the backup of the original database. The code for the site was unchanged. However, I now get the YSOD
Umbraco cannot start. A connection string is configured but Umbraco cannot connect to the database.
My connection string is
<add name="umbracoDbDSN" connectionString="Server=tcp:myserver.database.windows.net,1433;Database=mysitesdb;User ID=me@myserver;Password=myPassword" providerName="System.Data.SqlClient" />
What's gone wrong? I've tried encasing the password in single quotes as that seemed to help once before when I had connection string problems, but it doesn't help this time. Any ideas?
EDIT: It's weird but overnight the problem has gone away. The site is now up. I didn't change anything. Bit of a mystery. Maybe there is some kind of time lag betweeen a database being created and it being accessible from the web app?