Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.

Four Stars

Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.

Hi Support Team,

 

For a project, We are trying to connect AX server 2012 with Talend. We are using "tMSAXInput" to fetch the data from AX Server. And "tMSAXOutput" to update some data into AX Server 2012. We are using 64 bit system with .NET 4.5 framework.
We have followed the steps given in the link :
http://www.talendforge.org/wiki/doku.php?id=doc:dotnet

1. Obtain the janet dll (janet-win<64>.dll) for .NET 4.0 (link : http://www.talendforge.org/wiki/lib/exe/fetch.php?id=doc%3Adotnet&cache=cache&media=doc:janet-dlls_4...)
2. Either place it in a Path directory (i.e. C:\Program Files\Java\jre6\bin, C:\Windows\System32, etc).
3. Place the janet jar somewhere handy. If you're using the components, they already know where it is, otherwise, you'll have to import it.

We have fill all other information as needed in component - "tMSAXInput" And we are still getting this error :
"Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information."

The error logs are also given below for your reference :

============================================

Starting job job1 at 10:59 22/03/2018.

[statistics] connecting to socket on port 3974
[statistics] connected
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileLoadException: Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.
at Microsoft.Dynamics.BusinessConnectorNet.Axapta..ctor()
--- End of inner exception stack trace ---
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, Object[] args)
at Java_org_talend_net_Object_createInstanceLib(JNIEnv_* env, _jobject* _this, _jstring* className, _jobject* jAssembly, _jobjectArray* params, _jobjectArray* types)
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (0xe0434352), pid=2712, tid=0x00000000000019fc
#
# JRE version: Java(TM) SE Runtime Environment (8.0_161-b12) (build 1.8.0_161-b12)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.161-b12 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C [KERNELBASE.dll+0x940d]
#
# Core dump written. Default location: C:\Users\jeewi\Downloads\TOS_DI-20180116_1512-V6.5.1\hs_err_pid2712.mdmp
#
# An error report file with more information is saved as:
# C:\Users\jeewi\Downloads\TOS_DI-20180116_1512-V6.5.1\hs_err_pid2712.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Job job1 ended at 10:59 22/03/2018. [exit code=1]
============================================

Log file is also attached for your reference. Please review it and suggest what changes we need to make. It is a bit urgent task, Any help will be really appreciated.

Moderator

Re: Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.

Hello,

Is this resolved topic:https://community.talend.com/t5/Design-and-Development/Net-and-Net-Core-from-Talend-DI-6-4-1/m-p/459... helpful for you?

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.