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.

Could not load file or assembly 'System.Threading.Tasks.Extensions, Version=4.2.0.0

See original GitHub issue

Steps to reproduce

  1. Convert file to c#

Error message shown


Code converter 8.3.0 - Visual Studio 15.9.28307.1622

An error has occured during conversion - press Ctrl+C to copy the details: System.IO.FileNotFoundException: Could not load file or assembly ‘System.Threading.Tasks.Extensions, Version=4.2.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’ or one of its dependencies. The system cannot find the file specified.

File name: ‘System.Threading.Tasks.Extensions, Version=4.2.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’

at ICSharpCode.CodeConverter.Shared.ProjectConversion.ConvertSingleAsync[TLanguageConversion](Document document, SingleConversionOptions conversionOptions, IProgress`1 progress, CancellationToken cancellationToken)

at ICSharpCode.CodeConverter.VsExtension.CodeConversion.<ConvertDocumentUnhandledAsync>d__23`1.MoveNext()

— End of stack trace from previous location where exception was thrown —

at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at ICSharpCode.CodeConverter.VsExtension.CodeConversion.<>c__DisplayClass14_0`1.<<ConvertDocumentAsync>b__0>d.MoveNext()

— End of stack trace from previous location where exception was thrown —

at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at Microsoft.VisualStudio.Threading.JoinableTask.<JoinAsync>d__78.MoveNext()

— End of stack trace from previous location where exception was thrown —

at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at Microsoft.VisualStudio.Threading.JoinableTask`1.<JoinAsync>d__3.MoveNext()

— End of stack trace from previous location where exception was thrown —

at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at ICSharpCode.CodeConverter.VsExtension.CodeConversion.<ConvertDocumentAsync>d__14`1.MoveNext()

— End of stack trace from previous location where exception was thrown —

at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at ICSharpCode.CodeConverter.VsExtension.ConvertVBToCSCommand.<ConvertDocumentAsync>d__24.MoveNext()

WRN: Assembly binding logging is turned OFF.

To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.

Note: There is some performance penalty associated with assembly bind failure logging.

To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Support for VS2017 (15.*) is likely to end this year. You’re using: 15.9.28307.1622

OK

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
eschneider999commented, Aug 30, 2021

Updated Azure Data lake (still disabled) to 2.6.2000.0 and the Converter now works.

0reactions
GrahamTheCodercommented, Sep 6, 2021

I’ve made further tweaks to try to improve 2017 compatibility of the extension in the latest release so I’ll close this issue.

The source code for the project however is only VS2019+ VS2019 Community edition is free and installs side by side with VS2017, so there’s no reason for anyone to use an older version for this solution that I’m aware of.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to load System.Threading.Tasks.Extensions
The system cannot find the file specified. Inner Exception 3: FileNotFoundException: Could not load file or assembly 'System.Threading.Tasks.
Read more >
Reference mismatch to System.Threading.Tasks.Extensions
FileLoadException : Could not load file or assembly 'System.Threading.Tasks.Extensions, Version=4.2.0.1, Culture=neu...
Read more >
Could not load file or assembly 'System.Threading.Tasks. ...
C# – Could not load file or assembly 'System.Threading.Tasks.Extensions, Version=4.2.0.0 ... Its version is 4.2.0.1 I am not sure why its still trying...
Read more >
Could not load file or assembly 'System.Threading.Tasks ...
For an assembly such as System.Threading.Tasks.Extensions , the most likely reason for one of its dependencies to be missing is a wrong DotNet...
Read more >
[Solved]-Unable to load System.Threading.Tasks.Extensions-C#
I got a similar error message - but for a different reason. In packages.config set by NUGET manager There was a ref for...
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