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