[InvalidOperationException: ExecuteReader requires an open and available Connection. The connection's current state is open.]
System.Data.SqlClient.SqlConnection.GetOpenConnection(String method) +3334676
System.Data.SqlClient.SqlConnection.ValidateConnectionForExecute(String method, SqlCommand command) +100
System.Data.SqlClient.SqlCommand.ValidateCommand(String method, Boolean async) +314
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) +156
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +84
System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +207
System.Data.EntityClient.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior) +478
[EntityCommandExecutionException: An error occurred while executing the command definition. See the inner exception for details.]
System.Data.EntityClient.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior) +692
System.Data.Objects.Internal.ObjectQueryExecutionPlan.Execute(ObjectContext context, ObjectParameterCollection parameterValues) +947
System.Data.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption) +218
System.Data.Objects.ObjectQuery`1.System.Collections.Generic.IEnumerable<T>.GetEnumerator() +41
System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +430
System.Linq.Enumerable.ToList(IEnumerable`1 source) +73
Hospital.Adminpanel.CategoryManager.CategoryManager.GetSubCategory(Int32 Type) +596
Hospital.Default.LeftBind() +69
Hospital.Default.Page_Load(Object sender, EventArgs e) +670
System.Web.UI.Control.OnLoad(EventArgs e) +108
System.Web.UI.Control.LoadRecursive() +90
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533
|