System.Data.SqlClient.SqlException (0x80131904): 建立連接至 SQL Server 時,發生網路相關或執行個體特定的錯誤。找不到或無法存取伺服器。確認執行個名稱是否正確,以及 SQL Server 是否設定為允許遠端連線。 (provider: Named Pipes Provider, error: 40 - 無法開啟至 SQL Server 的連接) ---> System.ComponentModel.Win32Exception (0x80004005): 系統找不到指定的檔案。
於 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()
於 Microsoft.Practices.EnterpriseLibrary.Data.Database.OpenConnection()
於 Microsoft.Practices.EnterpriseLibrary.Data.Database.ExecuteNonQuery(DbCommand command)
於 MaxFrame2005.Base.ExecuteSqlServerDAL.ExecuteSQLString(String cmdText) 於 C:\Inetpub\wwwroot\TCFP\TCFP.Services\ExecuteSqlServerDAL.cs: 行 123
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:2,State:0,Class:20
系統找不到指定的檔案。
'/2015' 應用程式中發生伺服器錯誤。
系統找不到指定的檔案。
描述: 在執行目前 Web 要求的過程中發生未處理的例外狀況。請檢閱堆疊追蹤以取得錯誤的詳細資訊,以及在程式碼中產生的位置。
例外狀況詳細資訊: System.ComponentModel.Win32Exception: 系統找不到指定的檔案。
原始程式錯誤:
行 31: using (var context = new DataClassesDataContext())
行 32: {
行 33: var menuData = new HashSet<T_PACTContent>(context.T_PACTContent.Where(x => x.language == Language && x.AreaType == 2 && x.StatePart == 1).OrderBy(x => x.Seq));
行 34: var menu = new List<MenuItem>();
行 35: foreach (var id in _menuMap[Language])
|
原始程式檔: c:\Web\2015\157taipeicaf.Web\Controls\TopMenu.ascx.cs 行: 33
堆疊追蹤:
[Win32Exception (0x80004005): 系統找不到指定的檔案。]
[SqlException (0x80131904): 建立連接至 SQL Server 時,發生網路相關或執行個體特定的錯誤。找不到或無法存取伺服器。確認執行個名稱是否正確,以及 SQL Server 是否設定為允許遠端連線。 (provider: Named Pipes Provider, error: 40 - 無法開啟至 SQL Server 的連接)]
System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) +353
System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) +118
System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) +268
System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +315
System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry) +128
System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) +265
System.Data.SqlClient.SqlConnection.Open() +133
System.Data.Linq.SqlClient.SqlConnectionManager.UseConnection(IConnectionUser user) +59
System.Data.Linq.SqlClient.SqlProvider.get_IsSqlCe() +43
System.Data.Linq.SqlClient.SqlProvider.InitializeProviderMode() +28
System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) +67
System.Data.Linq.DataQuery`1.System.Collections.Generic.IEnumerable<T>.GetEnumerator() +55
System.Collections.Generic.HashSet`1.UnionWith(IEnumerable`1 other) +87
System.Collections.Generic.HashSet`1..ctor(IEnumerable`1 collection, IEqualityComparer`1 comparer) +209
Controls_TopMenu.OnInit(EventArgs e) in c:\Web\2015\157taipeicaf.Web\Controls\TopMenu.ascx.cs:33
System.Web.UI.Control.InitRecursive(Control namingContainer) +173
System.Web.UI.Control.InitRecursive(Control namingContainer) +380
System.Web.UI.Control.InitRecursive(Control namingContainer) +380
System.Web.UI.Control.InitRecursive(Control namingContainer) +380
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +491
|
版本資訊: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.8.4797.0