I simply cannot get Ranorex to work with Visual Studio 2010. I've changed my app.config as posted here: http://www.ranorex.com/forum/post5453.html
The code compiles and executes but no controls are ever found (using findsingle or tryfindsingle) - even if I copy paste the RanoreXpath from the spy directly into the code. The spy can highlight the same control without any problems.
The AUT is compiled in VS 2010 (with target as .NET 4.0) - and can be automated just fine with automation code compiled in VS 2008.
Even if I change the target framework to 3.5 or 3.0 it still does not find any controls - it returns null.
So to clarify:
Automation code with target 3.5 from VS 2008 -> No problems automating a VS2010 (.NET 4.0) AUT
Automation code with target 3.5 or from VS 2010 -> Cannot automate a VS2010 (.NET 4.0) AUT (can compile but no controls are found).
Any hints as to what could be wrong?