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

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

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

异常详细信息: System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

源错误:


行 114:            <dl>
行 115:                <dt>Stone Color</dt>
行 116:                <%if (Colors != null && Colors.Count > 0)
行 117:          { %>
行 118:                <dd class="category_Color">

源文件: d:\web\bistonescom6.0\Themes\english\Top.html    行: 116

堆栈跟踪:


[SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)]
   System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +428
   System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +65
   System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +117
   System.Data.SqlClient.SqlConnection.Open() +122
   Gaoth.B2B.MSSQLHelper.SqlHelper.PrepareCommand(SqlCommand cmd, SqlConnection conn, SqlTransaction trans, CommandType cmdType, String cmdText, SqlParameter[] cmdParms) in F:\工作包\百石网6.0\Gaoth.B2B.MSSQLHelper\SQLHelper.cs:178
   Gaoth.B2B.MSSQLHelper.SqlHelper.ExecuteReader(String cmdText, SqlParameter[] commandParameters) in F:\工作包\百石网6.0\Gaoth.B2B.MSSQLHelper\SQLHelper.cs:124
   Gaoth.B2B.DataProvider.ColorDataProvider.GetColors(Int32 pageIndex, Int32 pageSize, Int32& pageCount, Int32& totalCount, ColorMode colorMode, String[] parms) in F:\工作包\百石网6.0\Gaoth.B2B.MSSQLDataProvider\B2BMSSQLDataProvider\ColorDataProvider.cs:201
   Gaoth.B2B.Core.ColorManager.GetColors(Int32 pageIndex, Int32 pageSize, Int32& pageCount, Int32& totalCount, ColorMode colorMode, String[] parms) in F:\工作包\百石网6.0\Gaoth.B2B.Core\BLL\Manager\ColorManager.cs:37
   Gaoth.B2B.Core.ColorManager.GetColors(Int32 pageIndex, Int32 pageSize, Int32& pageCount, Int32& totalCount, Dictionary`2 orderFields, ColorInfo colorInfo, String[] parms) in F:\工作包\百石网6.0\Gaoth.B2B.Core\BLL\Manager\ColorManager.cs:160
   Gaoth.B2B.Core.ColorManager.GetColorsByDropDownList(CheckStateType checkStateType) in F:\工作包\百石网6.0\Gaoth.B2B.Core\BLL\Manager\ColorManager.cs:124
   Gaoth.B2B.Core.BasePage.get_Colors() in F:\工作包\百石网6.0\Gaoth.B2B.Core\Web\Controls\BasePage.cs:1520
   ASP.themes_english_login_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in d:\web\bistonescom6.0\Themes\english\Top.html:116
   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.4234; ASP.NET 版本:2.0.50727.4223