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.

VS2017 conversion show big error message

See original GitHub issue

I have installed newest version of converter in VS 2017 Enterprise. If I want convert VB.NET code to C# I get this error message:

---------------------------
Code converter
---------------------------
An error has occured during conversion - press Ctrl+C to copy the details: System.MissingMethodException: Method not found: 'Void System.Threading.Tasks.Dataflow.DataflowBlockOptions.set_EnsureOrdered(Boolean)'.
   at ICSharpCode.CodeConverter.Shared.AsyncEnumerableTaskExtensions.<ParallelSelectAwait>d__1`2.MoveNext()
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine)
   at System.Runtime.CompilerServices.AsyncIteratorMethodBuilder.MoveNext[TStateMachine](TStateMachine& stateMachine)
   at ICSharpCode.CodeConverter.Shared.AsyncEnumerableTaskExtensions.<ParallelSelectAwait>d__1`2.System.IAsyncDisposable.DisposeAsync()
   at System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable`1.Enumerator.DisposeAsync()
   at System.Collections.Generic.AsyncEnumerableHelpers.<ToArrayWithLength>d__1`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 System.Threading.Tasks.ValueTask`1.get_Result()
   at System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable`1.ConfiguredValueTaskAwaiter.GetResult()
   at System.Collections.Generic.AsyncEnumerableHelpers.<ToArray>d__0`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.Shared.ProjectConversion.<Convert>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1.GetResult(Int16 token)
   at ICSharpCode.CodeConverter.Shared.ProjectConversion.<Convert>d__19.System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult(Int16 token)
   at System.Collections.Generic.AsyncEnumerableHelpers.<ToArrayWithLength>d__1`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Collections.Generic.AsyncEnumerableHelpers.<ToArrayWithLength>d__1`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 System.Threading.Tasks.ValueTask`1.get_Result()
   at System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable`1.ConfiguredValueTaskAwaiter.GetResult()
   at System.Collections.Generic.AsyncEnumerableHelpers.<ToArray>d__0`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 System.Threading.Tasks.ValueTask`1.get_Result()
   at ICSharpCode.CodeConverter.Shared.ProjectConversion.<ConvertSingle>d__10`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.<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__DisplayClass15_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__15`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()
---------------------------
OK   
---------------------------

Output window: Converting XXXXX.aspx.vb…

Phase 1 of 2:

That is all. Can you help me?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
GrahamTheCodercommented, Apr 21, 2020

Makes sense, thanks for the info. I would like to keep VS2017 going as long as possible for the reason you describe, but it’s pretty hard to stay compatible while making use of the great new tools available.

I’ve put in a tentative fix, would you mind trying it? There’s a CI build artifact you can try here: https://icsharpcode.visualstudio.com/icsharpcode-pipelines/_build/results?buildId=1188&view=results Again, uninstall the extension, close all VS windows, then install the vsix from the “published artifact”

0reactions
Rado8267commented, Apr 22, 2020

It’s working, Thank you 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Visual Studio displaying errors even if projects build
Even though the project will build successfully, there will remain errors in the error list.
Read more >
Thread: [RESOLVED] After "Publish" error on install
[RESOLVED] After "Publish" error on install - Conversion from string. My first time here so be gentle with me :-) I have a...
Read more >
mspdbcmf.exe 14.11.25506.0 fails to convert partial PDB's
The PDB conversion tool appears to be broken as of the VS 2017 15.3 ... MSPDBCMF : fatal error CMF1002: internal error (PDB...
Read more >
Visual Studio 2017 15.9 Release Notes
Release notes for the latest features and improvements in Visual Studio 2017 v15.9. Plan better, code together and ship faster with Visual Studio....
Read more >
Old csproj to new csproj: Visual Studio 2017 upgrade guide
Keep reading: I'll show you some of the major changes, and how to upgrade to VS 2017. Disclaimer: this only works for a...
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