Setup error

I just tried to install the latest version 2022.2 and got an error for both the retail and preview VS2022:

11:36:31.403 |E| IsolatedBuildGuest            | Execute Build Step Runnable JetBrains.Platform.VisualStudio.Core!JetBrains.VsIntegration.Shell.Install.VsPackageAssembly.VsPackageAssemblyEmitter::CompileVsPackageAssemblyGen2WithAssemblyBuilder#3 has failed. The build step method JetBrains.VsIntegration.Shell.Install.VsPackageAssembly.VsPackageAssemblyEmitter::CompileVsPackageAssemblyGen2WithAssemblyBuilder has thrown an exception. Strong name key container not found. (Exception from HRESULT: 0x8013141C)

--- EXCEPTION #1/1 [LoggerException]
Message = “Execute Build Step Runnable JetBrains.Platform.VisualStudio.Core!JetBrains.VsIntegration.Shell.Install.VsPackageAssembly.VsPackageAssemblyEmitter::CompileVsPackageAssemblyGen2WithAssemblyBuilder#3 has failed. The build step method JetBrains.VsIntegration.Shell.Install.VsPackageAssembly.VsPackageAssemblyEmitter::CompileVsPackageAssemblyGen2WithAssemblyBuilder has thrown an exception. Strong name key container not found. (Exception from HRESULT: 0x8013141C)”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.ManagedThreadName = <NULL>
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
  Execute Build Step Runnable JetBrains.Platform.VisualStudio.Core!JetBrains.VsIntegration.Shell.Install.VsPackageAssembly.VsPackageAssemblyEmitter::CompileVsPackageAssemblyGen2WithAssemblyBuilder#3 has failed. The build step method JetBrains.VsIntegration.Shell.Install.VsPackageAssembly.VsPackageAssemblyEmitter::CompileVsPackageAssemblyGen2WithAssemblyBuilder has thrown an exception. Strong name key container not found. (Exception from HRESULT: 0x8013141C)
  
  --- EXCEPTION #1/5 [COMException]
  Message = “Strong name key container not found. (Exception from HRESULT: 0x8013141C)”
  ExceptionPath = Root.InnerException.InnerException.InnerException.InnerException
  ClassName = System.Runtime.InteropServices.COMException
  HResult = CORSEC_E_CONTAINER_NOT_FOUND=8013141C
  Source = mscorlib
  StackTraceString = “
    at System.Reflection.Emit.ModuleBuilder.SavePEFile(RuntimeModule module, String fileName, Int32 entryPoint, Int32 isExe, Boolean isManifestFile)
       at System.Reflection.Emit.ModuleBuilder.Save(String fileName, Boolean isAssemblyFile, PortableExecutableKinds portableExecutableKind, ImageFileMachine imageFileMachine)
       at System.Reflection.Emit.AssemblyBuilder.SaveNoLock(String assemblyFileName, PortableExecutableKinds portableExecutableKind, ImageFileMachine imageFileMachine)
       at System.Reflection.Emit.AssemblyBuilder.Save(String assemblyFileName, PortableExecutableKinds portableExecutableKind, ImageFileMachine imageFileMachine)
       at JetBrains.VsIntegration.Shell.Install.VsPackageAssembly.VsPackageAssemblyEmitter.<>c__DisplayClass1_0.<CompileVsPackageAssemblyGen2WithAssemblyBuilder>b__0(Lifetime lifetime)
       at JetBrains.Lifetimes.Lifetime.Using[T](Func`2 action)
       at JetBrains.VsIntegration.Shell.Install.VsPackageAssembly.VsPackageAssemblyEmitter.CompileVsPackageAssemblyGen2WithAssemblyBuilder(PackageInfo packageinfo, IList`1 emitters, IList`1 embeddedResources, ILogger logger)
  ”
  
  --- Outer ---
  
  --- EXCEPTION #2/5 [TargetInvocationException]
  Message = “Exception has been thrown by the target of an invocation.”
  ExceptionPath = Root.InnerException.InnerException.InnerException
  ClassName = System.Reflection.TargetInvocationException
  InnerException = “Exception #1 at Root.InnerException.InnerException.InnerException.InnerException”
  HResult = COR_E_TARGETINVOCATION=80131604
  Source = mscorlib
  StackTraceString = “
    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 JetBrains.Build.Running.Data.BuildStepRunnableMethod.<JetBrains-Build-Running-Storage-IBuildStepRunnable-RunAsync>d__19.MoveNext()
  ”
  
  --- Outer ---
  
  --- EXCEPTION #3/5 [BuildException]
  Message = “The build step method JetBrains.VsIntegration.Shell.Install.VsPackageAssembly.VsPackageAssemblyEmitter::CompileVsPackageAssemblyGen2WithAssemblyBuilder has thrown an exception.”
  ExceptionPath = Root.InnerException.InnerException
  ClassName = JetBrains.Build.BuildException
  InnerException = “Exception #2 at Root.InnerException.InnerException.InnerException”
  HResult = COR_E_APPLICATION=80131600
  Source = JetBrains.Platform.BuildInterfaces
  StackTraceString = “
    at JetBrains.Build.Running.Data.BuildStepRunnableMethod.<JetBrains-Build-Running-Storage-IBuildStepRunnable-RunAsync>d__19.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at JetBrains.Build.Running.Logic.BuildExecutor.<RunStepAsync>d__21.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at JetBrains.Build.Running.Logic.BuildExecutor.<ExecuteSingleItemAsync>d__16.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at JetBrains.Build.Running.Logic.BuildExecutor.<>c__DisplayClass14_1.<<RunAsync>b__7>d.MoveNext()
  ”
  
  --- Outer ---
  
  --- EXCEPTION #4/5 [BuildException]
  Message = “Execute Build Step Runnable JetBrains.Platform.VisualStudio.Core!JetBrains.VsIntegration.Shell.Install.VsPackageAssembly.VsPackageAssemblyEmitter::CompileVsPackageAssemblyGen2WithAssemblyBuilder#3 has failed.”
  ExceptionPath = Root.InnerException
  ClassName = JetBrains.Build.BuildException
  InnerException = “Exception #3 at Root.InnerException.InnerException”
  HResult = COR_E_APPLICATION=80131600
  
  --- Outer ---
  
  --- EXCEPTION #5/5 [LoggerException]
  Message = “Execute Build Step Runnable JetBrains.Platform.VisualStudio.Core!JetBrains.VsIntegration.Shell.Install.VsPackageAssembly.VsPackageAssemblyEmitter::CompileVsPackageAssemblyGen2WithAssemblyBuilder#3 has failed.”
  ExceptionPath = Root
  ClassName = JetBrains.Util.LoggerException
  InnerException = “Exception #4 at Root.InnerException”
  HResult = COR_E_APPLICATION=80131600
  StackTraceString = “
    at JetBrains.Util.ILoggerEx.LogException(ILogger this, LoggingLevel level, Exception exception, ExceptionOrigin exceptionOrigin, String comment)
       at JetBrains.Build.Running.Logic.BuildExecutor.<>c__DisplayClass14_1.<<RunAsync>b__7>d.MoveNext()
       at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.InvokeMoveNext(Object stateMachine)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run()
       at System.Threading.Tasks.AwaitTaskContinuation.InvokeAction(Object state)
       at System.Threading.Tasks.AwaitTaskContinuation.RunCallback(ContextCallback callback, Object state, Task& currentTask)
       at System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation.Run(Task task, Boolean canInlineContinuationTask)
       at System.Threading.Tasks.Task.FinishContinuations()
       at System.Threading.Tasks.Task.FinishStageThree()
       at System.Threading.Tasks.Task.FinishStageTwo()
       at System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted)
       at System.Threading.Tasks.Task`1.TrySetException(Object exceptionObject)
       at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception)
       at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.SetException(Exception exception)
       at JetBrains.Build.Running.Logic.BuildExecutor.<ExecuteSingleItemAsync>d__16.MoveNext()
       at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.InvokeMoveNext(Object stateMachine)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run()
       at JetBrains.Util.Concurrency.Threading.Tasks.SchedulerAwaiter.<>c__DisplayClass10_0.<OnCompleted>b__0(Object o)
       at System.Threading.Tasks.Task.InnerInvoke()
       at System.Threading.Tasks.Task.Execute()
       at System.Threading.Tasks.Task.ExecutionContextCallback(Object obj)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
       at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
       at System.Threading.Tasks.TaskScheduler.TryExecuteTask(Task task)
       at JetBrains.Application.Threading.Tasks.Scheduler.JetScheduler.ExecuteTask(Task task)
       at JetBrains.Application.Threading.Tasks.Scheduler.JetSchedulerThread.EnqueueNextTask()
       at JetBrains.Application.Threading.Tasks.Scheduler.JetSchedulerThread.ThreadPoolProc()
       at ANNOTATED: JetBrains.Application.Threading.Tasks.Scheduler.JetSchedulerThread #2.JetPool(S) #3(Action )
       at JetBrains.Util.Reflection.CallStackAnnotation.InvokeAnnotated(String classNameOfNewFrame, String methodNameOfNewFrame, Action actionToAnnotate)
       at JetBrains.Util.Reflection.CallStackAnnotation.CatchAnnotatedInvocation[TClassOfNewFrame](String methodNameOfNewFrame, Action actionToAnnotate)
       at JetBrains.Application.Threading.Tasks.Scheduler.JetSchedulerThread.<>c__DisplayClass6_0.<.ctor>b__0()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  ”

What's causing the issue? Normally, one of the VS installations would fail and I just remove all of the ReSharper and try again successfully. But this one is not budging at all. I now have no ReSharper installed and the setup keeps failing. I deleted all folders and files but there is a huge chunk on C:\Windows\assembly\NativeImages_v4.0.30319_64

1 comment
Comment actions Permalink
Official comment

Hello Hassan,

thank you for contacting us.


Please try steps from this article: https://resharper-support.jetbrains.com/hc/en-us/articles/207243165


We are working on this problem now: https://youtrack.jetbrains.com/issue/RSRP-489446/Unable-to-install-ReSharper-20222-Strong-name-key-container-not-found
Thank you!

Please sign in to leave a comment.