Copied to clipboard

Flag this post as spam?

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


  • Dileep 3 posts 73 karma points
    Oct 26, 2018 @ 07:38
    Dileep
    0

    AutoMapper error while accessing Media section

    Today in our production environment users are getting error while accessing Media section from left menu and accessing Media from Mark Down and Rich Text editors.

    Below is error message

    Received an error from the server An error occured

    Mapping types: Media -> UserBasic Umbraco.Core.Models.Media -> Umbraco.Web.Models.ContentEditing.UserBasic

    Destination path: ContentItemBasic`2.Owner.Owner

    Source value: Umbraco.Core.Models.Media

    EXCEPTION DETAILS AutoMapper.AutoMapperMappingException:

    Mapping types: Media -> UserBasic Umbraco.Core.Models.Media -> Umbraco.Web.Models.ContentEditing.UserBasic

    Destination path: ContentItemBasic`2.Owner.Owner

    Source value: Umbraco.Core.Models.Media

    STACKTRACE at System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext() at System.Collections.Generic.List1..ctor(IEnumerable1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source) at Umbraco.Web.WebApi.Filters.FilterAllowedOutgoingMediaAttribute.OnActionExecuted(HttpActionExecutedContext actionExecutedContext) at System.Web.Http.Filters.ActionFilterAttribute.OnActionExecutedAsync(HttpActionExecutedContext actionExecutedContext, CancellationToken cancellationToken) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Filters.ActionFilterAttribute.

    at System.Web.Http.Dispatcher.HttpControllerDispatcher.

Please Sign in or register to post replies

Write your reply to:

Draft