New Error

91 views
Skip to first unread message

Ben Goggan

unread,
May 17, 2021, 3:21:42 PM5/17/21
to codenam...@googlegroups.com
Hello, has anyone ever experienced an error running a test using nunit where it’s unable to find a file/assembly which isn’t being referenced in the project file? I recently installed taurus on a new machine and moved my test project there as well. Now when I try to execute the test I get an error indicating the System.Security.Permissions file/assembly cannot be found, but I have no idea why it’s being looked for either. I don’t reference that anywhere nor did my previous setup return such error. I can run the same test with no errors on my old machine. The only difference in my new setup is I manually installed it using Python where my original setup from almost a year ago used the windows installer.

I'm still researching but figured I'd send an email in case anyone else has experienced the same thing. Thanks.
 
Benjamin Goggan
Senior Test Engineer
Corestream


Follow us: Facebook | Twitter | LinkedIn 

NUnitExecutor.ldjson
bzt.log

grey....@gmail.com

unread,
May 17, 2021, 4:42:41 PM5/17/21
to codename-taurus
Hi Benjamin.
Could you try to run your test with pure NUnit?

---
Taras

Ben Goggan

unread,
May 17, 2021, 5:13:01 PM5/17/21
to codename-taurus
Yep, I tried that and it runs just fine from the VS test runner.

Merilian

unread,
May 18, 2021, 8:54:23 AM5/18/21
to codename-taurus
Hey

The error in bzt.log says `Could not load file or assembly 'System.Security.Permissions.....`
Looks like this library installed with nuget. So you need to put this dependency libraries together with your test library.

Ben Goggan

unread,
May 18, 2021, 8:58:15 AM5/18/21
to Merilian, codename-taurus

Yeah, I did that as well and it was still complaining about not having it. I installed with nuget, rebuilt the project and then copied all the DLL’s to my source location. I have no problem trying that again but the exact same test from the exact same project runs fine on my original installation. I definitely have an older version of Taurus on my other machine so I’m not sure if there’s any differences there (v1.14.2 vs v1.15.3). The test was built using .net4.7.2 because the prior versions of Taurus didn’t support .net core.

 

Just to double check I’ll re-load that nuget package and copy the DLL’s one more time.

--
You received this message because you are subscribed to the Google Groups "codename-taurus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codename-taur...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codename-taurus/7589c16b-3266-4b2f-9825-b46dcec1f50fn%40googlegroups.com.

Ben Goggan

unread,
May 18, 2021, 9:13:40 AM5/18/21
to Merilian, codename-taurus

Yep, same thing unfortunately. I tried 2 different versions of that nuget package and got the same result each time. Below is the setup with and without that package.

 

From: Ben Goggan <bgo...@corestream.com>
Sent: Tuesday, May 18, 2021 8:58 AM
To: 'Merilian' <derevyag...@gmail.com>; 'codename-taurus' <codenam...@googlegroups.com>
Subject: RE: New Error

 

Yeah, I did that as well and it was still complaining about not having it. I installed with nuget, rebuilt the project and then copied all the DLL’s to my source location. I have no problem trying that again but the exact same test from the exact same project runs fine on my original installation. I definitely have an older version of Taurus on my other machine so I’m not sure if there’s any differences there (v1.14.2 vs v1.15.3). The test was built using .net4.7.2 because the prior versions of Taurus didn’t support .net core.

 

Just to double check I’ll re-load that nuget package and copy the DLL’s one more time.

 

From: codenam...@googlegroups.com <codenam...@googlegroups.com> On Behalf Of Merilian
Sent: Tuesday, May 18, 2021 8:54 AM
To: codename-taurus <codenam...@googlegroups.com>
Subject: Re: New Error

 

Hey

--

Snag_b710a741.png
Snag_b710c0c5.png

Ben Goggan

unread,
May 18, 2021, 9:20:08 AM5/18/21
to Merilian, codename-taurus

And it runs just executing the dotnet test command as well.

 

From: Ben Goggan <bgo...@corestream.com>
Sent: Tuesday, May 18, 2021 9:14 AM
To: 'Merilian' <derevyag...@gmail.com>; 'codename-taurus' <codenam...@googlegroups.com>
Subject: RE: New Error

 

Yep, same thing unfortunately. I tried 2 different versions of that nuget package and got the same result each time. Below is the setup with and without that package.

 

From: Ben Goggan <bgo...@corestream.com>
Sent: Tuesday, May 18, 2021 8:58 AM
To: 'Merilian' <derevyag...@gmail.com>; 'codename-taurus' <codenam...@googlegroups.com>
Subject: RE: New Error

 

Yeah, I did that as well and it was still complaining about not having it. I installed with nuget, rebuilt the project and then copied all the DLL’s to my source location. I have no problem trying that again but the exact same test from the exact same project runs fine on my original installation. I definitely have an older version of Taurus on my other machine so I’m not sure if there’s any differences there (v1.14.2 vs v1.15.3). The test was built using .net4.7.2 because the prior versions of Taurus didn’t support .net core.

 

Just to double check I’ll re-load that nuget package and copy the DLL’s one more time.

 

From: codenam...@googlegroups.com <codenam...@googlegroups.com> On Behalf Of Merilian
Sent: Tuesday, May 18, 2021 8:54 AM
To: codename-taurus <codenam...@googlegroups.com>
Subject: Re: New Error

 

Hey

--

Snag_b717d748.png

Merilian

unread,
May 18, 2021, 10:10:45 AM5/18/21
to codename-taurus
At this point i think that directory with library and running directory are different. Could you try to use ShellExec service in order to copy all required libraries to artifacts directory?

Ben Goggan

unread,
May 18, 2021, 1:26:28 PM5/18/21
to Merilian, codename-taurus

Has anyone actually successfully run a nunit test built with .net core 3.1 using Taurus? I decided to start over as my project was just a POC anyway so I created a new project built with .netcore 3.1 and created the same nunit test. I am not copying any files to a different running directly but now just executing the test right within the directory being built by VS. The error I get now is:

 

“Unhandled exception: NUnit.Engine.NUnitEngineException: An exception occurred in the driver while loading tests.

---> System.IO.FileNotFoundException: Could not load file or assembly 'nunit.framework, Version=3.13.2.0, Culture=neutral, PublicKeyToken=2638cd05610744eb'. The system cannot find the file specified.”

 

As you can see I have that exact version being built with the project.

 

Ben Goggan

unread,
May 18, 2021, 1:43:00 PM5/18/21
to Merilian, codename-taurus

Ok, so I noticed in your github example test solution the nunit version was 3.12.0 but I was using the latest version which is 3.13.2. I downgraded to the 3.12.0 version and I am now able to execute the test successfully. I appreciate you going back and forth with me on this. Thanks.

 

From: Ben Goggan <bgo...@corestream.com>
Sent: Tuesday, May 18, 2021 1:26 PM
To: 'Merilian' <derevyag...@gmail.com>; 'codename-taurus' <codenam...@googlegroups.com>
Subject: RE: New Error

 

Has anyone actually successfully run a nunit test built with .net core 3.1 using Taurus? I decided to start over as my project was just a POC anyway so I created a new project built with .netcore 3.1 and created the same nunit test. I am not copying any files to a different running directly but now just executing the test right within the directory being built by VS. The error I get now is:

 

“Unhandled exception: NUnit.Engine.NUnitEngineException: An exception occurred in the driver while loading tests.

---> System.IO.FileNotFoundException: Could not load file or assembly 'nunit.framework, Version=3.13.2.0, Culture=neutral, PublicKeyToken=2638cd05610744eb'. The system cannot find the file specified.”

 

As you can see I have that exact version being built with the project.

 

 

Reply all
Reply to author
Forward
0 new messages