Error with VS 2019 16.8.2 and Advanced Installer 17.7 - Advanced Installer Community
adkerremans1
Posts: 7
Joined: Thu Nov 07, 2019 4:39 pm

Error with VS 2019 16.8.2 and Advanced Installer 17.7

After upgrading to Advanced Installer 17.7 the error below occurs in the activitylog.xml

SetSite failed for package [AdvInstVSIntegrationPackage]Source: 'AdvInstExtensionVSIntegration.vcs16' Description: Could not load file or assembly 'Microsoft.VisualStudio.Threading, Version=16.8.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.Threading, Version=16.8.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. File name: 'Microsoft.VisualStudio.Threading, Version=16.8.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' at Caphyon.AdvInstVSIntegration.AdvInstVSIntegrationPackage.InitializeAsync(CancellationToken cancellationToken, IProgress`1 progress) at Microsoft.VisualStudio.Shell.AsyncPackage.<>c__DisplayClass20_0.<<Microsoft-VisualStudio-Shell-Interop-IAsyncLoadablePackageInitialize-Initialize>b__1>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.VisualStudio.Services.VsTask.RethrowException(AggregateException e) at Microsoft.VisualStudio.Services.VsTask.InternalGetResult(Boolean ignoreUIThreadCheck) at Microsoft.VisualStudio.Services.VsTask.GetResult() WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Regards

Ad Kerremans
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Error with VS 2019 16.8.2 and Advanced Installer 17.7

Hello Ad,

Unfortunately, I can not say for sure why this happens.

In order for me to further investigate this, could you please give me some more details about your scenario?

For instance, when is this issue occuring? Does it occur when importing a .sln file in Advanced Installer (when you create a project using the "Visual Studio Application" template)?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
adkerremans1
Posts: 7
Joined: Thu Nov 07, 2019 4:39 pm

Re: Error with VS 2019 16.8.2 and Advanced Installer 17.7

Hello Catelin,

It occurs when I load a sln in VS 2019, if I use an Advanced Installer project or not.

Regard

Ad
timmangan
Posts: 50
Joined: Fri Mar 30, 2018 1:17 pm

Re: Error with VS 2019 16.8.2 and Advanced Installer 17.7

See my workaround here: viewtopic.php?f=2&t=46436&sid=9014f07f6 ... f12f1d81ed
it might be related to your issue.
adkerremans1
Posts: 7
Joined: Thu Nov 07, 2019 4:39 pm

Re: Error with VS 2019 16.8.2 and Advanced Installer 17.7

Hi Catelin,

I even get the error when loading a sln without an Advanced Installer project in it.
I tried your workaround, but it doesn't work.
It looks that when upgrading to VS 16.8.2 Microsoft.VisualStudio.Threading, Version=16.8.0.0 is replaced with a newer version.

Regards

Ad
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Error with VS 2019 16.8.2 and Advanced Installer 17.7

Hello Ad,

Could you please try the workaround proposed by my colleague Eusebiu in the following thread:

Re: Import Visual Studio Project Exception calling

and let me know if that helps?

Note: Of course, instead fo the two DLLs mentioned by my colleague, register the one causing trouble on your end, i.e. Microsoft.VisualStudio.Threading

Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
adkerremans1
Posts: 7
Joined: Thu Nov 07, 2019 4:39 pm

Re: Error with VS 2019 16.8.2 and Advanced Installer 17.7

Hi Catalin,

The workaround works.

Regards
Ad
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Error with VS 2019 16.8.2 and Advanced Installer 17.7

You are always welcome, Ad!

I am glad to hear the workaround helped.

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

Return to “Common Problems”