How to use VS 2010 and .NET 4.0 with Ranorex 2.X
Posted: Fri Jul 02, 2010 8:10 am
Hello, i have some problems with Ranorex library using.
Environment:
Win 7 x64
Ranorex version: 2.3.1.8466 Evaluation period
if have created simple project to use Ranorex library.
Here is steps to reproduce:
1. Create Windows Forms .NET 4.0 C# project in VS 2010
2. Add Ranorex.Core.dll from ranorex\bin\ folder as reference
3. Add following line to form contructor 4. Start project
5. Press Continue evaluation on "Evaluation period" window.
Ranorex code throws following exception:
Failed to load default plugins. Please reinstall Ranorex.
Inner exception: {"Cannot load required flavor 'win32' from any of the plugins."}
Stack trace:
TargetSite:
I have tried following workarounds but with no success:
1. Add all *.dll's from bin\ folder as references
2. Remove all renorex references and add all *.dll's from bin\x64\ folder as references
Also
Environment:
Win 7 x64
Ranorex version: 2.3.1.8466 Evaluation period
if have created simple project to use Ranorex library.
Here is steps to reproduce:
1. Create Windows Forms .NET 4.0 C# project in VS 2010
2. Add Ranorex.Core.dll from ranorex\bin\ folder as reference
3. Add following line to form contructor
Code: Select all
Ranorex.Form form = Ranorex.Host.Local.FindChild<Ranorex.Form>("Calculator");
5. Press Continue evaluation on "Evaluation period" window.
Ranorex code throws following exception:
Failed to load default plugins. Please reinstall Ranorex.
Inner exception: {"Cannot load required flavor 'win32' from any of the plugins."}
Stack trace:
Code: Select all
at Ranorex.Core.PluginManager.LoadPluginsWithDependencies(IList`1 flavorPlugins)
at Ranorex.Core.PluginManager.LoadDefaultPlugins()
Code: Select all
{Int32 LoadPluginsWithDependencies(System.Collections.Generic.IList`1[Ranorex.Core.PluginManager+FlavorPluginInfo])}
1. Add all *.dll's from bin\ folder as references
2. Remove all renorex references and add all *.dll's from bin\x64\ folder as references
Also
- I have both VS 2010 and VS C# Express. And this error happens only in VS 2010. All works greatly in VS C# express.
- Ranorex studio and Ranorex spy works normally