Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Richard Brookes 34 posts 57 karma points
    May 24, 2012 @ 08:38
    Richard Brookes
    0

    5.1 Save and Publish Error

    I am suddenly seeing an error each time I try to save or save and publish a node. I have been publishing items with no issues. This has suddenly occurred.

    Server Error in '/' Application.

    Specified cast is not valid.

    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.InvalidCastException: Specified cast is not valid.

    Source Error: 

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


    Stack Trace: 

    [InvalidCastException: Specified cast is not valid.]
       Umbraco.Framework.Persistence.RdbmsModel.Mapping.ModelToRdbmsMapper.MapAttribute(TypedAttribute source, Attribute destination, AbstractLookupHelper lookupHelper, AbstractMappingEngine masterMapper) +2915
       Umbraco.Framework.Persistence.RdbmsModel.Mapping.ModelToRdbmsMapper.MapAttribute(TypedAttribute attribute, AbstractLookupHelper lookupHelper, AbstractMappingEngine masterMapper) +221
       Umbraco.Framework.Persistence.RdbmsModel.Mapping.<>c__DisplayClass4.<MapVersion>b__1(TypedAttribute sourceTypedAttribute) +52
       Umbraco.Framework.Persistence.RdbmsModel.Mapping.ModelToRdbmsMapper.MergeMapCollections(IEnumerable`1 source, ICollection`1 destination, Action`2 mapInPlace, Func`2 mapWithOutput, Action`2 afterMap, Func`3 extraComparison) +1376
       Umbraco.Framework.Persistence.RdbmsModel.Mapping.ModelToRdbmsMapper.MapVersion(TypedEntity source, NodeVersion destination, Node masterNode, AbstractLookupHelper lookupHelper, AbstractMappingEngine masterMapper) +409
       Umbraco.Framework.Persistence.RdbmsModel.Mapping.ModelToRdbmsMapper.MapTypedEntityForRevision(TypedEntity source, NodeVersion destinationVersion, AbstractLookupHelper lookupHelper, AbstractMappingEngine masterMapper) +325
       Umbraco.Framework.Persistence.RdbmsModel.Mapping.ModelToRdbmsMapper.MapFromRevision(IRevision`1 source, NodeVersion destination, AbstractLookupHelper lookupHelper, AbstractMappingEngine masterMapper) +136
       Umbraco.Framework.TypeMapping.<>c__DisplayClass2`2.<Add>b__1(Object source, Object dest, AbstractLookupHelper lookup, AbstractMappingEngine masterMapper) +145
       Umbraco.Framework.Persistence.RdbmsModel.Mapping.ManualMapperv2.Map(Object source, Object destination, Type sourceType, Type destinationType) +484
       Umbraco.Framework.Persistence.RdbmsModel.Mapping.ManualMapperv2.Map(Object source, Type sourceType, Type destinationType) +826
       Umbraco.Framework.TypeMapping.MappingEngineCollection.Map(Object source, Type sourceType, Type destinationType) +82
       Umbraco.Framework.TypeMapping.AbstractMappingEngine.Map(Object source) +152
       Umbraco.Framework.Persistence.NHibernate.RevisionRepository.TryUpdateExisting(Revision`1 persistedEntity) +1254
       Umbraco.Framework.Persistence.NHibernate.RevisionRepository.PerformAdd(Revision`1 revision) +350
       Umbraco.Hive.ProviderSupport.AbstractRevisionRepository`1.AddOrUpdate(Revision`1 revision) +772
       Umbraco.Hive.ProviderGrouping.RepositoryGroupExtensions.Add(IEnumerable`1 repositories, Revision`1 item, Uri idRoot) +288
       Umbraco.Hive.ProviderGrouping.<>c__DisplayClass1`1.<AddOrUpdate>b__0() +122
       Umbraco.Framework.Tasks.ApplicationTaskManager.ExecuteInCancellableTask(Object eventSource, T taskItem, String preActionTaskTrigger, String postActionTaskTrigger, Action execution, Func`2 preActionEventArgs, Func`2 postActionEventArgs, IFrameworkContext frameworkContext) +193
       Umbraco.Hive.ProviderGrouping.RevisionRepositoryGroup`2.ExecuteInCancellableTask(IRevision`1 entity, String preActionTaskTrigger, String postActionTaskTrigger, Action execution) +437
       Umbraco.Hive.ProviderGrouping.RevisionRepositoryGroup`2.AddOrUpdate(Revision`1 revision) +222
       Umbraco.Cms.Web.Editors.AbstractRevisionalContentEditorController`1.ProcessSubmit(TEditorModel model, Revision`1 entity, Boolean isRevisional) +5189
       Umbraco.Cms.Web.Editors.ContentEditorController.ProcessSubmit(ContentEditorModel model, Revision`1 entity, Boolean isRevisional) +90
       Umbraco.Cms.Web.Editors.AbstractRevisionalContentEditorController`1.EditForm(Nullable`1 id, Nullable`1 revisionId) +1088
       lambda_method(Closure , ControllerBase , Object[] ) +219
       System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +17
       System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +208
       System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +27
       System.Web.Mvc.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12() +55
       System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +263
       System.Web.Mvc.<>c__DisplayClass17.<InvokeActionMethodWithFilters>b__14() +19
       System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +263
       System.Web.Mvc.<>c__DisplayClass17.<InvokeActionMethodWithFilters>b__14() +19
       System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +263
       System.Web.Mvc.<>c__DisplayClass17.<InvokeActionMethodWithFilters>b__14() +19
       System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +263
       System.Web.Mvc.<>c__DisplayClass17.<InvokeActionMethodWithFilters>b__14() +19
       System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +263
       System.Web.Mvc.<>c__DisplayClass17.<InvokeActionMethodWithFilters>b__14() +19
       System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +263
       System.Web.Mvc.<>c__DisplayClass17.<InvokeActionMethodWithFilters>b__14() +19
       System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +263
       System.Web.Mvc.<>c__DisplayClass17.<InvokeActionMethodWithFilters>b__14() +19
       System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +191
       System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +343
       Umbraco.Cms.Web.Mvc.ActionInvokers.ControllerExtenderActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +690
       System.Web.Mvc.Controller.ExecuteCore() +116
       System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +97
       System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +10
       System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +37
       System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +21
       System.Web.Mvc.Async.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) +12
       System.Web.Mvc.Async.WrappedAsyncResult`1.End() +62
       System.Web.Mvc.<>c__DisplayClasse.<EndProcessRequest>b__d() +50
       System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0(Action f) +7
       System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action) +22
       System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +60
       System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +8970061
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +184
  • Richard Brookes 34 posts 57 karma points
    May 24, 2012 @ 11:18
    Richard Brookes
    0

    To update my last post. The error was caused by having a decimal property on the datatype. Not sure if this is a reported bug but it just doesn't seem to work at all. I will see if this is a known issue otherwise I will add a bug report on codeplex.

Please Sign in or register to post replies

Write your reply to:

Draft