-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NUnit Console - "NUnit.Engine.NUnitEngineException: Remote test agent believes agency process has exited" #1323
Comments
Transferring this to the nunit-console project. @fandrei Can you provide some more information. The console project has the following "template" and can you also say which version of .NET you are using (the last item below only makes sense on .NET framework)
|
|
PS running the tests from Visual Studio fails, too. |
@fandrei In the title you say "believes." Do you have reason to believe that the agent process may not have exited? |
@CharliePoole it doesn't matter what it believes. But all the tests weren't run. |
@fandrei Oh I see... the word comes from the exception message itself. The agent is unable to connect to the engine (agency) process, so it exits giving a return code, which translates to the message you see. Of course, the agency hasn't exited. Otherwise it would not be able to report the message to you. :-) So... a TCP communication error, apparently at or prior to the loading the test - otherwise, more info would be received and shown in the logs. |
@CharliePoole the message that says "Unable to cast transparent proxy to type 'System.Web.UI.ICallbackEventHandler'" looks suspicious. |
Indeed it does. You haven't said what runtime you are targeting. Info still needed...
CORRECTION: I see that the message about |
@CharliePoole my project targets .NET 6. |
What you are using is correct. The engine launches a process under .NET 6.0. That process is crashing. Did it work in earlier versions of the console runner and engine? E.g. 3.16.2? |
@CharliePoole it all worked until recently, with the same versions. Maybe it's a system config problem. But I have no idea why it happened and how to fix it. |
It's possible that some change to your tests is putting a demand on the engine, which was not there before. I suggest trying an earlier version of the source from your repository. |
@CharliePoole it's happening for all the projects that I've tried so far. |
@fandrei could you try the previous release of the Console and see if it works? That will help us track down if it is a regression in the latest release. Thanks |
@OsirisTerje no, they both don't work now. |
It's really strange, but I'm still getting same errors even after setting up Visual Studio on my new PC from scratch. With runner 3.15.2, too. |
@fandrei Are you able to create a small repro for this that you can upload? |
Apparently, this was a strange case of antivirus interaction. |
NUnit Console 3.16.3
Started getting these errors, not sure why:
The text was updated successfully, but these errors were encountered: