Hi All
Has anyone else experienced the following errors:
[2022/09/29 19:47:51.799][Debug ][Plugins]: LineageGlueRule 'winforms' caused NullReferenceException on Execute. Object reference not set to an instance of an object.
[2022/09/29 19:47:52.256][Debug ][Plugins]: LineageGlueRule 'winforms' caused InvalidAsynchronousStateException on Execute. An error occurred invoking the method. The destination thread no longer exists.
I am using ranorex 10.1.7. I am trying to upgrade from ranorex 9.2.1 where the same tests all work.
I am testing a simple winforms application.
With ranorex 10.1.7 the tests run fine without any problems on some machines, but on others they fail as soon as ranorex tries to access any of the controls within the application, and give the above debug messages in the log file.
The machines on which 10.1.7 works and does not work are the same in terms of O/S (Windows 10 21H2) and specification.
What would explain this behaviour?
Any ideas?
thanks in advance
LineageGlueRule 'winforms' caused NullReferenceException
-
- Posts: 6
- Joined: Thu Jul 28, 2022 5:53 pm
-
- Posts: 6
- Joined: Thu Jul 28, 2022 5:53 pm
Re: LineageGlueRule 'winforms' caused NullReferenceException
Hi , I have found the cause of this and am posting the solution here in case anyone else encounters the problem.
I was executing the Ranorex tests via the vsysy.comsole.exe command-line executable. I was using version 16.7.2 of the Microsoft.TestPlatform nuget package to get this executable. This version had worked previously with Ranorex 9.2.1, but it turned out it did not work with Ranorex 10.1.7. I upgraded to use the latest version of Microsoft.TestPlatform, v17.3.2 and that solved the problem. So if anyone else gets the problem, upgrade to latest Microsoft.TestPlatform nuget package. Of course it would have been nice if the error message had indicated this was the problem, rather than giving obscure message about LineageGlueRule.
I was executing the Ranorex tests via the vsysy.comsole.exe command-line executable. I was using version 16.7.2 of the Microsoft.TestPlatform nuget package to get this executable. This version had worked previously with Ranorex 9.2.1, but it turned out it did not work with Ranorex 10.1.7. I upgraded to use the latest version of Microsoft.TestPlatform, v17.3.2 and that solved the problem. So if anyone else gets the problem, upgrade to latest Microsoft.TestPlatform nuget package. Of course it would have been nice if the error message had indicated this was the problem, rather than giving obscure message about LineageGlueRule.
-
- Posts: 6
- Joined: Thu Jul 28, 2022 5:53 pm
Re: LineageGlueRule 'winforms' caused NullReferenceException
Sorry about the typo in the previous reply. It should have said vstest.console.exe