[英]The provider did not return a ProviderManifestToken string EF
我正在嘗試連接到遠程數據庫,這是我的connectionString:
<add name="myprojectname.DataContext.Models.FBAppContext"
connectionString="Server=xxx.xx.xxx.190,1433;database=myprojectname;Integrated Security=true"
providerName="System.Data.SqlClient"/>
我正在嘗試其他connectionStrings像:
<add name="myprojectname.DataContext.Models.FBAppContext"
connectionString="Data Source=xxx.xx.xxx.190,1433\myprojectname-SQL1;Initial Catalog=myprojectname;Integrated Security=true"
providerName="System.Data.SqlClient"/>
端口1433已打開
我得到一個錯誤:從數據庫獲取提供程序信息時發生錯誤。 這可能是由於實體框架使用錯誤的連接字符串引起的。 檢查內部異常以獲取詳細信息,並確保連接字符串正確。 內部異常:提供程序未返回ProviderManifestToken字符串。
嘗試
connectionString="Data Source=xxx.xx.xxx.190,1433;Initial Catalog=Alllarm;Integrated Security=true"
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.