我的代碼在本地工作,連接字符串指向AZURE SQL SERVER。但是,只要我發佈到Azure網站,每個包含EF模型的視圖都會引發此錯誤。 我已將"更改爲'作爲建議的解決方案之一,沒有任何工作。 我卡住了!實體框架4.3 Windows Azure不支持的關鍵字:'元數據'
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)
請發佈連接字符串。 – mawburn