System.IO.FileNotFoundException: Could not load file or assembly 'System.Threading.Tasks.Parallel
See original GitHub issueDescribe 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:
- Download package:
wget https://github.com/microsoft/DevSkim/releases/download/v1.0.6/DevSkim_CLI_linux_1.0.6.zip
. - Unzip it:
unzip DevSkim_CLI_linux_1.0.6.zip
. - Make executable:
chmod 777 DevSkim_CLI_linux_1.0.6/devskim
- Run it:
./devskim analyze --source-code /home/developer/codebase
- 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:
- Created 3 months ago
- Comments:7 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi - apologies I’ve not had time to get back to this. I’ll try to update next week. Thanks.
Glad to hear its resolved now.