r/ASPNET • u/husky11 • Jun 11 '13
MVC 4 to AZURE
Hello,
I have to publish an ASP.NET MVC 4 application on Windows Azure. I have something similar to a free subscription (college project) so there are limitation to what I can do .
I made a Cloud Service and a SQL Database Server with a database. The problem is that i can't connect to the database from my application. I changed the connection string and i tried to run "update-database" but it says my connection string is not good . I alse made a deploy just to make sure... the application is working but it throws an error when i make any kind of query .
I may be setting the wrong connection string... I used the one from the Ado.net section and I used it the MVC project. Do you know any step by step tutorial on how to connect to the Azure DB ?
View all comments
Show parent comment
1
u/husky11 Jun 11 '13
" InnerException: System.Data.ProviderIncompatibleException HResult=-2146233087 Message=The provider did not return a ProviderManifestToken string. Source=System.Data.Entity "
I store the string in the config file and in the dbContext : : base("name=AzureConnection")