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.
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.
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!)
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.
Might just be that the interface changed slightly in 8.2.0, making it no longer compatible.
Forgot to mention that I'm using version 8.2.1 of umbraco.
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.
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/
should work for v8
Kevin
That was it. I tested it and confirmed that it worked as expected.
is working on a reply...