I'm getting in parallel in the Output:
Exception thrown: 'System.FormatException' in System.Private.CoreLib.dll
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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:
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
I'm getting in parallel in the Output:
Exception thrown: 'System.FormatException' in System.Private.CoreLib.dll
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
Same problem on VS 2022 Version 17.9.0 Preview 1.0
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)