Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# application doesn't run on another computer

I complied my C# windows forms application on Visual Studio 2008 with configuration "Release". When I try to run it on another computer, no windows are shown at all. Complied on Windows 7, another computer has windows xp installed. What can it be?

Added: I didn't create any installer. Another machine has .net framework 3.0, not 3.5 installed, but simple hello world application works just fine. I tried to copy the program to another folder on my computer - no changes.

like image 383
Sergey Avatar asked Nov 30 '22 06:11

Sergey


2 Answers

Create a setup program instead of simply copying the files. This will help determine if you are missing anything such as .net fw 3.5.

like image 165
Otávio Décio Avatar answered Dec 05 '22 05:12

Otávio Décio


You said:

Another machine has .net framework 3.0, not 3.5 installed

If you configured your project to run with .NET 3.5 then you MUST install it on the other machine.

like image 34
Sameh Deabes Avatar answered Dec 05 '22 07:12

Sameh Deabes