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

在与 SQL Server 建立连接时出现与网络相关的或特定于实例的错误。未找到或无法访问服务器。请验证实例名称是否正确并且 SQL Server 已配置为允许远程连接。 (provider: 命名管道提供程序, error: 40 - 无法打开到 SQL Server 的连接)

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

异常详细信息: System.Data.SqlClient.SqlException: 在与 SQL Server 建立连接时出现与网络相关的或特定于实例的错误。未找到或无法访问服务器。请验证实例名称是否正确并且 SQL Server 已配置为允许远程连接。 (provider: 命名管道提供程序, error: 40 - 无法打开到 SQL Server 的连接)

源错误:

行 467:        {
行 468:            List<Food> _foodList = new List<Food>();
行 469:            _foodList = FoodDAL.dal.GetList(strWhere, 20, int.Parse(iMultipleIDEnum[10]), true, "*", "BaseInfoID");
行 470:            return _foodList;
行 471:        }

源文件: g:\5_program\spk.rebeccalion.com\Multiple.aspx.cs    行: 469

堆栈跟踪:

[SqlException (0x80131904): 在与 SQL Server 建立连接时出现与网络相关的或特定于实例的错误。未找到或无法访问服务器。请验证实例名称是否正确并且 SQL Server 已配置为允许远程连接。 (provider: 命名管道提供程序, error: 40 - 无法打开到 SQL Server 的连接)]
   System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +428
   System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +65
   System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +499
   System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +65
   System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +117
   System.Data.SqlClient.SqlConnection.Open() +122
   System.Data.SqlClient.SqlConnection.Open() +122
   Microsoft.Practices.EnterpriseLibrary.Data.Database.GetNewOpenConnection() +56
   Microsoft.Practices.EnterpriseLibrary.Data.Database.GetNewOpenConnection() +137
   Microsoft.Practices.EnterpriseLibrary.Data.Database.GetOpenConnection(Boolean disposeInnerConnection) +74
   Microsoft.Practices.EnterpriseLibrary.Data.Database.ExecuteReader(DbCommand command) +41
   com.jk39.BLL.DataCenter.BaseInfoBaseBLL`1.GetDataReaderByPage(String strWhere, Int32 PageSize, Int32 PageIndex, Boolean OrderType, String colList, String fldOrder, String tblName) +183
   Microsoft.Practices.EnterpriseLibrary.Data.Database.GetNewOpenConnection() +99
   com.jk39.DAL.Base.BaseDAL`1.GetList(String strWhere, Int32 PageSize, Int32 PageIndex, Boolean bOrderType, String colList, String fldOrder) +117
   Multiple.get_foodList() in g:\5_program\spk.39.net\Multiple.aspx.cs:469
   Multiple.get_sFood() in g:\5_program\spk.39.net\Multiple.aspx.cs:480
   ASP.multiple_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in g:\5_program\spk.39.net\Multiple.aspx:181
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +256
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   Microsoft.Practices.EnterpriseLibrary.Data.Database.GetNewOpenConnection() +137
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266
   Microsoft.Practices.EnterpriseLibrary.Data.Database.ExecuteReader(DbCommand command) +41
   com.jk39.BLL.DataCenter.BaseInfoBaseBLL`1.GetDataReaderByPage(String strWhere, Int32 PageSize, Int32 PageIndex, Boolean OrderType, String colList, String fldOrder, String tblName) +183
   com.jk39.BLL.DataCenter.BaseInfoBaseBLL`1.GetList(String strWhere, Int32 PageSize, Int32 PageIndex, Boolean bOrderType, String colList, String fldOrder, String sTableName) +151
   com.jk39.DAL.Base.BaseDAL`1.GetList(String strWhere, Int32 PageSize, Int32 PageIndex) +125
   Search.get_foodList() in g:\5_program\spk.39.net\Search.aspx.cs:674
   ASP.search_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in g:\5_program\spk.39.net\Search.aspx:154
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +256
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266


版本信息: Microsoft .NET Framework 版本:2.0.50727.3625; ASP.NET 版本:2.0.50727.3634

优乐娱乐国际u乐彩票u乐真人视讯