System.Data.SqlClient.SqlException: 建立連接至 SQL Server 時,發生網路相關或執行個體特定的錯誤。找不到或無法存取伺服器。確認執行個名稱是否正確,以及 SQL Server 是否設定為允許遠端連線。 (provider: 具名的管線提供者, error: 40 - 無法開啟至 SQL Server 的連接) 於 System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) 於 System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) 於 System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) 於 System.Data.SqlClient.SqlConnection.Open() 於 System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection, ConnectionState& originalState) 於 System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) 於 System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) 於 System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) 於 Taknow.Utility.SqlQuery.GetDataTable(String sqlQuery, SqlConnection connection) 於 Index2.Page_Load(Object sender, EventArgs e) 於 D:\Naffic\OnProduction\Agribank_Other\Index2.aspx.vb: 行 21