As a FYI?
The default for VS, I think up to 2017 was "any cpu" would run as x32 bits.
Now, in 2019 (or later), "any cpu" will result in your project running as x64 bits.
So, you have to FORCE the project to run as x86.
If you don't have a x86 setting, then click on configuration manger in above and add x86.
(you can use the x64 template during that prompting process).
So, what has changed?
Any CPU now defaults to x64 compared to previous versions of VS defaulted to x32 when using "any cpu". So, now, and these days, you have to set and "force" the issue.
Note that if you accidently, (or on purpose referenced some of the other assembles, and re-compiled them, that I would check those other projects - set to x86, and re-compile (rebuild all).
Regards,
Albert D. Kallal (Access MVP 2003-2017)
Edmonton, Alberta Canada