我使用實體框架製作了MVC API
。它工作得很好我的電腦爲localhost上的Visual Studio 當我發表它,我主持了API和myasp.net數據庫來測試它和剛剛更換此ConnectionString的:實體框架錯誤關鍵字不支持:provider r nconnection字符串
<add name="ENGeekEntities" connectionString="metadata=res://*/Models.operation.csdl|res://*/Models.operation.ssdl|res://*/Models.operation.msl;provider=System.Data.SqlClient;provider connection string="data source=.\SQLEXPRESS;initial catalog=ENGeek;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" />
與網站的ConnectionString:
<add name="ENGeekEntities" connectionString="metadata=res://*/Models.operation.csdl|res://*/Models.operation.ssdl|res://*/Models.operation.msl;provider=System.Data.SqlClient;provider
connection string="Data Source=SQL5025.myASP.NET;Initial Catalog=DB_A0A604_ENGeek;User Id=DB_A0A604_ENGeek_admin;Password=MyPassword;App=EntityFramework"" providerName="System.Data.EntityClient" />
當我試圖讓數據它給了我這個錯誤:
"Message":"An error has occurred.","ExceptionMessage":"Keyword not supported: 'provider \r\nconnection string'"
任何想法!
編輯你的問題,加上內部異常解決 –
我應該怎麼做才能得到內部異常 –
點擊查看詳細信息 - >時錯誤或異常發生的InnerException –