Solution: If you encounter an error when running generated 32-bit Windows device client code on a 64-bit machine:
- In Visual Studio, in the toolbar, select Configuration Manager from the Solution Platforms list.
- In the Configuration Manager, in Active Solution Platform, select New.
- In Type or select the new platform, enter x86.
- Restart the application.