亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

VS 2017 ADO.NET 鏈接 SQL server 數據庫,一直鏈接不不上,請大神解答!

VS 2017 ADO.NET 鏈接 SQL server 數據庫,一直鏈接不不上,請大神解答!

qq_企鵝_13 2018-01-09 17:52:39
一直鏈接不上數據庫,行27報錯,請大神解答!謝謝!“/”應用程序中的服務器錯誤。系統找不到指定的文件。說明:?執行當前 Web 請求期間,出現未經處理的異常。請檢查堆棧跟蹤信息,以了解有關該錯誤以及代碼中導致錯誤的出處的詳細信息。?異常詳細信息:?System.ComponentModel.Win32Exception: 系統找不到指定的文件。源錯誤:?行 25: ? ? ? ? private void UserDisPlay()行 26: ?{行 27: ? ? ? ? ? ? sqlConn.Open();行 28: 行 29: ? ? ? ? ? ? string mySQL = "SELECT * FORM userLogin"; ? ?源文件:?E:\NET\NewuserLogin\NewuserLogin\WebForm1.aspx.cs??? 行:?27?堆棧跟蹤:?[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) +1379 ? System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions) +452 ? System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions) +70 ? System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection) +927 ? System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection) +109 ? System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) +1550 ? System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) +117 ? System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) +258 ? System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +314 ? System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry) +126 ? System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) +255 ? System.Data.SqlClient.SqlConnection.Open() +128 ? NewuserLogin.WebForm1.UserDisPlay() in E:\NET\NewuserLogin\NewuserLogin\WebForm1.aspx.cs:27 ? NewuserLogin.WebForm1.Page_Load(Object sender, EventArgs e) in E:\NET\NewuserLogin\NewuserLogin\WebForm1.aspx.cs:21 ? System.Web.UI.Control.OnLoad(EventArgs e) +103 ? System.Web.UI.Control.LoadRecursive() +68 ? System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1381 ? ?版本信息:?Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.7.2556.0
查看完整描述

1 回答

?
qq_小阿婷_bjqGV5

TA貢獻1條經驗 獲得超0個贊

我也是同樣的問題,煩

查看完整回答
反對 回復 2018-12-22
  • 1 回答
  • 0 關注
  • 4087 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號