“/”应用程序中的服务器错误。

指定的网络名不再可用。

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.ComponentModel.Win32Exception: 指定的网络名不再可用。

源错误:


行 58:                 if (!int.TryParse(c, out TypeId))
行 59:                 {
行 60:                     TypeId = ProTypeManager.GetProTypeByPinYin(c);
行 61:                 }
行 62:                 if (TypeId > 0)

源文件: c:\WebSite\maimaib2b\Pages\CompanyList.aspx.cs    行: 60

堆栈跟踪:


[Win32Exception (0x80004005): 指定的网络名不再可用。]

[SqlException (0x80131904): 已成功与服务器建立连接,但是在登录前的握手期间发生错误。 (provider: TCP Provider, error: 0 - 指定的网络名不再可用。)]
   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
   DAL.SqlHelper.ExecuteDataset(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) in D:\Work\MaimaiB2B\Library\DAL\DAL\DataAccess\SqlHelper.cs:608
   DAL.BusinessLogicBase.Select(String sql, SqlParameter[] pars) in D:\Work\MaimaiB2B\Library\DAL\DAL\Base\BusinessLogicBase.cs:528
   BLL.ProTypeManager.GetProTypeByPinYin(String pinyin) in D:\Work\MaiMaiB2B\Library\BLL\BLL\ProTypeManager.cs:109
   CompanyList.get_CurrentProType() in c:\WebSite\maimaib2b\Pages\CompanyList.aspx.cs:60
   CompanyList.Page_Load(Object sender, EventArgs e) in c:\WebSite\maimaib2b\Pages\CompanyList.aspx.cs:95
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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