Server Error in '/' Application.

ExecuteReader requires an open and available Connection. The connection's current state is connecting.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: ExecuteReader requires an open and available Connection. The connection's current state is connecting.

Source Error:


Line 1:  <%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="product_details.aspx.cs" Inherits="Products_product_details" %>
Line 2:  <%@ Register Src="../Controls/Products/ProductDetails.ascx" TagName="ProductDetails"
Line 3:      TagPrefix="uc1" %>

Source File: c:\Sites\thegioiphimhd.com\httpdocs\products\product_details.aspx    Line: 1

Stack Trace:


[InvalidOperationException: ExecuteReader requires an open and available Connection. The connection's current state is connecting.]
   System.Data.SqlClient.SqlConnection.GetOpenConnection(String method) +5092944
   System.Data.SqlClient.SqlConnection.ValidateConnectionForExecute(String method, SqlCommand command) +11
   System.Data.SqlClient.SqlCommand.ValidateCommand(String method, Boolean async) +144
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +87
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +32
   System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +141
   System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior) +70
   DiamonSoft.SqlDataProvider.CommonSqlDataProviders.Config_getAll() in E:\DTC\Projects\WebApplication\thegioiphimhd\Version2\Source\Client\DiamonSoft.SqlDataProvider\Common\CommonSqlDataProviders.cs:59
   DiamonSoft.Components.Config.getAll() +45
   DiamonSoft.Components.AppConfiguration..ctor() +43
   DiamonSoft.Components.AppConfiguration.GetConfig() +135
   DiamonSoft.Components.Utils.getLang() +200
   DiamonSoft.Controls.BasePage.InitializeCulture() in E:\DTC\Projects\WebApplication\thegioiphimhd\Version2\Source\Client\DiamonSoft.Controls\BasePage.cs:9
   ASP.products_product_details_aspx.__BuildControlTree(products_product_details_aspx __ctrl) in c:\Sites\thegioiphimhd.com\httpdocs\products\product_details.aspx:1
   ASP.products_product_details_aspx.FrameworkInitialize() in c:\Sites\thegioiphimhd.com\httpdocs\products\product_details.aspx.cs:912307
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +54
   System.Web.UI.Page.ProcessRequest() +78
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
   System.Web.UI.Page.ProcessRequest(HttpContext context) +49
   ASP.products_product_details_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\6ab71c4a\ab6c7c49\App_Web_0jey50g2.4.cs:0
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1031