Click here to Skip to main content
15,899,124 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i made a windows form application and want to install it non windows xp. as soon as i click the .exe file it says "c\document\window\ is not an valid 32 bit application "
please somebody help me to resolve this error.

Thanks in Advance.

What I have tried:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace test
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void label1_Click(object sender, EventArgs e)
{

}

private void button1_Click(object sender, EventArgs e)
{
Form2 frm2 = new Form2();
frm2.Show();
//this.Close();

}
}
}
Posted
Updated 2-Mar-16 9:58am
Comments
Sergey Alexandrovich Kryukov 2-Mar-16 14:49pm    
"c\document\window\" looks like directory name, not file; it could not possibly be a "valid application"
—SA
Richard Deeming 2-Mar-16 15:55pm    
Have you installed the correct version of .NET? XP didn't have it installed by default. Also, you're going to be limited to .NET 4.0, because later versions are not supported on XP.
Philippe Mori 2-Mar-16 23:48pm    
You don't provide any relevant information. Which version of .NET are you using. Is your application 32 or 64 bits? Is your XP system 32 bits? What do you use to build your setup? What are the dependencies of your application?

1 solution

What did you copy over to the other machine? If it wasn't the .EXE and all the .DLL's associated with it from the bin folder of your project, yeah, it's not a valid executable.

Also, what version of the .NET Framework did your application target? Go into your project Properties to find that. Windows XP is only supported by .NET 4.0 and below. If your project is targeting .NET 4.5 and above it will not work on Windows XP.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900