My Code works locally, with connection string pointing to AZURE SQL SERVER. But as soon as i publish to Azure Web Site every View with EF Model throws this error.
I have change the " to ‘ as one of the proposed solutions, nothing works.
Im stuck!!
System.Data.EntityException: The underlying provider failed on ConnectionString. ---> System.ArgumentException: Keyword not supported: 'metadata'.
at System.Data.Common.DbConnectionOptions.ParseInternal(Hashtable parsetable, String connectionString, Boolean buildChain, Hashtable synonyms, Boolean firstKey)
at System.Data.Common.DbConnectionOptions..ctor(String connectionString, Hashtable synonyms, Boolean useOdbcRules)
at System.Data.SqlClient.SqlConnectionString..ctor(String connectionString)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions(String connectionString, DbConnectionOptions previous)
If you have MultipleActiveResultSets=True in your connection string then please remove it and the same connection string should work in Windows Azure. I found this being most common error in your situation.
If that is not the case, please post your connection string and I will take a look.