"Feature 'XXX' is currently unavailable due to an internal error."

Nathan Sokalski 4,116 Reputation points
2021-12-25T04:05:33.293+00:00

Visual Studio 2022 recently started (for absolutely no reason) displaying the following message(s) at the top of the Visual Studio 2022 window:

Feature 'Diagnostic analyzer runner' is currently unavailable due to an internal error.

Similar messages are displayed for many other features (the list is endless!). This started happening for no reason, I did not change (or even open) the settings or preferences, I did not create (or even edit) any files, I did not install any updates, I barely used my computer. Here is a screenshot of the messages:

160270-screenshot-2021-12-24-225853.png

If I close all the files, it sometimes lets me click the X on the right to get rid of the messages, but then they come back when I reopen the files. What is the problem? I have not tried to repair Visual Studio 2022 (that is, in my opinion, a last resort, since it doesn't always fix the problem). I currently have:

Microsoft Visual Studio Community 2022 (64-bit)
Version 17.0.4

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,624 questions
{count} votes

43 answers

Sort by: Most helpful
  1. david croydon 0 Reputation points
    2023-11-02T12:14:26.7633333+00:00

    I'm getting in parallel in the Output:

    Exception thrown: 'System.FormatException' in System.Private.CoreLib.dll

    0 comments No comments

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  3. Andy Martin 0 Reputation points
    2023-11-21T19:57:30.42+00:00

    Same problem on VS 2022 Version 17.9.0 Preview 1.0
    User's image

    StreamJsonRpc.RemoteInvocationException: Specified argument was out of the range of valid values.
       at StreamJsonRpc.JsonRpc.<InvokeCoreAsync>d__151`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 System.Threading.Tasks.ValueTask`1.get_Result()
       at Microsoft.CodeAnalysis.Remote.BrokeredServiceConnection`1.<TryInvokeAsync>d__18`1.MoveNext()
    RPC server exception:
    System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
          at Microsoft.AspNetCore.Razor.Utilities.Checksum.Builder.<AppendStringValue>g__AppendData|14_0(SHA256 hash, Byte[] buffer, String value)
          at Microsoft.AspNetCore.Razor.Utilities.Checksum.Builder.AppendStringValue(String value)
          at Microsoft.AspNetCore.Razor.Language.DocumentationObject.AppendToChecksum(Builder& builder)
          at Microsoft.AspNetCore.Razor.Language.BoundAttributeDescriptor.BuildChecksum(Builder& builder)
          at Microsoft.AspNetCore.Razor.Language.TagHelperObject`1.ComputeChecksum()
          at Microsoft.AspNetCore.Razor.Language.TagHelperObject`1.get_Checksum()
          at Microsoft.AspNetCore.Razor.Language.TagHelperObject`1.GetHashCode()
          at System.Collections.Generic.HashSet`1.AddIfNotPresent(T value, Int32& location)
          at System.Collections.Generic.HashSet`1.Add(T item)
          at Microsoft.AspNetCore.Razor.PooledObjects.PooledHashSet`1.Add(T item)
          at Microsoft.AspNetCore.Razor.Language.TagHelperObjectBuilderCollection`2.ToImmutable()
          at Microsoft.AspNetCore.Razor.Language.TagHelperDescriptorBuilder.BuildCore(ImmutableArray`1 diagnostics)
          at Microsoft.AspNetCore.Razor.Language.TagHelperObjectBuilder`1.Build()
          at Microsoft.CodeAnalysis.Razor.ComponentTagHelperDescriptorProvider.Collector.CreateNameMatchingDescriptor(INamedTypeSymbol type, ImmutableArray`1 properties, Boolean fullyQualified)
          at Microsoft.CodeAnalysis.Razor.ComponentTagHelperDescriptorProvider.Collector.CreateShortNameMatchingDescriptor(INamedTypeSymbol type, ImmutableArray`1 properties)
          at Microsoft.CodeAnalysis.Razor.ComponentTagHelperDescriptorProvider.Collector.Collect(ISymbol symbol, ICollection`1 results)
          at Microsoft.AspNetCore.Razor.Language.TagHelperCollector`1.Collect(TagHelperDescriptorProviderContext context)
          at Microsoft.CodeAnalysis.Razor.ComponentTagHelperDescriptorProvider.Execute(TagHelperDescriptorProviderContext context)
          at Microsoft.AspNetCore.Razor.CompilationTagHelperResolver.<GetTagHelpersAsync>g__ExecuteProviders|2_1(ITagHelperDescriptorProvider[] providers, TagHelperDescriptorProviderContext context, ITelemetryReporter telemetryReporter)
          at Microsoft.AspNetCore.Razor.CompilationTagHelperResolver.GetTagHelpersAsync(Project workspaceProject, RazorProjectEngine projectEngine, CancellationToken cancellationToken)
          at Microsoft.CodeAnalysis.Remote.Razor.RemoteTagHelperProviderService.GetTagHelpersDeltaCoreAsync(Solution solution, ProjectSnapshotHandle projectHandle, String factoryTypeName, Int32 lastResultId, CancellationToken cancellationToken)
          at Microsoft.CodeAnalysis.Remote.RemoteWorkspace.<>c__DisplayClass9_0`1.<<RunWithSolutionAsync>g__ProcessSolutionAsync|1>d.MoveNext()
       --- End of stack trace from previous location ---
          at Microsoft.CodeAnalysis.Remote.RemoteWorkspace.RunWithSolutionAsync[T](AssetProvider assetProvider, Checksum solutionChecksum, Int32 workspaceVersion, Boolean updatePrimaryBranch, Func`2 implementation, CancellationToken cancellationToken)
          at Microsoft.CodeAnalysis.Remote.RemoteWorkspace.RunWithSolutionAsync[T](AssetProvider assetProvider, Checksum solutionChecksum, Int32 workspaceVersion, Boolean updatePrimaryBranch, Func`2 implementation, CancellationToken cancellationToken)
          at Microsoft.CodeAnalysis.Remote.RemoteWorkspaceManager.RunServiceAsync[T](ServiceBrokerClient client, Checksum solutionChecksum, Func`2 implementation, CancellationToken cancellationToken)