zeiddev
Posts: 103
Joined: Sat Aug 10, 2013 12:30 am

Visual Studio 2019 and 2022 extensions incompatible projects

Relatively recently my AI installer project stopped being compatible inside both Visual Studio 2019 and 2022 (I use both for different projects). I cannot work out why. In response I upgraded my AI to the latest version and there are no new versions of VS to upgrade to.

When I start up VS I get the error message:
Screenshot 2024-01-08 165833.png
Screenshot 2024-01-08 165833.png (17.37 KiB) Viewed 34487 times
Here is the relevant section of the activity log
<entry>
<record>636</record>
<time>2024/01/08 17:10:18.955</time>
<type>Error</type>
<source>VisualStudio</source>
<description>CreateInstance failed for package [AdvInstVSIntegrationPackage]Source: &apos;mscorlib&apos; Description: Could not load file or assembly &apos;file:///c:\users\david\appdata\local\microsoft\visualstudio\16.0_ae6ef5d4\extensions\dtiuxamq.af4\AdvInstExtensionVSIntegration.vcs16.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;file:///c:\users\david\appdata\local\microsoft\visualstudio\16.0_ae6ef5d4\extensions\dtiuxamq.af4\AdvInstExtensionVSIntegration.vcs16.dll&apos; or one of its dependencies. The system cannot find the file specified.&#x000D;&#x000A;File name: &apos;file:///c:\users\david\appdata\local\microsoft\visualstudio\16.0_ae6ef5d4\extensions\dtiuxamq.af4\AdvInstExtensionVSIntegration.vcs16.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.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>
<guid>{634D2762-4905-4843-B74C-649D410524F9}</guid>
<hr>80004005 - E_FAIL</hr>
<errorinfo></errorinfo>
</entry>
I am not sure how to fix this. Any help appreciated.

Thanks
zeiddev
Posts: 103
Joined: Sat Aug 10, 2013 12:30 am

Re: Visual Studio 2019 and 2022 extensions incompatible projects

What is really strange is that I removed the extension, but I still get the error message coming up!
zeiddev
Posts: 103
Joined: Sat Aug 10, 2013 12:30 am

Re: Visual Studio 2019 and 2022 extensions incompatible projects

I managed to resolve this by repairing both versions of Visual Studio.

One thing that was not obvious was that even though they were both repaired the projects still showed as being incompatible. I had to reload them inside the solution for them to be recognised.
Liviu
Posts: 1325
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Visual Studio 2019 and 2022 extensions incompatible projects

Hello,

It's great to hear that everything is now working as expected.

Appreciate you taking the time to share the solution. It's likely to be beneficial for other users encountering a similar situation.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
zeiddev
Posts: 103
Joined: Sat Aug 10, 2013 12:30 am

Re: Visual Studio 2019 and 2022 extensions incompatible projects

I have had this several times in the past and regularly have to repair Visual Studio. There must be something else going on as it is always a problem with Advanced Installer and no other extension. It is a really time consuming problem to fix given that repairing VS is not a small task. I wish AI would come up with a solution or at least a better reason for this. The reason that I added this post is that, once again, I have the same error so will have to go through the process of repairing VS unless there is a better solution.
Liviu
Posts: 1325
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Visual Studio 2019 and 2022 extensions incompatible projects

Hello,

Sorry to hear about the recurring issue. We’ve tried reproducing the problem on our side, but haven’t been able to.

Could you please provide a recent activity log to help us diagnose the problem?

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
zeiddev
Posts: 103
Joined: Sat Aug 10, 2013 12:30 am

Re: Visual Studio 2019 and 2022 extensions incompatible projects

Hi,

Thanks for your response. I will send through the log when I am back in the office next week.

Thanks

David
Liviu
Posts: 1325
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Visual Studio 2019 and 2022 extensions incompatible projects

You're always welcome, David!

No rush — feel free to send the log when you're back in the office next week.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Liviu
Posts: 1325
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Visual Studio 2019 and 2022 extensions incompatible projects

Hello David,

The first log you sent has been analyzed by our development team, and it seems that Visual Studio is encountering issues loading our DLL.

Normally, Visual Studio includes a .Net Runtime version compatible with our extension. If you have removed this runtime, it might be the reason why VS cannot load our extension.

Can you check if the .Net Runtime has been uninstalled?

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
zeiddev
Posts: 103
Joined: Sat Aug 10, 2013 12:30 am

Re: Visual Studio 2019 and 2022 extensions incompatible projects

Using the ASoft .NET version detector app, it reports that I have the following:

<32Bit>
2.0.50727.9179
->C:\Windows\Microsoft.NET\Framework\v2.0.50727
4.8.9261.0
->C:\Windows\Microsoft.NET\Framework\v4.0.30319

<64Bit>
2.0.50727.9179
->C:\Windows\Microsoft.NET\Framework64\v2.0.50727
4.8.9261.0
->C:\Windows\Microsoft.NET\Framework64\v4.0.30319

==== Installed .NET Frameworks ====
.NET FW 2.0 SP 2 (CLR 2.0)
.NET FW 3.0 SP 2 (CLR 2.0)
.NET FW 3.5 SP 1 (CLR 2.0)
.NET FW 4.6.2 Windows 11 22H2(CLR 4.0)
.NET FW 4.7 Windows 11 22H2(CLR 4.0)
.NET FW 4.7.1 Windows 11 22H2(CLR 4.0)
.NET FW 4.7.2 Windows 11 22H2(CLR 4.0)
.NET FW 4.8 Windows 11 22H2(CLR 4.0)
.NET FW 4.8.1 Windows 11 22H2(CLR 4.0)

==== Installed .NET Core Runtime 64bit ====
Microsoft.AspNetCore.All 2.1.30
Microsoft.AspNetCore.All 2.2.8
Microsoft.AspNetCore.App 2.1.30
Microsoft.AspNetCore.App 2.2.8
Microsoft.AspNetCore.App 3.0.3
Microsoft.AspNetCore.App 3.1.1
Microsoft.AspNetCore.App 3.1.20
Microsoft.AspNetCore.App 3.1.32
Microsoft.AspNetCore.App 5.0.0
Microsoft.AspNetCore.App 5.0.4
Microsoft.AspNetCore.App 5.0.9
Microsoft.AspNetCore.App 5.0.12
Microsoft.AspNetCore.App 5.0.17
Microsoft.AspNetCore.App 6.0.5
Microsoft.AspNetCore.App 6.0.26
Microsoft.AspNetCore.App 6.0.32
Microsoft.AspNetCore.App 7.0.20
Microsoft.AspNetCore.App 8.0.7
Microsoft.NETCore.App 2.0.9
Microsoft.NETCore.App 2.1.30
Microsoft.NETCore.App 2.2.8
Microsoft.NETCore.App 3.0.3
Microsoft.NETCore.App 3.1.1
Microsoft.NETCore.App 3.1.20
Microsoft.NETCore.App 3.1.32
Microsoft.NETCore.App 5.0.0
Microsoft.NETCore.App 5.0.4
Microsoft.NETCore.App 5.0.8
Microsoft.NETCore.App 5.0.9
Microsoft.NETCore.App 5.0.17
Microsoft.NETCore.App 6.0.4
Microsoft.NETCore.App 6.0.5
Microsoft.NETCore.App 6.0.26
Microsoft.NETCore.App 6.0.32
Microsoft.NETCore.App 7.0.20
Microsoft.NETCore.App 8.0.7
Microsoft.WindowsDesktop.App 3.0.3
Microsoft.WindowsDesktop.App 3.1.1
Microsoft.WindowsDesktop.App 3.1.20
Microsoft.WindowsDesktop.App 3.1.32
Microsoft.WindowsDesktop.App 5.0.0
Microsoft.WindowsDesktop.App 5.0.4
Microsoft.WindowsDesktop.App 5.0.8
Microsoft.WindowsDesktop.App 5.0.9
Microsoft.WindowsDesktop.App 5.0.17
Microsoft.WindowsDesktop.App 6.0.4
Microsoft.WindowsDesktop.App 6.0.5
Microsoft.WindowsDesktop.App 6.0.26
Microsoft.WindowsDesktop.App 6.0.32
Microsoft.WindowsDesktop.App 7.0.20
Microsoft.WindowsDesktop.App 8.0.7

==== Installed .NET Core Runtime 32bit ====
Microsoft.AspNetCore.App 3.0.3
Microsoft.AspNetCore.App 3.1.32
Microsoft.AspNetCore.App 5.0.17
Microsoft.AspNetCore.App 6.0.32
Microsoft.AspNetCore.App 6.0.33
Microsoft.AspNetCore.App 7.0.20
Microsoft.AspNetCore.App 8.0.7
Microsoft.NETCore.App 3.0.3
Microsoft.NETCore.App 3.1.32
Microsoft.NETCore.App 5.0.17
Microsoft.NETCore.App 6.0.4
Microsoft.NETCore.App 6.0.32
Microsoft.NETCore.App 6.0.33
Microsoft.NETCore.App 7.0.20
Microsoft.NETCore.App 8.0.7
Microsoft.WindowsDesktop.App 3.0.3
Microsoft.WindowsDesktop.App 3.1.32
Microsoft.WindowsDesktop.App 5.0.4
Microsoft.WindowsDesktop.App 5.0.17
Microsoft.WindowsDesktop.App 6.0.4
Microsoft.WindowsDesktop.App 6.0.32
Microsoft.WindowsDesktop.App 6.0.33
Microsoft.WindowsDesktop.App 7.0.20
Microsoft.WindowsDesktop.App 8.0.7

==== Installed .NET Core Sdk 64bit ====
2.1.202
2.2.110
3.1.101
3.1.120
3.1.426
5.0.100
5.0.104
5.0.214
5.0.303
5.0.408
5.0.416
6.0.202
6.0.203
6.0.321
8.0.303

==== Installed .NET Core Sdk 32bit ====

==== Languages ====
< Installed Languages 3.0>
English - United States
Swedish
< Installed Languages 3.5.x>
English - United States
Swedish
< Installed Languages 4.x>
English - United States
Swedish

==== Updates ====
AspNetWebFxUpdate_KB2992080
Microsoft .NET Framework 4 Client Profile
KB2468871
KB2468871v2
KB2478063
KB2533523
KB2544514
KB2600211
KB2600217
Microsoft .NET Framework 4 Extended
KB2468871
KB2468871v2
KB2478063
KB2533523
KB2544514
KB2600211
KB2600217
KB2468871
KB2468871v2
KB2478063
KB2533523
KB2544514
KB2600211
KB2600217
Microsoft .NET Framework 4 Multi-Targeting Pack
KB2504637 Update for (KB2504637)
==== END REPORT ====



Does that cover it?

I don't remember every having removed any .NET versions. It is not something that I would likely do to be honest.
Liviu
Posts: 1325
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Visual Studio 2019 and 2022 extensions incompatible projects

Hello David,

Everything seems fine.

Can you remove the Advanced Installer extension and then close Visual Studio?

After that, open Visual Studio, install our extension and restart Visual Studio.

Let us know how it works.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
zeiddev
Posts: 103
Joined: Sat Aug 10, 2013 12:30 am

Re: Visual Studio 2019 and 2022 extensions incompatible projects

That is something that I have tried previously without success. I can certainly try again and will send you the updated log file.
zeiddev
Posts: 103
Joined: Sat Aug 10, 2013 12:30 am

Re: Visual Studio 2019 and 2022 extensions incompatible projects

I uninstalled it and planned to go into an VS2019 without a solution open to see if that made a difference. On starting VS2019 I can the same error message coming up:
Screenshot 2024-10-01 142351.png
Screenshot 2024-10-01 142351.png (14.24 KiB) Viewed 17945 times
That would imply that it did not uninstall correctly. When I check in the extensions list it is not present. Is there a way of removing any residual files? Or is it registered somewhere?
zeiddev
Posts: 103
Joined: Sat Aug 10, 2013 12:30 am

Re: Visual Studio 2019 and 2022 extensions incompatible projects

Here is the activity log attached...
Attachments
ActivityLog.xml
(89.79 KiB) Downloaded 214 times
Liviu
Posts: 1325
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Visual Studio 2019 and 2022 extensions incompatible projects

Hello David,

Can you check if you have anything at this location?

Code: Select all

c:\users\david\appdata\local\microsoft\visualstudio\16.0_ae6ef5d4\extensions\mxe10vui.fep\
This is what it should look like:
screenshot2.png
screenshot2.png (41.99 KiB) Viewed 17942 times

Can you send us a screenshot of the files in this location?

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”