Solved

Publishing windows form for a 32-bit computer

Posted on 2014-04-08
2
275 Views
Last Modified: 2014-05-16
I was trying to publish a windows application but user receives the error message below.  I am building the windows form application on 64bit system using visual studio 2012.  On the property build page of the solution I have the "Any CPU" and "Prefer 32-Bit" selected.   What am I missing.  I believe the user may be running Windows XP as well.

that it is not a valid Win 32 application and is not properly formatted.
0
Comment
Question by:hojohappy
2 Comments
 
LVL 44

Assisted Solution

by:AndyAinscow
AndyAinscow earned 200 total points
ID: 39986232
Does the end user have the .net runtime installed that you build it for?  (eg. If you built it for .net 4.5 and the user has only .net 4 then that could be the problem).
0
 
LVL 28

Accepted Solution

by:
Ryan McCauley earned 300 total points
ID: 40044926
Does your application use any of the memory management that x64 would enable? If not, why not just compile the application as x86 for everybody? Large integer handling is a bit slower and you can only use 2GB of memory, but are you using those things in a way that would make a difference? If not, it might be worth considering skipping on the x64 build in general.

That said, what happens if you compile an x86 build specifically for this customer (rather than AnyCPU)? Can you confirm that they have the .NET framework installed? If they say they have the framework installed but it still doesn't work, can you write a "test" app for them that just has a popup, so you can confirm that it runs? Can they install something else that requires .NET (like Paint.NET) to confirm that they have the proper framework version installed?
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question