I'm writing a program on VB.NET, using a WIN8, 64-bit computer. I have the .NET 4.5 framework installed.

I'm having a hard time running the program on a WINXP 32-bit computer, which has the .NET 4.0 framework.

I tried running the .EXE file from the bin folder, but it says it's not a valid win32 application.

I tried to publish the program and install it on the other computer, but that didn't work as well.

I also tried to change the framework under Project -> Properties -> application tab.

nothing worked. Does anybody have an idea how I should run the program on the other computer?

Changing the framework also caused my application problems while working with the driver for an FTDI chip ( http://www.ftdichip.com/Drivers/D2XX.htm ). Any ideas about that? the FTDI website doesn't have different DLLs for different windows versions

I would appreciate any suggestions, Thanks, Eyal

有帮助吗?

解决方案

You need to make sure of two things in the properties of your project:

  1. Application -> Target framework: This has to be .NET Framework 4, not .NET Framework 4.5
  2. Platform target: This has to be x86 or (better) Any CPU. It must not be x64.
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top