question

DylanBaird-5927 avatar image
2 Votes"
DylanBaird-5927 asked harukiakimoto-9113 answered

Could not start visual studio due to an error - StreamJsonRpc.ConnectionLostException

Good afternoon,

I am primarily a Linux user but am excited by some of the GUI features of Visual Studio. Unfortunately I am unable to open Visual Studio. I downloaded the most recent installer and was able to install it without trouble. It will not open and throws the exception mentioned in the title.

The only other information is that it states "The JSON-RPC connection with the remote party was lost before the request could complete."

I'm not sure what connection it is trying to initiate and I have no idea how to go about debugging the IDE... Through the installer I tried repairing the installation which did not work. I then tried uninstalling and deleting all associated files, restarting the computer, then re installing. That did not work either.

I noticeon Github that there are similar issues but they are marked as resolved.

I'm not quite sure where to ask this (so I try here), and I am at a loss of what to do next.

I appreciate any assistance,

Dylan

vs-generalvs-setup
· 5
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @DylanBaird-5927, which version of Visual Studio are you using? Please use the command: devenv /safemode to run your Visual Studio in safe mode. Besides, relaunch your Visual Studio as administrator to check if the error disappears.


0 Votes 0 ·

I get the same error in 16.9.4, from a CMD as Administrator and /safemode.

1 Vote 1 ·

@AnnaXiu-MSFT Same for me. Upgraded to 16.9.4 and I get the same problem described by others. See my additional info below as I found some info in servicehub\logs.

0 Votes 0 ·

@DylanBaird-5927 Please do me a favor and look in the %userappdata%\Temp\servicehub\logs folder and see if your logs are similar to mine, referencing a file called System.Numerics.Vectors. This is a file that the .net team has had trouble with because it was apparently versioned in a weird way. I've been trying to figure out where to add an assembly binding and can't seem to figure out where to put the binding redirect.

0 Votes 0 ·
SandroRibeiro-2763 avatar image
1 Vote"
SandroRibeiro-2763 answered SandroRibeiro-2763 published

I have the same problem.
I use Visual Studio Community 16.9.4.
I can't start the IDE.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AlexandrBazarnyi-2400 avatar image
0 Votes"
AlexandrBazarnyi-2400 answered AlexandrBazarnyi-2400 published

Same problem. Happened after update to 16.9.4.
It does NOT start in a safe mode.

However vs 2017 starts OK.

Is there a way to install previous build?

Here are the logs from event viewer:

Приложение: devenv.exe
Версия платформы: v4.0.30319
Описание. Процесс был завершен из-за необработанного исключения.
Сведения об исключении: StreamJsonRpc.ConnectionLostException
в System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
в System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
в System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(System.Threading.Tasks.Task)
в StreamJsonRpc.JsonRpc+<InvokeCoreAsync>d_148.MoveNext()
в System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
в System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
в StreamJsonRpc.JsonRpc+<InvokeCoreAsync>d
139`1[[System.Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext()
в System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
в System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
в Microsoft.Developer.IdentityService.PipeManager+<InvokeRpcFuncAsync>d
13`1[[System.Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext()
в System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
в System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
в Microsoft.Developer.IdentityService.StorageService.StorageServiceClient+<GetAllAccountsAsyncInternalAsync>d
20.MoveNext()
в System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
в System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
в Microsoft.Developer.IdentityService.StorageService.StorageServiceClient+<GetAllAccountsAsync>d
19.MoveNext()
в System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
в System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
в Microsoft.VisualStudio.Shell.Connected.ConnectedUser.IdeUserContext+<HasPersonalizationAccount>d
12.MoveNext()
в System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
в System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
в Microsoft.VisualStudio.Shell.Connected.ConnectedUser.IdeUserContext+<AdjustSignInStatusAsync>d
11.MoveNext()
в System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
в System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
в Microsoft.VisualStudio.Shell.Connected.ConnectedUser.ConnectedUserPackage+<GetIdeUserContextAsync>d
7.MoveNext()
в System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
в System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
в Microsoft.VisualStudio.Shell.Connected.ConnectedUser.ConnectedUserPackage+<>c
DisplayClass6_0+<<InitializeAsync>b1>d.MoveNext()
в System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
в System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
в Microsoft.VisualStudio.Shell.AsyncPackage+<>c
DisplayClass26_0+<<AddService>b1>d.MoveNext()
в System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
в System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
в Microsoft.VisualStudio.Threading.AwaitExtensions+ExecuteContinuationSynchronouslyAwaiter`1[[System.
Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].GetResult()
в Microsoft.VisualStudio.Threading.AsyncLazy`1+<>c
DisplayClass13_0+<<GetValueAsync>b0>d[[System.Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext()
в System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
в Microsoft.VisualStudio.Services.VsTask.RethrowException(System.AggregateException)
в Microsoft.VisualStudio.Services.VsTask.InternalGetResult(Boolean)
в Microsoft.VisualStudio.Services.VsTask.GetResult()
в Microsoft.VisualStudio.Services.AsyncQueryService.AsyncServiceProvider+<GetServiceByGuidThrowingAsync>d
25.MoveNext()
в System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
в System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
в Microsoft.VisualStudio.Threading.JoinableTask+<JoinAsync>d
70.MoveNext()
в System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
в System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
в Microsoft.VisualStudio.Shell.Connected.UserInformation.UserInformationDataSource+<InitializeDataSourceAsync>d
11.MoveNext()
в System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
в System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
в Microsoft.VisualStudio.Shell.VsTaskLibraryHelper+<>c
DisplayClass32_0+<<StartOnIdle>b0>d.MoveNext()
в System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
в System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
в Microsoft.VisualStudio.Threading.JoinableTask+<JoinAsync>d
_70.MoveNext()
в System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
в System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
в Microsoft.VisualStudio.Threading.JoinableTask.CompleteOnCurrentThread()
в Microsoft.VisualStudio.Threading.JoinableTask.Join(System.Threading.CancellationToken)
в Microsoft.VisualStudio.Shell.Connected.UserInformation.UserInformationDataSource.UserInformationCommandHandler(Microsoft.VisualStudio.Shell.Interop.IVsUIDispatch, System.String, System.Object, System.Object ByRef)
в Microsoft.Internal.VisualStudio.PlatformUI.UIDispatch.Invoke(System.String, System.Object, System.Object ByRef)
в Microsoft.Internal.VisualStudio.PlatformUI.DataSource.Invoke(System.String, System.Object, System.Object ByRef)
в Microsoft.VisualStudio.Shell.Connected.UserInformation.FirstLaunchSignIn.FirstLaunchSignIn_Loaded(System.Object, System.Windows.RoutedEventArgs)
в Microsoft.VisualStudio.Shell.Connected.UserInformation.FirstLaunchSignIn.FirstLaunchSignIn_Loaded(System.Object, System.Windows.RoutedEventArgs)
в System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)
в System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
в System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)
в System.Windows.UIElement.RaiseEvent(System.Windows.RoutedEventArgs)
в System.Windows.BroadcastEventHelper.BroadcastEvent(System.Windows.DependencyObject, System.Windows.RoutedEvent)
в System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(System.Object)
в MS.Internal.LoadedOrUnloadedOperation.DoWork()
в System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
в System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
в System.Windows.Media.MediaContext.RenderMessageHandlerCore(System.Object)
в System.Windows.Media.MediaContext.RenderMessageHandler(System.Object)
в System.Windows.Media.MediaContext.Resize(System.Windows.Media.ICompositionTarget)
в System.Windows.Interop.HwndTarget.OnResize()
в System.Windows.Interop.HwndTarget.HandleMessage(MS.Internal.Interop.WindowMessage, IntPtr, IntPtr)
в System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
в MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
в MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
в System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
в System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
в System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
в MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
в MS.Win32.UnsafeNativeMethods.CallWindowProc(IntPtr, IntPtr, Int32, IntPtr, IntPtr)
в MS.Win32.HwndSubclass.DefWndProcWrapper(IntPtr, Int32, IntPtr, IntPtr)
в MS.Win32.UnsafeNativeMethods.CallWindowProc(IntPtr, IntPtr, Int32, IntPtr, IntPtr)
в MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)


Имя сбойного приложения: devenv.exe, версия: 16.9.31205.134, метка времени: 0x606b75b3
Имя сбойного модуля: KERNELBASE.dll, версия: 10.0.18362.1316, метка времени: 0x7a6bfa05
Код исключения: 0xe0434352
Смещение ошибки: 0x001146d2
Идентификатор сбойного процесса: 0x1394
Время запуска сбойного приложения: 0x01d737cad1139db7
Путь сбойного приложения: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\devenv.exe
Путь сбойного модуля: C:\WINDOWS\System32\KERNELBASE.dll
Идентификатор отчета: 74d9efb7-7022-45d7-9afe-67cbc8b7da63
Полное имя сбойного пакета:
Код приложения, связанного со сбойным пакетом:

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

BOECKMANSStevenENGIEEnergyManageme-8586 avatar image
1 Vote"
BOECKMANSStevenENGIEEnergyManageme-8586 answered

I am having the same issue. Last week I upgraded to 16.9.4.
In the mean time I uninstalled it via the installer and installcleanup tool. What remained at C:\Program Files (x86)\Microsoft visual studio and on c:\users\xxx\AppData\Local\Microsoft\VisualStudio I removed manually.
I reinstalled 16.9.0 from https://docs.microsoft.com/en-us/visualstudio/releases/2019/history at the bottom of the page and still have same issue.
I check with fuslogvw that there were not resolvable dll's and tried to copy some to the expected locations. But with no prevail.
In the eventviewer I have the same as AlexandrBazarnyi-2400

My windows 10 version: KERNELBASE.dll, version: 10.0.18362.1316
I have .net framework 4.8 installed with release number 528040

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MarkusPope-0922 avatar image
0 Votes"
MarkusPope-0922 answered MarkusPope-0922 published

Has anyone found a solution to this? Looking in the servicehub\logs folder, I'm getting log messages about this stupid file:

05/05/2021 17:35:03 Central Standard Time : Error : Exception: System.IO.FileLoadException: Could not load file or assembly 'System.Numerics.Vectors, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
at int SpanHelpers.IndexOf(ref byte searchSpace, byte value, int length)
at int MemoryExtensions.IndexOf<T>(ReadOnlySpan<T> span, T value)
at SequencePosition? System.Buffers.BuffersExtensions.PositionOf<T>(in ReadOnlySequence<T> source, T value)
at async ValueTask<(ValueTuple<int?, Encoding> ContentLength)> StreamJsonRpc.HeaderDelimitedMessageHandler.ReadHeadersAsync(CancellationToken cancellationToken)
at async ValueTask<JsonRpcMessage> StreamJsonRpc.HeaderDelimitedMessageHandler.ReadCoreAsync(CancellationToken cancellationToken)
at async ValueTask<JsonRpcMessage> StreamJsonRpc.MessageHandlerBase.ReadAsync(CancellationToken cancellationToken)
at async Task StreamJsonRpc.JsonRpc.ReadAndHandleRequestsAsync()

At the same time, I'm seeing this in the activitylog.xml file:
<entry>
<record>63</record>
<time>2021/05/05 22:41:19.876</time>
<type>Error</type>
<source>GetIdeUserContextAsync</source>
<description>StreamJsonRpc.ConnectionLostException: The JSON-RPC connection with the remote party was lost before the request could complete.&#x000D;&#x000A; at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#x000D;&#x000A; at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A; at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)&#x000D;&#x000A; at StreamJsonRpc.JsonRpc.&lt;InvokeCoreAsync&gt;d_148.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A; at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#x000D;&#x000A; at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A; at StreamJsonRpc.JsonRpc.&lt;InvokeCoreAsync&gt;d139`1.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A; at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#x000D;&#x000A; at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A; at Microsoft.Developer.IdentityService.PipeManager.&lt;InvokeRpcFuncAsync&gt;d13`1.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A; at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#x000D;&#x000A; at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A; at Microsoft.Developer.IdentityService.StorageService.StorageServiceClient.&lt;GetAllAccountsAsyncInternalAsync&gt;d20.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A; at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#x000D;&#x000A; at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A; at Microsoft.Developer.IdentityService.StorageService.StorageServiceClient.&lt;GetAllAccountsAsync&gt;d19.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A; at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#x000D;&#x000A; at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A; at Microsoft.VisualStudio.Shell.Connected.ConnectedUser.IdeUserContext.&lt;HasPersonalizationAccount&gt;d12.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A; at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#x000D;&#x000A; at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A; at Microsoft.VisualStudio.Shell.Connected.ConnectedUser.IdeUserContext.&lt;AdjustSignInStatusAsync&gt;d11.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A; at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#x000D;&#x000A; at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A; at Microsoft.VisualStudio.Shell.Connected.ConnectedUser.ConnectedUserPackage.&lt;GetIdeUserContextAsync&gt;d_7.MoveNext()</description>
</entry>

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MarkusPope-0922 avatar image
2 Votes"
MarkusPope-0922 answered MarkusPope-0922 commented
  • Delete all of the logs in %userappdata%\temp\servicehub\logs. (This will be c:\users{your user}\appdata\local\temp\servicehub\logs most likely.)

  • Start Visual Studio and get the error message saying that JSON-RPC blah blah blah.

  • Open the log files generated in the servicehub\logs folder.

  • If you see an error indicating that System.Numerics.Vectors 4.1.3.0 could not be loaded because the version installed doesn't match the manifest, then go to the next step.

  • Modify the devenv.config file in the C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE folder (replace with appropriate folder for community or enterprise) and add the following assembly redirect:

<dependentAssembly>
<assemblyIdentity name="System.Numerics.Vectors" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-4.1.4.0" newVersion="4.1.4.0"/>
</dependentAssembly>

  • Modify the Microsoft.Developer.IdentityService.dll.config file in C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\ServiceHub\Services\Microsoft.Developer.IdentityService (again replacing professional with community or enterprise) and add the same assembly redirect.

<dependentAssembly>
<assemblyIdentity name="System.Numerics.Vectors" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-4.1.4.0" newVersion="4.1.4.0"/>
</dependentAssembly>

After I did this, I was able to start Visual Studio Professional. >:( There appears to be some weird conversation going on about the versioning on this specific file dating back a couple of years and apparently no one is willing to address the problem.




· 6
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Same for me as wornouttire. I started from version 16.9.5. Devenv already had the binding, Identityservice not. Adding it there fixed it. :) Thank you !!!
I had also issues with the build and clean of the solution in VS2019 while in a command prompt, dotnet build and so on worked fine. Also the resolving of the nuget packages was not working. Seems that msbuild.exe has same issue with System.Numerics.Vectors See https://stackoverflow.com/questions/61323996/could-not-load-file-or-assembly-system-numeric-vectors-in-ml-net
After fixing that the build worked fine again !

2 Votes 2 ·
MarkusPope-0922 avatar image MarkusPope-0922 BOECKMANSStevenENGIEEnergyManageme-8586 ·

Good to hear! This was a very frustrating problem.

0 Votes 0 ·

I couldn't find the logs. No big deal. I found both .config files, the devenv already had the dependentAssembly block in it, but the IdentityService did not. After pasting in the block, I was able to start the IDE. Well done, thank you.

1 Vote 1 ·

You're welcome. :)

0 Votes 0 ·

Excelente mil gracias!!!!

1 Vote 1 ·
MarkusPope-0922 avatar image MarkusPope-0922 JaidenCortsRodriguez-4894 ·

De nada mi amiga/o!

0 Votes 0 ·
DerAbt-8703 avatar image
0 Votes"
DerAbt-8703 answered wornouttire commented

Same for me with VS 2019 10.3. It does not start at all.

I tried EVERYTHING, including installing VS 2019 11.0 Preview -which also brings this error and does not start:
"Visual Studio konnte aufgrund eines Fehlers nicht gestartet werden.
StreamJsonRpc.ConnectionLostException:
Die JSON-RPC-Verbindung mit der Gegenseite ging verloren, bevor die Anforderung abgeschlossen werden konnte."

devenv /ResetSettings
devenv /SafeMode
devenv /Iforgotthisone
ot starting as administrator
did not fix it.

  • Repair Visual Studio

  • Install .Net 4.8 Development Components

  • Remove/Reinstall (later) All Addon Module

  • Uninstall Visual Studio and Reinstall it.

  • Install Version 11.0 Preview.

  • uninstalling everything and then run InstallCleanup.exe -f, redownload the online installer ands install just the .Net development as module: Brings the error during install.



DID NOT HELP.
So I never can get VS to run on my machine anymore unless I reinstall Windows, which I do not want to because of tons of software to reinstall/configure...

Very annoying!






· 8
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@DerAbt-8703 See Mark's answer from May 05 2021 at 7:40 PM. It has worked for at least two of us.
If it works for you, please bump up his answer to make it easier for others to find it.

0 Votes 0 ·

On the entire page there is no user "Mark" and no post of May 05 2021
What do I wrong?

0 Votes 0 ·

I think that may be referring to me. My name is "Markus". My mother still calls me "Mark". In any case, I found a solution to this problem and @wornouttire posted a link to what I did to solve the problem. Basically, it's that crap System.Numerics.Vector assembly that someone on the Microsoft team refuses to fix. So, you have to update bindings to get past the problem. I don't know why it affects some people and not others.

0 Votes 0 ·

@DerAbt-8703 Here it is again:

Delete all of the logs in %userappdata%\temp\servicehub\logs. (This will be c:\users{your user}\appdata\local\temp\servicehub\logs most likely.)

Start Visual Studio and get the error message saying that JSON-RPC blah blah blah.

Open the log files generated in the servicehub\logs folder.

If you see an error indicating that System.Numerics.Vectors 4.1.3.0 could not be loaded because the version installed doesn't match the manifest, then go to the next step.

Modify the devenv.config file in the C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE folder (replace with appropriate folder for community or enterprise) and add the following assembly redirect:

<dependentAssembly>
<assemblyIdentity name="System.Numerics.Vectors" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-4.1.4.0" newVersion="4.1.4.0"/>
</dependentAssembly>

0 Votes 0 ·
Show more comments
harukiakimoto-9113 avatar image
0 Votes"
harukiakimoto-9113 answered

I find out forgetten comment out of last description. */
This cause problem in my program.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.