Copied to clipboard

Flag this post as spam?

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


  • Jesse Andrews 191 posts 716 karma points c-trib
    Oct 31, 2019 @ 23:29
    Jesse Andrews
    0

    Jumoo.TranslationManager.Providers.PassThrough causing an error when installed via nuget

    When I installed the PassThrough provider when running translation manager 8.2.0, I encountered the following error.

    Umbraco.Core.Exceptions.BootFailedException: Boot failed. --->
    System.Reflection.ReflectionTypeLoadException: Could not load all types from \"Jumoo.TranslationManager.Providers.PassThrough, Version=2.0.7117.27432, Culture=neutral, PublicKeyToken=null\" due to LoaderExceptions, skipping:.
    System.TypeLoadException on Jumoo.TranslationManager.Providers.PassThrough.PassthroughProvider: Method 'Submit' in type 'Jumoo.TranslationManager.Providers.PassThrough.PassthroughProvider' from assembly 'Jumoo.TranslationManager.Providers.PassThrough, Version=2.0.7117.27432, Culture=neutral, PublicKeyToken=null' does not have an implementation.
    at Umbraco.Core.Composing.TypeFinder.GetTypesWithFormattedException(Assembly a) in D:\\a\\1\\s\\src\\Umbraco.Core\\Composing\\TypeFinder.cs:line 569
    at Umbraco.Core.Composing.TypeFinder.GetClassesWithBaseType(Type baseType, IEnumerable`1 assemblies, Boolean onlyConcreteClasses, Func`2 additionalFilter) in D:\\a\\1\\s\\src\\Umbraco.Core\\Composing\\TypeFinder.cs:line 504
    at Umbraco.Core.Composing.TypeFinder.FindClassesOfType[T](IEnumerable`1 assemblies, Boolean onlyConcreteClasses) in D:\\a\\1\\s\\src\\Umbraco.Core\\Composing\\TypeFinder.cs:line 346
    at Umbraco.Core.Composing.TypeLoader.<>c__DisplayClass50_0`1.<GetTypes>b__1() in D:\\a\\1\\s\\src\\Umbraco.Core\\Composing\\TypeLoader.cs:line 542
    at Umbraco.Core.Composing.TypeLoader.GetTypesInternalLocked(Type baseType, Type attributeType, Func`1 finder, String action, Boolean cache) in D:\\a\\1\\s\\src\\Umbraco.Core\\Composing\\TypeLoader.cs:line 752
    at Umbraco.Core.Composing.TypeLoader.GetTypesInternal(Type baseType, Type attributeType, Func`1 finder, String action, Boolean cache) in D:\\a\\1\\s\\src\\Umbraco.Core\\Composing\\TypeLoader.cs:line 656
    at Umbraco.Core.Composing.TypeLoader.GetTypes[T](Boolean cache, IEnumerable`1 specificAssemblies) in D:\\a\\1\\s\\src\\Umbraco.Core\\Composing\\TypeLoader.cs:line 540
    at Umbraco.Core.Runtime.CoreRuntime.GetComposerTypes(TypeLoader typeLoader) in D:\\a\\1\\s\\src\\Umbraco.Core\\Runtime\\CoreRuntime.cs:line 302\r\n   at Umbraco.Core.Runtime.CoreRuntime.ResolveComposerTypes(TypeLoader typeLoader) in D:\\a\\1\\s\\src\\Umbraco.Core\\Runtime\\CoreRuntime.cs:line 275
    at Umbraco.Core.Runtime.CoreRuntime.Boot(IRegister register, DisposableTimer timer) in D:\\a\\1\\s\\src\\Umbraco.Core\\Runtime\\CoreRuntime.cs:line 149
    --- End of inner exception stack trace
    

    Might just be that the interface changed slightly in 8.2.0, making it no longer compatible.

  • Jesse Andrews 191 posts 716 karma points c-trib
    Nov 06, 2019 @ 18:20
    Jesse Andrews
    0

    Forgot to mention that I'm using version 8.2.1 of umbraco.

  • Jesse Andrews 191 posts 716 karma points c-trib
    Nov 06, 2019 @ 20:33
    Jesse Andrews
    0

    After looking at it a little more, I've found a potential cause for this problem. The issue is that the provider is uses TranslationAttempt instead of Attempt. ITranslationProvider uses Attempt in the latest version of Translation Manager, so the PassthroughProvider causes the error because it no longer matches the interface.

  • Kevin Jump 2310 posts 14695 karma points MVP 7x c-trib
    Nov 06, 2019 @ 22:36
    Kevin Jump
    0

    HI sorry i missed this,

    its because for v2 of the Translation Manager the providers are in the TranslationManager.Providers namespace and in v8 they are in the connectors namespace. (need to publicise this a bit more!)

    https://www.nuget.org/packages/Jumoo.TranslationManager.Connector.Passthrough/

    Install-Package Jumoo.TranslationManager.Connector.Passthrough
    

    should work for v8

    Kevin

  • Jesse Andrews 191 posts 716 karma points c-trib
    Nov 06, 2019 @ 22:47
    Jesse Andrews
    0

    That was it. I tested it and confirmed that it worked as expected.

Please Sign in or register to post replies

Write your reply to:

Draft