HI,基礎提供無法打開
我使用VS2010和與微軟的實體框架4.0
我在Windows應用程序的工作工作。我在我的申請中綁定了幾個組合;它工作正常。
void BindNatureOfIndustryCombo()
{
using (var obj = new EASDBEntitiesCon())
{
var natureOfIndustryColl = from c in obj.IndustryTypes select c;
var natureOfIndustryList = natureOfIndustryColl.ToList();
cmbNatureOfIndustry.DataSource = natureOfIndustryList;
cmbNatureOfIndustry.DisplayMember = "IndustryType";
cmbNatureOfIndustry.ValueMember = "IndustryTypeID";
}
}
的ConnectionString是
<add name="EntrpriseApplicationSuit.Properties.Settings.EASDBConnectionString" connectionString="Data Source=192.168.0.150\GSERVER;Initial Catalog=EASDB;Persist Security Info=True;User ID=sa;Password=$1234;MultipleActiveResultSets=True" providerName="System.Data.SqlClient" />
但是,當我開始我的另一個系統上的應用程序,它提供了錯誤:
底層提供無法打開
爲什麼此錯誤是否發生?解決方案是什麼?
它是正確的,因爲我,當我在我的系統上運行此說,其工作正常,當我運行任何其他系統上這個應用程序,然後把它交給錯誤,每一件事情是正確的服務器名,ID,密碼,數據庫名稱的每一件事是正確的我檢查很仔細 – Nagendra 2011-02-25 08:10:48
@Nagendra:你檢查,如果你實際上是能夠連接到從您的應用程序出現故障的機器指定的SQL Server? – Nauman 2011-02-25 10:23:07