Commands out of sync; You can"t run this command nowDescription: 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: Devart.Data.MySql.MySqlException: Commands out of sync; You can"t run this command now
Source Error:
Line 29:Line 30: Line 31: @Html.Action("Index", "Theme", true)Line 32: @Html.Action("Index", "CustomContent", new { header = true }, true)Line 33:
Source File: C:GravityTalesViewsShared_Layout.cshtml Line: 31
Stack Trace:
[MySqlException (0x80004005): Commands out of sync; You can"t run this command now]Devart.Data.MySql.at.af() +129Devart.Data.MySql.af.a(Byte[] A_0, Int32 A_1, Boolean A_2, String A_3) +40Devart.Data.MySql.h.e() +160Devart.Data.MySql.MySqlCommand.InternalExecute(CommandBehavior behavior, IDisposable stmt, Int32 startRecord, Int32 maxRecords) +1617Devart.Common.DbCommandBase.ExecuteDbDataReader(CommandBehavior behavior, Boolean nonQuery) +925Devart.Common.DbCommandBase.ExecuteNonQuery() +32Devart.Data.MySql.MySqlConnection.o() +968Devart.Data.MySql.MySqlConnection.n() +117Devart.Data.MySql.MySqlConnection.m() +812GravityTales.Db.GravityTalesDb..ctor(String connStr) in C:GravityTalesGravityTalesDbGravityTalesDb.cs:24GravityTales.<>c.<>c__DisplayCla.s.s0_0`1.b__0(IComponentContext c, IEnumerable`1 p) +15Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) +32Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters) +111[DependencyResolutionException: An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = GravityTalesDb (DelegateActivator), Services = [GravityTales.Db.GravityTalesDb], Lifetime = Autofac.Core.Lifetime.MatchingScopeLifetime, Sharing = Shared, Owners.h.i.+p = OwnedByLifetimeScope ---> Commands out of sync; You can"t run this command now (See inner exception for details.)]Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters) +434Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func`1 creator) +150Autofac.Core.Resolving.InstanceLookup.Execute() +163Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters) +170Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance) +122Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters) +70Autofac.ResolutionExtensions.Resolve(IComponentContext context, IEnumerable`1 parameters) +96GravityTales.<>c.<>c__DisplayCla.s.s0_0`1.b__0(IComponentContext c, IEnumerable`1 p) +15Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) +32Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters) +111[DependencyResolutionException: An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = GravityTalesContext (DelegateActivator), Services = [GravityTales.Models.GravityTalesContext], Lifetime = Autofac.Core.Lifetime.MatchingScopeLifetime, Sharing = Shared, Owners.h.i.+p = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = GravityTalesDb (DelegateActivator), Services = [GravityTales.Db.GravityTalesDb], Lifetime = Autofac.Core.Lifetime.MatchingScopeLifetime, Sharing = Shared, Owners.h.i.+p = OwnedByLifetimeScope ---> Commands out of sync; You can"t run this command now (See inner exception for details.) (See inner exception for details.)]Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters) +434Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func`1 creator) +150Autofac.Core.Resolving.InstanceLookup.Execute() +163Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters) +170Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate() +124Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) +278Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters) +111[DependencyResolutionException: An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = UserService (ReflectionActivator), Services = [GravityTales.Services.IUserService], Lifetime = Autofac.Core.Lifetime.MatchingScopeLifetime, Sharing = Shared, Owners.h.i.+p = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = GravityTalesContext (DelegateActivator), Services = [GravityTales.Models.GravityTalesContext], Lifetime = Autofac.Core.Lifetime.MatchingScopeLifetime, Sharing = Shared, Owners.h.i.+p = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = GravityTalesDb (DelegateActivator), Services = [GravityTales.Db.GravityTalesDb], Lifetime = Autofac.Core.Lifetime.MatchingScopeLifetime, Sharing = Shared, Owners.h.i.+p = OwnedByLifetimeScope ---> Commands out of sync; You can"t run this command now (See inner exception for details.) (See inner exception for details.) (See inner exception for details.)]Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters) +434Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func`1 creator) +150Autofac.Core.Resolving.InstanceLookup.Execute() +163Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters) +170Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate() +124Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) +278Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters) +111[DependencyResolutionException: An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = ThemeController (ReflectionActivator), Services = [GravityTales.ChildControllers.ThemeController], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = None, Owners.h.i.+p = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = UserService (ReflectionActivator), Services = [GravityTales.Services.IUserService], Lifetime = Autofac.Core.Lifetime.MatchingScopeLifetime, Sharing = Shared, Owners.h.i.+p = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = GravityTalesContext (DelegateActivator), Services = [GravityTales.Models.GravityTalesContext], Lifetime = Autofac.Core.Lifetime.MatchingScopeLifetime, Sharing = Shared, Owners.h.i.+p = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = GravityTalesDb (DelegateActivator), Services = [GravityTales.Db.GravityTalesDb], Lifetime = Autofac.Core.Lifetime.MatchingScopeLifetime, Sharing = Shared, Owners.h.i.+p = OwnedByLifetimeScope ---> Commands out of sync; You can"t run this command now (See inner exception for details.) (See inner exception for details.) (See inner exception for details.) (See inner exception for details.)]Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters) +434Autofac.Core.Resolving.InstanceLookup.Execute() +177Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters) +170Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable`1 parameters) +109Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance) +122Autofac.ResolutionExtensions.ResolveOptionalService(IComponentContext context, Service service, IEnumerable`1 parameters) +70Autofac.Integration.Mvc.AutofacDependencyResolver.GetService(Type serviceType) +95Castle.Proxies.Invocations.IDependencyResolver_GetService.InvokeMethodOnTarget() +102Castle.DynamicProxy.AbstractInvocation.Proceed() +111Glimpse.Core.Extensions.AlternateMethodContextExtensions.TryProceedWithTimer(IAlternateMethodContext context, TimerResult& timerResult) +64Glimpse.Core.Extensibility.AlternateMethod.NewImplementation(IAlternateMethodContext context) +32Castle.DynamicProxy.AbstractInvocation.Proceed() +448Castle.Proxies.IDependencyResolverProxy.GetService(Type serviceType) +251System.Web.Mvc.DefaultControllerActivator.Create(RequestContext requestContext, Type controllerType) +59[InvalidOperationException: An error occurred when trying to create a controller of type "GravityTales.ChildControllers.ThemeController". Make sure that the controller has a parameterless public constructor.]System.Web.Mvc.DefaultControllerActivator.Create(RequestContext requestContext, Type controllerType) +240System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName) +103Castle.Proxies.Invocations.IControllerFactory_CreateController.InvokeMethodOnTarget() +154Castle.DynamicProxy.AbstractInvocation.Proceed() +111Glimpse.Core.Extensions.AlternateMethodContextExtensions.TryProceedWithTimer(IAlternateMethodContext context, TimerResult& timerResult) +64Glimpse.Core.Extensibility.AlternateMethod.NewImplementation(IAlternateMethodContext context) +32Castle.DynamicProxy.AbstractInvocation.Proceed() +448Castle.Proxies.IControllerFactoryProxy.CreateController(RequestContext requestContext, String controllerName) +270System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory) +268System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state) +95System.Web.Mvc.ServerExecuteHttpHandlerWrapper.Wrap(Func`1 func) +27System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride) +3614System.Web.HttpServerUtility.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage) +131System.Web.HttpServerUtility.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm) +36System.Web.Mvc.Html.ChildActionExtensions.ActionHelper(HtmlHelper htmlHelper, String actionName, String controllerName, RouteValueDictionary routeValues, TextWriter textWriter) +595System.Web.Mvc.Html.ChildActionExtensions.Action(HtmlHelper htmlHelper, String actionName, String controllerName, RouteValueDictionary routeValues) +114DevTrends.MvcDonutCaching.HtmlHelperExtensions.Action(HtmlHelper h, String actionName, String controllerName, RouteValueDictionary routeValues, Boolean excludeFromParentCache) in C:UsersmoonpykDoc.u.mentsVisual Studio 2013ProjectsMvcDonutCachingDevTrends.MvcDonutCachingHtmlHelperExtensions.cs:197DevTrends.MvcDonutCaching.HtmlHelperExtensions.Action(HtmlHelper h, String actionName, String controllerName, Boolean excludeFromParentCache) in C:UsersmoonpykDoc.u.mentsVisual Studio 2013ProjectsMvcDonutCachingDevTrends.MvcDonutCachingHtmlHelperExtensions.cs:78ASP._Page_Views_Shared__Layout_cshtml.Execute() in C:GravityTalesViewsShared_Layout.cshtml:31System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +253System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +148System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +122System.Web.WebPages.<>c__DisplayCla.s.s3.b__2(TextWriter writer) +311System.Web.WebPages.WebPageBase.Write(HelperResult result) +108System.Web.WebPages.WebPageBase.RenderSurrounding(String partialViewName, Action`1 body) +89System.Web.WebPages.WebPageBase.PopContext() +310System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +375System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +90System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +833System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +81System.Web.Mvc.Async.<>c__DisplayCla.s.s21.b__1e(IAsyncResult asyncResult) +186System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +38System.Web.Mvc.Controller.b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +29System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +65System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +53System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +36System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +38System.Web.Mvc.MvcHandler.b__5(IAsyncResult asyncResult, ProcessRequestState innerState) +44System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +65System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +38System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +399System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +137