【发布时间】:2023-03-07 22:26:01
【问题描述】:
我的代码在本地工作,连接字符串指向 AZURE SQL SERVER。但是,一旦我发布到 Azure 网站,每个带有 EF 模型的视图都会引发此错误。 我已将“更改为”作为建议的解决方案之一,但没有任何效果。 我卡住了!!
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)
【问题讨论】:
-
请张贴连接字符串。
标签: c# asp.net-mvc entity-framework azure