Copied to clipboard

Flag this post as spam?

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


  • Jason 17 posts 37 karma points
    Aug 20, 2015 @ 19:08
    Jason
    0

    DuplicateTypeMappingException occurring

    Here's another one that has us stumped.

    We've got an API that we call for some internal stuff. When calling a method in that API, which isn't related to Umbraco at all, we get this error:

    An exception of type 'Microsoft.Practices.Unity.DuplicateTypeMappingException' occurred in Microsoft.Practices.Unity.RegistrationByConvention.dll but was not handled in user code

    Additional information: An attempt to override an existing mapping was detected for type umbraco.interfaces.IDataType with name "", currently mapped to type umbraco.editorControls.imagecropper.DataType, to type umbraco.editorControls.macrocontainer.DataType.

    Right now we're just looking for possible scenarios that might cause something like this. When I don't call the method that goes into this third party API, my Umbraco site works like champ. I'm not sure why it's trying to override an Umraco mapping when this code has nothing to do with Umbraco. (I also don't know anything, really, about Unity and am pretty new to Umbraco and APIs in general).

    Any thoughts on what we should be looking for?

    Thanks in advance... -jason

Please Sign in or register to post replies

Write your reply to:

Draft