My C# exe file can't work on other computer.

  • Thread starter Thread starter Boki
  • Start date Start date
B

Boki

Hi All,

I have finished my first version of program, I use "build" to create
BokiProgram.exe
I copy this file from bin\release\
I copy it to my desktop folder, it works.

I copy this file to another computer, it can't work.
The error message is:

"The application initial (0xc0000135) fail, please click "OK" to
terminate program"

Could you please advice ?

I use Visual Studio 2005 C# Express.

Thank you very much!
Best regards,
Boki
 
I have finished my first version of program, I use "build" to create
BokiProgram.exe
I copy this file from bin\release\
I copy it to my desktop folder, it works.

I copy this file to another computer, it can't work.
The error message is:

"The application initial (0xc0000135) fail, please click "OK" to
terminate program"

Could you please advice ?

Does the other machine have .NET 2.0 installed on it? If not, that's
almost certainly the problem.

Jon
 
Hi

It seems the other computer doesn't have the .NET Framework installed.

One way that you can check this is to see if the following folder
exisits (assuming Windows is installed on C drive):

C:\WINDOWS\Microsoft.NET\Framework\

Under this folder it should list the various frameworks that have been
installed on the other computer, e.g.:

C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727

If the above is not on the other computer then you will need to
download and install the relevant .NET Framework runtime from
microsoft here onto it (I am assuming you have Framework 2.0 as you
are using C# Express):

http://www.microsoft.com/downloads/...CB-4362-4B0D-8EDD-AAB15C5E04F5&displaylang=en

RKW.
http://coding-help.blogspot.com/
 
Hi

It seems the other computer doesn't have the .NET Framework installed.

One way that you can check this is to see if the following folder
exisits (assuming Windows is installed on C drive):

C:\WINDOWS\Microsoft.NET\Framework\

Under this folder it should list the various frameworks that have been
installed on the other computer, e.g.:

C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727

If the above is not on the other computer then you will need to
download and install the relevant .NET Framework runtime from
microsoft here onto it (I am assuming you have Framework 2.0 as you
are using C# Express):

http://www.microsoft.com/downloads/details.aspx?FamilyID=0856EACB-436...

RKW.http://coding-help.blogspot.com/

Got it, thank you all.

Best regards,
Boki.
 
Back
Top