Programming
Deployment and configuration of database with Azure

Question Description

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. :)


<connectionStrings>
  <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" />   
  </connectionStrings>

Student has agreed that all tutoring, explanations, and answers provided by the tutor will be used to help in the learning process and in accordance with 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!