Eternal21
Posts: 21
Joined: Mon Aug 15, 2016 5:51 pm

VS2019 throws the 'AdvInstVSIntegrationPackage' package did not load correctly error.

I have Advanced Installer Version 17.6 (C087F2E6), with Professional License. I want to build the projects from within Visual Studio Community Edition 2019 (Version 16.6.5), so I installed Advanced Installer Extension for 2019.

After restarting visual studio I get the following error:
The 'AdvInstVSIntegrationPackage' package did not load correctly...

Image

The ActivityLog.xml file referenced in the error message contains the following information:

Code: Select all

  <entry>
    <record>573</record>
    <time>2020/11/23 18:56:59.428</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Begin package load [AdvInstVSIntegrationPackage]</description>
    <guid>{634D2762-4905-4843-B74C-649D410524F9}</guid>
  </entry>
  <entry>
    <record>574</record>
    <time>2020/11/23 18:56:59.444</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>SetSite failed for package [AdvInstVSIntegrationPackage]Source: &apos;AdvInstExtensionVSIntegration.vcs16&apos; Description: Could not load file or assembly &apos;Microsoft.VisualStudio.Threading, Version=16.7.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&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;Microsoft.VisualStudio.Threading, Version=16.7.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos; or one of its dependencies. The system cannot find the file specified.&#x000D;&#x000A;File name: &apos;Microsoft.VisualStudio.Threading, Version=16.7.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos;&#x000D;&#x000A;   at Caphyon.AdvInstVSIntegration.AdvInstVSIntegrationPackage.InitializeAsync(CancellationToken cancellationToken, IProgress`1 progress)&#x000D;&#x000A;   at Microsoft.VisualStudio.Shell.AsyncPackage.&lt;&gt;c__DisplayClass20_0.&lt;&lt;Microsoft-VisualStudio-Shell-Interop-IAsyncLoadablePackageInitialize-Initialize&gt;b__1&gt;d.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.VisualStudio.Threading.JoinableTask.&lt;JoinAsync&gt;d__68.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&#x000D;&#x000A;   at Microsoft.VisualStudio.Services.VsTask.RethrowException(AggregateException e)&#x000D;&#x000A;   at Microsoft.VisualStudio.Services.VsTask.InternalGetResult(Boolean ignoreUIThreadCheck)&#x000D;&#x000A;   at Microsoft.VisualStudio.Services.VsTask.GetResult()&#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>
    <guid>{634D2762-4905-4843-B74C-649D410524F9}</guid>
    <hr>80070002</hr>
    <errorinfo></errorinfo>
  </entry>
  <entry>
    <record>575</record>
    <time>2020/11/23 18:56:59.457</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>End package load [AdvInstVSIntegrationPackage]</description>
    <guid>{634D2762-4905-4843-B74C-649D410524F9}</guid>
    <hr>80070002</hr>
    <errorinfo></errorinfo>
  </entry>
Any help would be appreciated. Thanks.
Catalin
Posts: 6584
Joined: Wed Jun 13, 2018 7:49 am

Re: VS2019 throws the 'AdvInstVSIntegrationPackage' package did not load correctly error.

Hello,

Could you please update your Visual Studio to the latest version (16.8.2) and let me know if everything works as expected?
I want to build the projects from within Visual Studio Community Edition 2019 (Version 16.6.5), so I installed Advanced Installer Extension for 2019.
If I understand this correctly, you have just installed the Advanced Installer extension for VS. If that is not the case, could you please update the extension first and let me know if the issue still persists?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jwoodcook
Posts: 1
Joined: Fri Aug 07, 2020 3:07 pm

Re: VS2019 throws the 'AdvInstVSIntegrationPackage' package did not load correctly error.

Upgrading Visual Studio 2019 to the very latest worked for me, too.
Catalin
Posts: 6584
Joined: Wed Jun 13, 2018 7:49 am

Re: VS2019 throws the 'AdvInstVSIntegrationPackage' package did not load correctly error.

Hello guys,

Thank you for your followup on this!

I am glad to hear everything works as expected now. :)

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Eternal21
Posts: 21
Joined: Mon Aug 15, 2016 5:51 pm

Re: VS2019 throws the 'AdvInstVSIntegrationPackage' package did not load correctly error.

We decided against using the extension, so I never got a chance to test it, but glad the fix worked for others.
Catalin
Posts: 6584
Joined: Wed Jun 13, 2018 7:49 am

Re: VS2019 throws the 'AdvInstVSIntegrationPackage' package did not load correctly error.

Hello,

Thank you for your followup on this.

If you encounter any other problems, please do not hesitate to contact us and we will gladly assist.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”