Search code examples
sqldatabasewindowsvb.netvisual-studio-2022

An attempt was made to load a program with an incorrect format. VS2022 Service-based database


In visual basic WFA, when I try to add a Service-based database to the project, it gives me "An attempt was made to load a program with an incorrect format":

Error

Service-based database

I tried enabling 32 bit applications with IIS, installing VS2022 preview. I think I have the right packages as I have the database packages and .Net development components.

Note: I am running windows 11 Arm64 on parallels desktop.

Thanks in advance!


Solution

  • I was able to fix my issue: Visual Studio Arm64 edition has issue with database apparently. So I just used Visual studio 2017(Which has to be emulated on Arm64 devices) which just fixed it.