'MapWindow GIS gives display errors in VS 2022. Works fine in 2019

I'm developing a desktop application in VB 2019. As soon as I upgraded to 2022 it gave me errors. None of the project settings change. Only the VS version.

I get three errors that prevent the form from displaying. They are:

  1. “is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)”
  2. The variable ‘AxMap1’ is either undeclared or was never assigned.
  3. Duplicate component name ‘AxMap1’. Component names must be unique and case-insensitive.

I can just continue developing in VS 2019 for now but that’s not a permanent solution. Any suggestions on what I can do?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source