Copied to clipboard

Flag this post as spam?

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


  • Dave Woestenborghs 3504 posts 12134 karma points MVP 9x admin c-trib
    Oct 27, 2016 @ 09:44
    Dave Woestenborghs
    0

    Trees not working after upgrade to 7.5.4

    Hi,

    After we upgraded to 7.5.4 we have issues loading the trees in some sections (developer, settings, users..).

    It works locally for all developers. But on our test environment the trees are not loading.

    This is what I see in the logs of the test environment :

    AutoMapper.AutoMapperMappingException: Missing type map configuration or unsupported mapping.
    
    Mapping types:
    Int32 -> Byte
    System.Int32 -> System.Byte
    
    Destination path:
    ApplicationTree.SortOrder.SortOrder
    
    Source value:
    0
       at Umbraco.Core.Cache.HttpRuntimeCacheProvider.GetCacheItem(String cacheKey, Func`1 getCacheItem, Nullable`1 timeout, Boolean isSliding, CacheItemPriority priority, CacheItemRemovedCallback removedCallback, CacheDependency dependency)
       at Umbraco.Core.Cache.HttpRuntimeCacheProvider.GetCacheItem(String cacheKey, Func`1 getCacheItem, Nullable`1 timeout, Boolean isSliding, CacheItemPriority priority, CacheItemRemovedCallback removedCallback, String[] dependentFiles)
       at Umbraco.Core.Cache.DeepCloneRuntimeCacheProvider.GetCacheItem(String cacheKey, Func`1 getCacheItem, Nullable`1 timeout, Boolean isSliding, CacheItemPriority priority, CacheItemRemovedCallback removedCallback, String[] dependentFiles)
       at Umbraco.Core.Cache.CacheProviderExtensions.GetCacheItem[T](IRuntimeCacheProvider provider, String cacheKey, Func`1 getCacheItem, Nullable`1 timeout, Boolean isSliding, CacheItemPriority priority, CacheItemRemovedCallback removedCallback, String[] dependentFiles)
       at Umbraco.Web.Editors.BackOfficeController.LegacyTreeJs()
       at lambda_method(Closure , ControllerBase , Object[] )
       at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
       at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
       at System.Web.Mvc.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState)
       at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult)
       at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3d()
       at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
       at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
       at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
       at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
       at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass33.<BeginInvokeActionMethodWithFilters>b__32(IAsyncResult asyncResult)
       at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<>c__DisplayClass2b.<BeginInvokeAction>b__1c()
       at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult)
       at System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState)
       at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)
       at System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult)
       at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)
       at System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState)
       at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
     2016-10-27 12:27:53,881 [P4164/D8/T18] INFO  Umbraco.Core.PluginManager - Starting resolution types of umbraco.interfaces.ITree
     2016-10-27 12:27:53,881 [P4164/D8/T18] INFO  Umbraco.Core.PluginManager - Completed resolution of types of umbraco.interfaces.ITree, found 0 (took 0ms)
     2016-10-27 12:31:09,311 [P4164/D8/T214] INFO  Umbraco.Core.PluginManager - Starting resolution types of umbraco.interfaces.ITree
     2016-10-27 12:31:09,327 [P4164/D8/T214] INFO  Umbraco.Core.PluginManager - Completed resolution of types of umbraco.interfaces.ITree, found 0 (took 3ms)
     2016-10-27 12:31:09,327 [P4164/D8/T214] ERROR Umbraco.Core.UmbracoApplicationBase - An unhandled exception occurred
    AutoMapper.AutoMapperMappingException: Missing type map configuration or unsupported mapping.
    

    Anybody got an idea what the issue is ?

    Dave

  • Dave Woestenborghs 3504 posts 12134 karma points MVP 9x admin c-trib
    Oct 27, 2016 @ 11:27
    Dave Woestenborghs
    0

    I have checked that trees.config and applications.config are the same. So a merge conflict on these while doing the upgrade isn't the issue.

    Dave

  • Dave Woestenborghs 3504 posts 12134 karma points MVP 9x admin c-trib
    Oct 27, 2016 @ 12:24
    Dave Woestenborghs
    101

    I solved it. One of my projects was referencing Automapper v3.3.0 instead of v3.3.1. On local machines v3.3.1 was placed in the website bin folder. However using our build server to deploy to the test environment v3.3.0 ended up in the bin folder there.

  • Christian Thillemann 8 posts 73 karma points c-trib
    Sep 24, 2017 @ 08:20
    Christian Thillemann
    1

    If somebody else have the same issue, then i found another solution. I accidental deleted the reference to Automapper.net4, adding this dll back to project solved my issue.

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Dec 19, 2017 @ 10:54
    Stefan Kip
    0

    Thanks Christian, saved me a lot of time!

  • Terry Clancy 204 posts 944 karma points
    Mar 06, 2020 @ 21:36
    Terry Clancy
    0

    Wow - saved me a lot of time too - THANKS CHRISTIAN !!!!!!

    Terry Clancy ClanceZ

  • Ebin 9 posts 78 karma points
    Mar 09, 2020 @ 11:57
    Ebin
    0

    Hi,

    Which Umbraco version that are you currently used . Check that version . Then install Umbraco auto mapper - Just upgrade through nuget package - https://our.umbraco.com/packages/developer-tools/umbraco-mapper

    enter image description here

Please Sign in or register to post replies

Write your reply to:

Draft