Visual studio issue when starting Exception thrown at 0x16D7AA45 in devenv.exe: 0xC0000005: Access violation reading location 0x00000020

0

When I start visual studio ,I get the below message

Error message

enter image description here

When I click debug and click debug devenv.exe I get the below error

System.Reflection.TargetInvocationException HResult=0x80131604 Message=Exception has been thrown by the target of an invocation. Source=mscorlib StackTrace: at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Microsoft.VisualStudio.LanguageServices.Implementation.Diagnostics.VisualStudioWorkspaceDiagnosticAnalyzerProviderService.GetHostAnalyzerPackagesWithName(Object extensionManager, Type parameterType) at Microsoft.VisualStudio.LanguageServices.Implementation.Diagnostics.VisualStudioWorkspaceDiagnosticAnalyzerProviderService.<>c__DisplayClass6_0.<.ctor>b__0() at System.Lazy1.CreateValue() at System.Lazy1.LazyInitValue() at System.Lazy1.get_Value() at Microsoft.VisualStudio.LanguageServices.Implementation.Diagnostics.VisualStudioWorkspaceDiagnosticAnalyzerProviderService.GetHostDiagnosticAnalyzerPackages() at Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzerService.<>c__DisplayClass3_0.<.ctor>b__0() at System.Lazy1.CreateValue() at System.Lazy1.LazyInitValue() at System.Lazy1.get_Value() at Microsoft.CodeAnalysis.Diagnostics.HostAnalyzerManager.<>c__DisplayClass9_0.<.ctor>b__0() at System.Lazy1.CreateValue() at System.Lazy1.LazyInitValue() at System.Lazy1.get_Value() at Microsoft.CodeAnalysis.Diagnostics.HostAnalyzerManager.<>c__DisplayClass10_0.<.ctor>b__0() at System.Lazy1.CreateValue() at System.Lazy1.LazyInitValue() at System.Lazy1.get_Value() at Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzerService.GetHostAnalyzerReferences() at Microsoft.VisualStudio.LanguageServices.Remote.RemoteHostClientServiceFactory.RemoteHostClientService.AddGlobalAssets(CancellationToken cancellationToken) at Microsoft.VisualStudio.LanguageServices.Remote.RemoteHostClientServiceFactory.RemoteHostClientService.d__18.MoveNext() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.CodeAnalysis.Remote.RemoteHostClientExtensions.d__21.MoveNext() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.VisualStudio.LanguageServices.Remote.RemoteHostClientServiceFactory.SolutionChecksumUpdater.d__9.MoveNext() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.CodeAnalysis.SolutionCrawler.IdleProcessor.d__12.MoveNext()

  This exception was originally thrown at this call stack:
  System.ThrowHelper.ThrowArgumentOutOfRangeException(System.ExceptionArgument,

System.ExceptionResource) Microsoft.VisualStudio.ExtensionManager.CachedInstalledExtensionList.GetContentForIndexEntry(System.IO.Packaging.Package, Microsoft.VisualStudio.ExtensionManager.CachedInstalledExtensionListIndexEntry, System.Func<int, System.Tuple<Microsoft.VisualStudio.ExtensionManager.CachedAssetList, Microsoft.VisualStudio.ExtensionManager.CachedAssetMetadataList>>) Microsoft.VisualStudio.ExtensionManager.CachedInstalledExtensionList.ReadCachedInstalledExtension(System.IO.Packaging.Package, Microsoft.VisualStudio.ExtensionManager.CachedInstalledExtensionListIndexEntry, System.Func<int, System.Tuple<Microsoft.VisualStudio.ExtensionManager.CachedAssetList, Microsoft.VisualStudio.ExtensionManager.CachedAssetMetadataList>>) Microsoft.VisualStudio.ExtensionManager.CachedInstalledExtensionList.GetExtensions(System.Func<Microsoft.VisualStudio.ExtensionManager.EnabledState, bool>, string, bool) Microsoft.VisualStudio.ExtensionManager.PartitionedInstalledExtensionList.GetExtensions(System.Func<Microsoft.VisualStudio.ExtensionManager.EnabledState, bool>, string, bool) Microsoft.VisualStudio.ExtensionManager.ExtensionManagerService.GetEnabledExtensions(string)

Inner Exception 1:
ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

It throws the following exception.

Exception thrown at 0x16D7AA45 in devenv.exe: 0xC0000005: Access violation reading location 0x00000020.
visual-studio
visual-studio-2019
asked on Stack Overflow Nov 24, 2020 by PMBG • edited Nov 25, 2020 by Jack J Jun - MSFT

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0