Sunlike ?面錯誤


在這??面發生了一?非預期的錯誤,??絡我?並告訴我?以下的相關錯誤?息.
錯誤發生的網址:http://localhost:8081/attn/_E-ClassSchedule_2.aspx?area=1&type=1
錯誤?息:
建立連接至 SQL Server 時,發生網路相關或執行個體特定的錯誤。找不到或無法存取伺服器。確認執行個名稱是否正確,以及 SQL Server 是否設定為允許遠端連線。 (provider: Named Pipes Provider, error: 40 - 無法開啟至 SQL Server 的連接)

Stack Trace:
System.Data.SqlClient.SqlException (0x80131904): 建立連接至 SQL Server 時,發生網路相關或執行個體特定的錯誤。找不到或無法存取伺服器。確認執行個名稱是否正確,以及 SQL Server 是否設定為允許遠端連線。 (provider: Named Pipes Provider, error: 40 - 無法開啟至 SQL Server 的連接) ---> System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified 於 System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager) 於 System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions) 於 System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions) 於 System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection) 於 System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection) 於 System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) 於 System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) 於 System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) 於 System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) 於 System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry) 於 System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) 於 System.Data.SqlClient.SqlConnection.Open() 於 System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) 於 System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) 於 System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) 於 Business.ConnectDB._Eserver_District_MasterForDistrict_ID(String District_ID) 於 C:\Ingram\Git\官網\AttnWeb\Business\ConnectDB.cs: 行 32 於 RWD._E_ClassSchedule_2.BindDropDownList() 於 C:\Ingram\Git\官網\AttnWeb\RWD\_E-ClassSchedule_2.aspx.cs: 行 82 於 RWD._E_ClassSchedule_2.Page_Load(Object sender, EventArgs e) 於 C:\Ingram\Git\官網\AttnWeb\RWD\_E-ClassSchedule_2.aspx.cs: 行 53 於 System.EventHandler.Invoke(Object sender, EventArgs e) 於 System.Web.UI.Control.OnLoad(EventArgs e) 於 System.Web.UI.Control.LoadRecursive() 於 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) ClientConnectionId:00000000-0000-0000-0000-000000000000 Error Number:2,State:0,Class:20