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

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
 
J

Jon Skeet [C# MVP]

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
 
R

R. K. Wijayaratne

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/
 
B

Boki

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top