Deployment and configuration of database with Azure

User Generated




Hi, I have a problem deploying my database to Azure. I added the connection strings to the Azure databases attached to my website. I also copied and pasted the connection code they provided me to add to the publishing wizard of VS2012. I tested the connection and it was successful. But when I publish, the website does not load and I get the following message

Model compatibility cannot be checked because the database does not contain model 

metadata. Model compatibility can only be checked for databases created using Code 

First or Code First Migrations.

Not Sure what is going on. I'm posting the connection strings in case you want to see them. But I really don't think they're the problem. Then again I've been wrong many times. :)

  <add name="DefaultConnection" connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=aspnetdb;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf" providerName="System.Data.SqlClient" />
  <add name="DefaultConnectionDeploy" connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=WebsiteManager;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\WebsiteManager.mdf" providerName="System.Data.SqlClient" />
  <add name="WebsiteManagerContext" connectionString="Data Source=(localdb)\v11.0; Initial Catalog=WebsiteManagerContext; Integrated Security=True; MultipleActiveResultSets=True; AttachDbFilename=|DataDirectory|WebsiteManagerContext.mdf" providerName="System.Data.SqlClient" />
  <add name="MusicContent" connectionString="Data Source=|DataDirectory|MusicContent.sdf" providerName="System.Data.SqlServerCe.4.0" />   

User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

This question has not been answered.

Create a free account to get help with this and any other question!