「/」應用程序中的伺服器錯誤。

找不到網路路徑。

說明: 執行當前 Web 請求期間,出現未經處理的異常。請檢查堆棧跟蹤信息,以了解有關該錯誤以及代碼中導致錯誤的出處的詳細信息。

異常詳細信息: System.ComponentModel.Win32Exception: 找不到網路路徑。

源錯誤:


行 31:             this.Reppromenu.DataBind();
行 32: 
行 33:             this.RepInves.DataSource = CompanyClass.GetList(" and ParentID=12");
行 34:             this.RepInves.DataBind();
行 35:         }

源文件: d:\webhosting\clients\38c396d1-eb5a-4d57-8258-bb49e8cb25f7\wwwroot\Control\MenuControl.ascx.cs    行: 33

堆棧跟蹤:


[Win32Exception (0x80004005): 找不到網路路徑。]

[SqlException (0x80131904): 在與 SQL Server 建立連接時出現與網路相關的或特定於實例的錯誤。未找到或無法訪問伺服器。請驗證實例名稱是否正確並且 SQL Server 已配置為允許遠程連接。 (provider: Named Pipes Provider, error: 40 - 無法打開到 SQL Server 的連接)]
   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) +821
   System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions) +332
   System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup, DbConnectionOptions userOptions) +38
   System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) +507
   System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +154
   System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +21
   System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry) +90
   System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) +209
   System.Data.SqlClient.SqlConnection.Open() +96
   SiMaike.DBUtility.SQLHelper.PrepareCommand(SqlCommand cmd, SqlConnection conn, SqlTransaction trans, CommandType cmdType, String cmdText, SqlParameter[] cmdParms) in F:\Web\smk_斯邁柯\SiMaike\DBUtility\SQLHelper.cs:135
   SiMaike.DBUtility.SQLHelper.ExecuteReader(String connectionString, CommandType cmdType, String cmdText, SqlParameter[] commandParameters) in F:\Web\smk_斯邁柯\SiMaike\DBUtility\SQLHelper.cs:47
   SiMaike.SQLServerDAL.CompanyClass.GetList(String sqlWhere) in F:\Web\smk_斯邁柯\SiMaike\SQLServerDAL\CompanyClass.cs:86
   SiMaike.BLL.CompanyClass.GetList(String sqlWhere) in F:\Web\smk_斯邁柯\SiMaike\BLL\CompanyClass.cs:27
   SiMaike.Web.MenuControl.BindData() in d:\webhosting\clients\38c396d1-eb5a-4d57-8258-bb49e8cb25f7\wwwroot\Control\MenuControl.ascx.cs:33
   SiMaike.Web.MenuControl.Page_Load(Object sender, EventArgs e) in d:\webhosting\clients\38c396d1-eb5a-4d57-8258-bb49e8cb25f7\wwwroot\Control\MenuControl.ascx.cs:18
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.7.2623.0