Server Error in '/' Application. There is already an open DataReader associated with this Command which must be closed first. 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: There is already an open DataReader associated with this Command which must be closed first. Source Error: Line 132: var children = StoreDataContext.Current.CategorySet.Include( "Locale" ).Include( "Locale.Language" ).Where( c => c.Parent.ID == parentCategory.ID ); Line 133: Line 134: foreach (var category in children) Line 135: { Line 136: var locale = category.Locale.FirstOrDefault(x => x.Language.ID == lang.CurrentCultureID) Source File: x:\AtilektHostingData\Sites\avista08.ru\App_Code\Atilekt.CMS.Modules.SiteMap.cs Line: 134 Stack Trace: [InvalidOperationException: There is already an open DataReader associated with this Command which must be closed first.] System.Data.SqlClient.SqlInternalConnectionTds.ValidateConnectionForExecute(SqlCommand command) +5287423 System.Data.SqlClient.SqlConnection.ValidateConnectionForExecute(String method, SqlCommand command) +20 System.Data.SqlClient.SqlCommand.ValidateCommand(String method, Boolean async) +155 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite) +82 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +53 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +134 System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) +41 System.Data.Common.DbCommand.ExecuteReader(CommandBehavior behavior) +10 System.Data.EntityClient.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior) +437 [EntityCommandExecutionException: An error occurred while executing the command definition. See the inner exception for details.] System.Data.EntityClient.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior) +507 System.Data.Objects.Internal.ObjectQueryExecutionPlan.Execute(ObjectContext context, ObjectParameterCollection parameterValues) +730 System.Data.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption) +131 System.Data.Objects.ObjectQuery`1.System.Collections.Generic.IEnumerable<T>.GetEnumerator() +36 Atilekt.CMS.Modules.SiteMap.SiteMap.GetCatalogChildren(Category parentCategory, SiteMapItem parent, SiteLanguage lang) in x:\AtilektHostingData\Sites\avista08.ru\App_Code\Atilekt.CMS.Modules.SiteMap.cs:134 Atilekt.CMS.Modules.SiteMap.SiteMap.GetCatalogChildren(Category parentCategory, SiteMapItem parent, SiteLanguage lang) in x:\AtilektHostingData\Sites\avista08.ru\App_Code\Atilekt.CMS.Modules.SiteMap.cs:150 Atilekt.CMS.Modules.SiteMap.SiteMap.GetChildren(SiteMapItem parent, String filter, SiteLanguage lang) in x:\AtilektHostingData\Sites\avista08.ru\App_Code\Atilekt.CMS.Modules.SiteMap.cs:115 Atilekt.CMS.Modules.SiteMap.SiteMap.GetRoot(SiteQueryString qs, String filter, SiteLanguage lang) in x:\AtilektHostingData\Sites\avista08.ru\App_Code\Atilekt.CMS.Modules.SiteMap.cs:205 Atilekt.CMS.Modules.SiteMap.SiteMap.GetRoot(SiteQueryString qs, SiteLanguage lang) in x:\AtilektHostingData\Sites\avista08.ru\App_Code\Atilekt.CMS.Modules.SiteMap.cs:186 Moduls_SiteMap_client.BindSiteMap() in x:\AtilektHostingData\Sites\avista08.ru\Moduls\SiteMap\client.ascx.cs:19 Moduls_SiteMap_client.Page_Load(Object sender, EventArgs e) in x:\AtilektHostingData\Sites\avista08.ru\Moduls\SiteMap\client.ascx.cs:13 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51 System.Web.UI.Control.OnLoad(EventArgs e) +92 System.Web.UI.Control.LoadRecursive() +54 System.Web.UI.Control.LoadRecursive() +145 System.Web.UI.Control.LoadRecursive() +145 System.Web.UI.Control.LoadRecursive() +145 System.Web.UI.Control.LoadRecursive() +145 System.Web.UI.Control.LoadRecursive() +145 System.Web.UI.Control.LoadRecursive() +145 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772 Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18056