Use of a .Net 4 assembly in ATEasy 8

Solution Available
Cyril P.
Meung Sur Loire, France

Apr 19, 2011
23 Posts

1  |  0  

Re: Use of a .Net 4 assembly in ATEasy 8

Hello,

I need to use a .Net assembly in ATEasy 8 which is develop on .NET 4.
I've got this error message when I tried to use it:
Runtime error #420 : 'Object method or property 'Instance' failed : unable to load the file or assembly. This assembly was build for a most recent runtime as the runtime currently loaded and cannot be loaded.

What could be the problem? Do I need to setup something in ATEasy 8 to select the .NET 4 framework?
Thanks for your help.

Albert Q.
Anaheim, CA

Apr 19, 2011
11 Posts

0  |  0  

Re: Use of a .Net 4 assembly in ATEasy 8

Hi,

Currently, ATEasy8 only support assemblies build with target .NET framework 3.5 or earlier. We will add support for .NET framework 4.0 in the future release of ATEasy8.

To work-around this problem, you need to create an application config file containing the following XML text :

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<!-- http://msdn.microsoft.com/en-us/library/w4atty68.aspx -->
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0.30319" />
<supportedRuntime version="v3.5" />
<supportedRuntime version="v3.0" />
<supportedRuntime version="v2.0.50727" />
</startup>
</configuration>

The config file must have the same name as the application (e.g ATEasy.exe.config or MyApp.exe.config) and must reside in the same folder as the application. I have created and attached to this incident a sample config file, please download, rename the file and copy it to the ATEasy folder or the folder containing your stand-alone executable.

Regards,
Albert


File Attachment:
ATEasy.exe.config

Cyril P.
Meung Sur Loire, France

Apr 20, 2011
23 Posts

0  |  0  

Re: Use of a .Net 4 assembly in ATEasy 8

Hi Albert,

thanks a lot, it works with my application.

Regards,
Cyril

Paul T.
Maennedorf, Zurich

Feb 17, 2014
63 Posts

0  |  0  

Re: Use of a .Net 4 assembly in ATEasy 8

Hi! How about ATEasy 7? Does it support assemblies build with target .NET Framework 3.5?



Please Note
You need to have a M@GIC account to participate in the Forums.
Not yet registered on our website? Click here to register today!

All content, information and opinions presented on the Marvin Test Solutions User Forums are those of the authors of the posts and messages and not Marvin Test Solutions'. All attachments and files are downloaded at your own risk. [Read More]