Ranorex 6.1.1 and .Net 4.5.2
Posted: Thu May 04, 2017 11:54 am
I've got a fresh install of Ranorex 6.1.1 (I had the same issue earlier, uninstalled Ranorex, reboot, download 6.1.1. and install again, but no change).
Creating a new Test Suite solution, builds and runs fine without any changes.
Go to the new project properties, target framework is defaulted at 4.0. Convert to .Net 4.5.2 (this is the framework of the application I'll be testing, so I assume this has to match or be greater).
Solution/project still builds without any errors/warnings, but when I try to run with the debugger on, it quits immediately (adding a breakpoint to first line in the Program.Main function doesn't break). Without debugger, it, a window appears starting "<RanorexProject> has stopped working". If I try to debug the project in Visual Studio it states that the error is 'System.BadImageFormatException'. This doesn't give much more detail;
System.BadImageFormatException was unhandled
Message: An unhandled exception of type 'System.BadImageFormatException' occurred in Unknown Module.
Additional information: Could not load file or assembly 'Net52Test.exe' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
Is there any other changes/steps I need to do before I can use 4.5.2, or does 6.1.1 not work with 4.5.2? My Ranorex license only allows me to use 6.1.1 and no newer.
Creating a new Test Suite solution, builds and runs fine without any changes.
Go to the new project properties, target framework is defaulted at 4.0. Convert to .Net 4.5.2 (this is the framework of the application I'll be testing, so I assume this has to match or be greater).
Solution/project still builds without any errors/warnings, but when I try to run with the debugger on, it quits immediately (adding a breakpoint to first line in the Program.Main function doesn't break). Without debugger, it, a window appears starting "<RanorexProject> has stopped working". If I try to debug the project in Visual Studio it states that the error is 'System.BadImageFormatException'. This doesn't give much more detail;
System.BadImageFormatException was unhandled
Message: An unhandled exception of type 'System.BadImageFormatException' occurred in Unknown Module.
Additional information: Could not load file or assembly 'Net52Test.exe' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
Is there any other changes/steps I need to do before I can use 4.5.2, or does 6.1.1 not work with 4.5.2? My Ranorex license only allows me to use 6.1.1 and no newer.