C # application when building in Visual Studio 2010 64-bit does not work

I am working on a project on a Simulator device. If someone uses it and selects a device to simulate, another application (Net Viewer) should be able to detect the simulated device and the IP address of the device using it.

Here is my problem. I am using a 64-bit OS and my other teammate is using a 32-bit version. When I tried to create a project on my PC and started it, Net Viewer could not find my IP address. But when my teammate built the project and ran it on his PC, it worked well. Then we tried to run our project on my PC, and it worked fine.

What causes this problem? We both use anyCPU to configure the assembly.

+5
source share
2 answers

It turned out that the warning handler hurt us. My teammate solved this problem. I will try to post a piece of code that caused the problem soon.

Thanks to everyone who shared their ideas. :)

0
source

can force him to use x86 instead of any processor. Thus, your application will work fine on 32-bit, and it will work on WOW64 on your 64-bit OS.

You can also make the application work in a 32-bit module using corflags.exe: http://msdn.microsoft.com/en-us/library/ms164699%28v=VS.80%29.aspx

If this does not help you provide more detailed information.

-1
source

All Articles