ReSharper 2022.2 won't install in VS 2022

Hello. ReSharper 2022.1.2 works fine locally in VS 17.2.6. I just tried to update to ReSharper 2022.2 and received the following error:

I've saved the installation log as well : Upload id: 2022_08_02_EzHRBcc2AUyrghQKmNSnnz (file: InstallLog_2022-08-02T11-47-37.txt)

Rolling back to 2022.1.2 works.

Do you have any advice?

Regards,

Chris Powell

 

22 comments
Comment actions Permalink

Stopping Toolbox, then restarting it as Admin worked for me as well.

2
Comment actions Permalink

The problem could be fixed by downloading the web installer and run it as admin. If the installer must run with admin privillegs, it should ask for it!

2
Comment actions Permalink

Hello everyone,

 

Please try the following build - https://download.jetbrains.com/resharper/privatebuilds/JetBrains.dotUltimate.2022.2.1.Checked.exe and let us know how the installation goes with it.

Thank you.

2
Comment actions Permalink

Same issue here. It's amazing that such smart guys as ReSharper botched the installation and product testing after a decade of experience and millions of installs. Oh well. Lesson to self. Do NOT install fresh Resharper updates when they come out. Wait a few weeks instead.

 

The link from Angelina Elycheva above this post worked properly. Thank you Angelina!

https://download.jetbrains.com/resharper/privatebuilds/JetBrains.dotUltimate.2022.2.1.Checked.exe

2
Comment actions Permalink

I opened an issue and was provided suggestion to install as Admin and that did succeed.

1
Comment actions Permalink

Same problem. I'm unable to update or repair resharper c++ on Visual Studio 2017, 2019 and 2022

1
Comment actions Permalink

Can try installing as Admin. (That was suggested to me by RSCPP staff, and it resolved the problem. See my previous post in this thread.)

1
Comment actions Permalink

I am also unable to update or install ReSharper C++ 2022.2 despite several repeated attempts. Something may be fundamentally wrong with this latest ReSharper release.

0
Comment actions Permalink

Same here, Repair didn't help.

From VisualStudio AcitivityLog.xml:

    <description>Begin package load [JetBrains.ReSharperPlatformVs17.Product.VisualStudio.v17.0.Package, Version=777.0.0.0, Culture=neutral, PublicKeyToken=06161efc84a490ff]</description>
    <guid>{0C6E6407-13FC-4878-869A-C8B4016C57FE}</guid>
  </entry>
  <entry>
    <record>292</record>
    <time>2022/08/02 20:12:12.344</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>CreateInstance failed for package [JetBrains.ReSharperPlatformVs17.Product.VisualStudio.v17.0.Package, Version=777.0.0.0, Culture=neutral, PublicKeyToken=06161efc84a490ff]Source: &apos;mscorlib&apos; Description: Could not load file or assembly &apos;C:\\Users\\cc\\AppData\\Local\\JetBrains\\Installations\\ReSharperPlatformVs17_13985b82\\JetBrains.ReSharperPlatformVs17.Product.VisualStudio.v17.0.Package.dll&apos; or one of its dependencies. The system cannot find the file specified.&#x000D;&#x000A;System.IO.FileNotFoundException: Could not load file or assembly &apos;C:\\Users\\cc\\AppData\\Local\\JetBrains\\Installations\\ReSharperPlatformVs17_13985b82\\JetBrains.ReSharperPlatformVs17.Product.VisualStudio.v17.0.Package.dll&apos; or one of its dependencies. The system cannot find the file specified.&#x000D;&#x000A;File name: &apos;C:\\Users\\cc\\AppData\\Local\\JetBrains\\Installations\\ReSharperPlatformVs17_13985b82\\JetBrains.ReSharperPlatformVs17.Product.VisualStudio.v17.0.Package.dll&apos;&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark&amp; stackMark)&#x000D;&#x000A;   at System.Reflection.Assembly.LoadFrom(String assemblyFile, Evidence securityEvidence)&#x000D;&#x000A;   at System.Activator.CreateInstanceFromInternal(String assemblyFile, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo)&#x000D;&#x000A;   at System.AppDomain.CreateInstanceFrom(String assemblyFile, String typeName)&#x000D;&#x000A;&#x000D;&#x000A;WRN: Assembly binding logging is turned OFF.&#x000D;&#x000A;To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.&#x000D;&#x000A;Note: There is some performance penalty associated with assembly bind failure logging.&#x000D;&#x000A;To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].&#x000D;&#x000A;</description>
0
Comment actions Permalink

Similar issue for me when doing an update to the latest version today.

I see the following in logs:

16:51:14.478 |I| ReadyToInstallPage            | Install completed with 3 errors.
16:51:14.478 |I| ReadyToInstallPage            |   16:48:37.784 ReSharperPlatformVs17_0ddfcff7: 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)
16:51:14.478 |I| ReadyToInstallPage            |   16:48:37.812 ReSharperPlatformVs17_0ddfcff7: The build step JetBrains.VsIntegration.Shell.Install.EmittedVsPackageInstaller::InstallVsPackageAssemblyToBinDir inputs could not be resolved. Input #1 of type JetBrains.VsIntegration.Shell.Build.VsPackageAssemblyArtifact has been resolved to the Build Artifact Class JetBrains.VsIntegration.Shell.Build.VsPackageAssemblyArtifact, which does not yet have a value. Will fallback to a NULL value.
16:51:14.478 |I| ReadyToInstallPage            |   16:48:37.813 ReSharperPlatformVs17_0ddfcff7: Execute Build Step Runnable JetBrains.Platform.VisualStudio.Core!JetBrains.VsIntegration.Shell.Install.EmittedVsPackageInstaller::InstallVsPackageAssemblyToBinDir#3 has failed. The build step method JetBrains.VsIntegration.Shell.Install.EmittedVsPackageInstaller::InstallVsPackageAssemblyToBinDir has thrown an exception. Value cannot be null. Parameter name: vsPackageAssemblyArtifact

0
Comment actions Permalink

Hello everyone,

 

Could you please check access rights for "%ALLUSERSPROFILE%\Microsoft\Crypto\RSA\MachineKeys" directory and all files and sub-folders inside it. Your Windows account (and sometimes "Users" account if exists) should have Full access to them

Please let us know how it goes after changing permissions.

Thank you.

0
Comment actions Permalink

Thank you, Angelina. I'll keep that in mind for future. Here is link to my install issue that is all set now in case helpful.

Unable to Install or Update ReSharper 2022.2 : RSCPP-33150 (jetbrains.com)

In my case, the installer was failing during a .NET assembly build step. I'm not surprised that such an operation would need Admin privileges. I also seem to recall that ReSharper install would prompt for Admin privs as needed but it did not for this install. So, my best guess is that installer simply needs to automatically prompt for Admin privs (at least for my issue).

0
Comment actions Permalink

Our solution was to download the previous version (2022.1) from here: https://www.jetbrains.com/shop/download/RS0/2022100

It looks like there is an issue with the 2022.2 build.

0
Comment actions Permalink

Hello everyone,

Sorry for all the trouble. We are working on the fix of the installation issue.

Meanwhile, please try suggestions from the following help article - https://resharper-support.jetbrains.com/hc/en-us/articles/207243165.

 

0
Comment actions Permalink

Yes, running the installer in the administrator mode allows you to install in the "recovery" mode after the update fails

0
Comment actions Permalink

Same issue symptoms here - failure to install 2022.2. The end of the log file has this, which may also be of help:

```
13:08:01.291 |I| ReadyToInstallPage            | Install completed with 3 errors.
13:08:01.291 |I| ReadyToInstallPage            |   13:07:07.586 ReSharperPlatformVs17_b9605a80: 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. Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
13:08:01.291 |I| ReadyToInstallPage            |   13:07:07.632 ReSharperPlatformVs17_b9605a80: The build step JetBrains.VsIntegration.Shell.Install.EmittedVsPackageInstaller::InstallVsPackageAssemblyToBinDir inputs could not be resolved. Input #1 of type JetBrains.VsIntegration.Shell.Build.VsPackageAssemblyArtifact has been resolved to the Build Artifact Class JetBrains.VsIntegration.Shell.Build.VsPackageAssemblyArtifact, which does not yet have a value. Will fallback to a NULL value.
13:08:01.291 |I| ReadyToInstallPage            |   13:07:07.640 ReSharperPlatformVs17_b9605a80: Execute Build Step Runnable JetBrains.Platform.VisualStudio.Core!JetBrains.VsIntegration.Shell.Install.EmittedVsPackageInstaller::InstallVsPackageAssemblyToBinDir#3 has failed. The build step method JetBrains.VsIntegration.Shell.Install.EmittedVsPackageInstaller::InstallVsPackageAssemblyToBinDir has thrown an exception. Value cannot be null. Parameter name: vsPackageAssemblyArtifact
13:08:01.291 |I| ReadyToInstallPage            | Products before install
13:08:01.293 |I| ReadyToInstallPage            |   No products installed by JetBrains dotUltimate Installer.
13:08:01.293 |I| ReadyToInstallPage            | Install targets

```

This looks different from what other posted, but may be the same issue. Running repair as Administrator worked.

0
Comment actions Permalink

Have the same issue as reported in VS 2022 and VS2022 Preview. Restarting the JetBrains Toolbox in admin and reinstalling ReSharper Tools solved it for me.

0
Comment actions Permalink

If you get this error in the log while installing the latest version:
"Cannot autodetect the structured storage format by its header . No known format matches this signature. "

You need to install as administrator for it to work. That worked for me.

0
Comment actions Permalink

Got it -- not yet resolved, but resolved by running in admin; expected UAC prompts, but got none.

0
Comment actions Permalink

Worked for me after I reinstalled it as an admin

0
Comment actions Permalink

Hello Chuck Han

Please try the latest ReSharper 2022.2.1 as it contains the fix of the issue.

Thank you. 

0
Comment actions Permalink

Yes, I installed ReSharper version 2022.2.1, everything works. Thank you Angelina Elycheva

0

Please sign in to leave a comment.