
问:“/”应用程序中的服务器错误。找不到网络路径。说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.ComponentModel.Win32Exception: 找不到网络路径。
源错误:
执行当前 Web 请求期间生成了未经处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。
堆栈跟踪:
[Win32Exception (0x: 找不到网络路径。] [SqlException (0x: 在与 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.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions) 38 System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection) 699 System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection) 89 System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) 426 System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) 78 System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) 191 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) 443 System.Data.SqlClient.SqlConnection.Open() 96 DBHelper.ExecuteDataTable(String strSql, ParameterList Parameters, Boolean IsScalar, ParameterList& outParameters) in e:\\Product\\tengqin\\MyOAProduct\\MYOA\\BusinessManagement.DAL\\DBHelper.cs:170 BusinessManagement.DAL.indexDAL.IsUserExists(String username, String password) in e:\\Product\\tengqin\\MyOAProduct\\MYOA\\BusinessManagement.DAL\\DAL\\indexDAL.cs:17 BusinessManagement.BLL.indexBLL.IsUserExists(String username, String password) in e:\\Product\\tengqin\\MyOAProduct\\MYOA\\BusinessManagement.BLL\\indexBLL.cs:13 index.btnOk_Click(Object sender, EventArgs e) in e:\\Product\\tengqin\\MyOAProduct\\BusinessMVCUI\\index.aspx.cs:53 System.Web.UI.WebControls.Button.OnClick(EventArgs e) System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) 204 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) 12 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) 15 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) 35 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 1738
版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.7.2106.0,登陆界面输入用户名和密码出现的错误
答:您好
原因是您程序中数据库连接信息有误导致,目前已帮您重新做了设置,但你数据库中没有任何表文件,请你参考教程 https://www.west.cn/faq/list.asp?unid=513 导入一下mssql数据库后再试 ,非常感谢您长期对我司的支持!