question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

System.IO.FileNotFoundException: Could not load file or assembly 'System.Threading.Tasks.Parallel

See original GitHub issue

Describe the bug Running the CLI tool on WSL Ubuntu 20.04.5 LTS fails.

Likely related to my environment, but I followed all instructions carefully and can’t get it working.

To Reproduce Likely difficult to reproduce I expect as it’s an environment thing. Steps to reproduce the behavior:

  1. Download package: wget https://github.com/microsoft/DevSkim/releases/download/v1.0.6/DevSkim_CLI_linux_1.0.6.zip.
  2. Unzip it: unzip DevSkim_CLI_linux_1.0.6.zip.
  3. Make executable: chmod 777 DevSkim_CLI_linux_1.0.6/devskim
  4. Run it: ./devskim analyze --source-code /home/developer/codebase
  5. See error:
developer ~/DevSkim_CLI_linux_1.0.6 $ ./devskim  analyze --source-code /home/developer/codebase
Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.

File name: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
   at Microsoft.DevSkim.CLI.Commands.AnalyzeCommand.RunFileEntries(IEnumerable`1 fileListing, Languages devSkimLanguages)
   at Microsoft.DevSkim.CLI.Commands.AnalyzeCommand.Run()
   at Microsoft.DevSkim.CLI.Program.<>c.<Main>b__0_0(AnalyzeCommandOptions opts)
   at CommandLine.ParserResultExtensions.MapResult[T1,T2,T3,T4,TResult](ParserResult`1 result, Func`2 parsedFunc1, Func`2 parsedFunc2, Func`2 parsedFunc3, Func`2 parsedFunc4, Func`2 notParsedFunc)
   at Microsoft.DevSkim.CLI.Program.Main(String[] args)
Aborted

Expected behavior The tool to run successfully.

Versions(please complete the following information):

  • OS: Ubuntu 20.04.5 LTS
  • Devskim Version: 1.0.6

Additional context My colleagues are running the tool without issue also in WSL.

Issue Analytics

  • State:closed
  • Created 3 months ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
aza547commented, Jul 1, 2023

Hi - apologies I’ve not had time to get back to this. I’ll try to update next week. Thanks.

0reactions
gfscommented, Jul 24, 2023

Glad to hear its resolved now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to load System.Threading.Tasks.Extensions
DbMgr' threw an exception. Inner Exception 2: FileNotFoundException: Could not load file or assembly 'System. Threading. Tasks.
Read more >
Could not load file or assembly System.Threading.Tasks. ...
IO.FileLoadException: Could not load file or assembly 'System.Threading.Tasks.Dataflow, Version=6.0.0.0, Culture=neutral, PublicKeyToken= ...
Read more >
System related issues it says could not load file
it is showing error: System.AggregateException: One or more errors occurred. (Could not load file or assembly 'System.Xml, Version=2.0.0.0, ...
Read more >
Could not load file or assembly 'System.Threading.Tasks. ...
In simple words, it can't find the assembly that was referenced. Make sure it can find the right assembly by putting it in...
Read more >
Task Class (System.Threading.Tasks)
The Task class represents a single operation that does not return a value and that usually executes asynchronously. Task objects are one of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found