1

I just installed Visual Studio 2026. However, whenever I try to run my project, I constantly get an Internal Server Error.

The error shows up both inside the IDE and in the browser. If I close and reopen Visual Studio, it sometimes works for a short time, but then the same error comes back. I already did a clean install, but the issue persists.

What I’ve tried so far:

  1. Reinstalled Visual Studio.
  2. Cleared IIS Express and browser cache.
  3. Rebuilt the project.

None of these solved the issue.

One of the internal errors:

StreamJsonRpc.RemoteInvocationException: Service of type 'Microsoft.CodeAnalysis.Options.ILegacyWorkspaceOptionService' is required to accomplish the task but is not available from 'RemoteWorkspace' workspace.
   at StreamJsonRpc.JsonRpc.<InvokeCoreAsync>d__172`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.CodeAnalysis.Remote.BrokeredServiceConnection`1.<TryInvokeAsync>d__14`1.MoveNext()
RPC server exception:
System.InvalidOperationException: Service of type 'Microsoft.CodeAnalysis.Options.ILegacyWorkspaceOptionService' is required to accomplish the task but is not available from 'RemoteWorkspace' workspace.
      at Microsoft.CodeAnalysis.Host.HostWorkspaceServices.GetRequiredService[TWorkspaceService]()
      at Microsoft.CodeAnalysis.Workspace..ctor(HostServices host, String workspaceKind)
      at Microsoft.CodeAnalysis.Remote.RemoteWorkspaceManager.<>c.<.cctor>b__11_0()
      at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
   --- End of stack trace from previous location ---
      at System.Lazy`1.CreateValue()
      at Microsoft.CodeAnalysis.Remote.RemoteAssetSynchronizationService.<>c__DisplayClass6_0.<<SynchronizePrimaryWorkspaceAsync>b__0>d.MoveNext()
      at Microsoft.CodeAnalysis.Remote.BrokeredServiceBase.GetWorkspaceServices()
      at Microsoft.CodeAnalysis.Remote.RemoteLegacySolutionEventsAggregationService.<ShouldReportChangesAsync>b__2_0(CancellationToken cancellationToken)
      at Microsoft.CodeAnalysis.Remote.BrokeredServiceBase.RunServiceImplAsync[T](Func`2 implementation, CancellationToken cancellationToken)
      at Microsoft.CodeAnalysis.Remote.BrokeredServiceBase.RunServiceImplAsync(Func`2 implementation, CancellationToken cancellationToken)

There are ~10 errors like this. I close them but they are reopening. :(

Question:

Why am I constantly getting Internal Server Error in Visual Studio 2026, and how can I fix this?

5
  • 1
    What kind of project, what have you actually installed, did you look at the Known Issues? VS 2026 Preview came out yesterday and some third-party or discontinued extensions may not work. The error you posted says Service of type 'Microsoft.CodeAnalysis.Options.ILegacyWorkspaceOptionService' is required to accomplish the task but is not available from 'RemoteWorkspace' workspace.. Sounds like something requires the interface ILegacyWorkspaceOptionService that's either discontinued, or provided by a component that wasn't installed Commented Sep 11 at 7:50
  • 6
    Visual Studio 2026 is in early preview. On the assumption you're developing code for a real project: unless you have a compelling reason to ride the bleeding edge, used the Visual Studio 2022 released version. Commented Sep 11 at 8:50
  • developercommunity.visualstudio.com/t/… .... They say that they will try to fix these. Thanks for answers. Commented Sep 11 at 9:48
  • Yes getting same issue Commented Sep 11 at 17:19
  • 1
    @VaibhavDabhade They tell that they will fix these. We should wait I suppose. Commented Sep 12 at 7:47

3 Answers 3

3

This could help - delete the cache file located at C:\Users\[your username]\AppData\Local\Microsoft\VisualStudio\18.0_[set of letters and numbers]\Roslyn\RemoteHost\Cache

Source: https://developercommunity.visualstudio.com/t/Errors-seen-immediately-following-new-in/10962760

Sign up to request clarification or add additional context in comments.

1 Comment

I tried this but not resolved 3 days ago. Now I take an update from vsinstaller. It solved. Thanks anyway.
0

I previously had different versions of Visual Studio and its extensions installed on my system, after adding this version I kept getting errors on vs 2026.I delete my 2022 version and it doesn't answered Even IntelliSense wasn’t working properly. Following a suggestion from a friend, I cleared the cache, but that didn’t help. I couldn’t even copy files from outside into the project root. Eventually, I deleted the Microsoft Visual Studio-related folders located at C:\Users\[your user name]\AppData\Local\Microsoft, and after reinstalling the VS2026, my problem was completely resolved. I'm not sure if it was absolutely necessary to uninstall and reinstall Visual Studio, but this method worked for me.

do it with your own risk

Comments

0

Today, my Visual Studio 2026 Insider completely stopped launching. I repeatedly told it not to display error messages. After that, the splash screen would only appear upon startup, then immediately disappear. I ran the entire recovery mode, but that didn't help. Then I went into the Cache directory and renamed it. That didn't help either. Then I renamed both 18.0_[letters-numbers] directories (to hide them and then, if necessary, bring them back) and launched Visual Studio – everything started normally. Meanwhile, I have both MS Visual Studio 2022 Community and MS Visual Studio 2022 Community Preview installed and working perfectly.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.