473,326 Members | 2,173 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

can't run program

Hi,

I made a console program in C# and it works for me. Now I sent it to someone
else and he can't run it. Program error or something. His OS is in Swedish.
What could this be? Does he have to have the .NET FrameWork installed to run
..NET programs? I sent it to him once as exe and another time as an ace, so I
don't think it got messed up during transfer. Any thoughts?
Nov 15 '05 #1
10 2466
An,

..NET programs aren't compiled into binaries that can be directly loaded and
run. .NET programs are compiled into MSIL (Microsoft Intermediate Language)
which is a soft of machine code for the .NET CLR (Common Language Runtime).
In short, your friend is going to need to install the .NET Framework Runtime
(not SDK) before he/she can use your program.

-Mark

"An Ony" <no*****@somewhere.net> wrote in message
news:#N*************@tk2msftngp13.phx.gbl...
Hi,

I made a console program in C# and it works for me. Now I sent it to someone else and he can't run it. Program error or something. His OS is in Swedish. What could this be? Does he have to have the .NET FrameWork installed to run .NET programs? I sent it to him once as exe and another time as an ace, so I don't think it got messed up during transfer. Any thoughts?

Nov 15 '05 #2
An,

..NET programs aren't compiled into binaries that can be directly loaded and
run. .NET programs are compiled into MSIL (Microsoft Intermediate Language)
which is a soft of machine code for the .NET CLR (Common Language Runtime).
In short, your friend is going to need to install the .NET Framework Runtime
(not SDK) before he/she can use your program.

-Mark

"An Ony" <no*****@somewhere.net> wrote in message
news:#N*************@tk2msftngp13.phx.gbl...
Hi,

I made a console program in C# and it works for me. Now I sent it to someone else and he can't run it. Program error or something. His OS is in Swedish. What could this be? Does he have to have the .NET FrameWork installed to run .NET programs? I sent it to him once as exe and another time as an ace, so I don't think it got messed up during transfer. Any thoughts?

Nov 15 '05 #3
I was hoping that the framework was only needed to run .NET code on internet
websites and not to run .NET C++, C# and VB code! I wanted to stop
developing Java programs because clients always needed the virtual machine
and now it's just the same with .NET ?!
Are there papers on how fast this .NET code is then? Java was too slow for
me, mainly because of the code that had to be recompiled before you could
run it. Is this happening with .NET code too?
"Mark Jen [MSFT]" <ma*****@online.microsoft.com> schreef in bericht
news:%2****************@TK2MSFTNGP09.phx.gbl...
An,

.NET programs aren't compiled into binaries that can be directly loaded and run. .NET programs are compiled into MSIL (Microsoft Intermediate Language) which is a soft of machine code for the .NET CLR (Common Language Runtime). In short, your friend is going to need to install the .NET Framework Runtime (not SDK) before he/she can use your program.

-Mark

"An Ony" <no*****@somewhere.net> wrote in message
news:#N*************@tk2msftngp13.phx.gbl...
Hi,

I made a console program in C# and it works for me. Now I sent it to someone
else and he can't run it. Program error or something. His OS is in

Swedish.
What could this be? Does he have to have the .NET FrameWork installed to

run
.NET programs? I sent it to him once as exe and another time as an ace,

so I
don't think it got messed up during transfer. Any thoughts?


Nov 15 '05 #4
I was hoping that the framework was only needed to run .NET code on internet
websites and not to run .NET C++, C# and VB code! I wanted to stop
developing Java programs because clients always needed the virtual machine
and now it's just the same with .NET ?!
Are there papers on how fast this .NET code is then? Java was too slow for
me, mainly because of the code that had to be recompiled before you could
run it. Is this happening with .NET code too?
"Mark Jen [MSFT]" <ma*****@online.microsoft.com> schreef in bericht
news:%2****************@TK2MSFTNGP09.phx.gbl...
An,

.NET programs aren't compiled into binaries that can be directly loaded and run. .NET programs are compiled into MSIL (Microsoft Intermediate Language) which is a soft of machine code for the .NET CLR (Common Language Runtime). In short, your friend is going to need to install the .NET Framework Runtime (not SDK) before he/she can use your program.

-Mark

"An Ony" <no*****@somewhere.net> wrote in message
news:#N*************@tk2msftngp13.phx.gbl...
Hi,

I made a console program in C# and it works for me. Now I sent it to someone
else and he can't run it. Program error or something. His OS is in

Swedish.
What could this be? Does he have to have the .NET FrameWork installed to

run
.NET programs? I sent it to him once as exe and another time as an ace,

so I
don't think it got messed up during transfer. Any thoughts?


Nov 15 '05 #5
"An Ony" <no*****@somewhere.net> wrote in message
news:eJ**************@TK2MSFTNGP12.phx.gbl...
I was hoping that the framework was only needed to run .NET code on internet websites and not to run .NET C++, C# and VB code! I wanted to stop
developing Java programs because clients always needed the virtual machine and now it's just the same with .NET ?! Your clients will need the .NET runtime. This is already packaged in
windows server 2003, and Microsoft says it will be integrated into
future versions of windows, but in the meantime, your friends will
need to specifically download the runtime (or you can give it to them
on CD!).
Are there papers on how fast this .NET code is then? You can search through this and comp.lang.java.advocacy newgroups and
find many people who have tried to compare the two, always with an app
that shows just one aspect of a language. Technically, Microsoft
restricts people from publishing any such papers comparing the two, so
there aren't many (any) out there that are really balanced (IMO).
There are a lot of people on the NG who also use / used Java so their
opinions may be quite valid here.
Java was too slow for
me, mainly because of the code that had to be recompiled before you could run it. Is this happening with .NET code too?

..NET, like Java, uses a Just-In-Time compiler. Here's an article that
talks some about the JIT compiler in .NET and why it may not hurt you
as much as you think.
http://www.wintellect.com/resources/...ghts_NGen.html

I guess I'm curious what part of Java was too slow for you? Was it
really the re-compiling that was slowing it down (how do you know)?
Not the garbage collection? Or other aspects of a having a "runtime"
or "virutal machine". I personally felt that Java GUI's (especially
swing) felt slow, but I think that's more to do with the number of
APIs and classes being used. I haven't experienced that with .NET
(probably because it's more closely integrated with the windows APIs).
As for pure number crunching, I doubt you'd find much difference at
all.
(
http://weblogs.cs.cornell.edu/AllThi...es/000052.html
shows very little difference for what it's worth). Another ng post
showed java's regular expressions compiled faster than .NETs. So
there's also just the efficiency of the classes that you use (java.*
vs. System.*)

I guess you could give up managed code and write in C++. But what a
pain!

Oh, and C# does provide for "unsafe" code that can use C++ style
pointers when you have some really intense algorithms that can benefit
from direct array access.

Just my two-cents.
Mike
Nov 15 '05 #6
"An Ony" <no*****@somewhere.net> wrote in message
news:eJ**************@TK2MSFTNGP12.phx.gbl...
I was hoping that the framework was only needed to run .NET code on internet websites and not to run .NET C++, C# and VB code! I wanted to stop
developing Java programs because clients always needed the virtual machine and now it's just the same with .NET ?! Your clients will need the .NET runtime. This is already packaged in
windows server 2003, and Microsoft says it will be integrated into
future versions of windows, but in the meantime, your friends will
need to specifically download the runtime (or you can give it to them
on CD!).
Are there papers on how fast this .NET code is then? You can search through this and comp.lang.java.advocacy newgroups and
find many people who have tried to compare the two, always with an app
that shows just one aspect of a language. Technically, Microsoft
restricts people from publishing any such papers comparing the two, so
there aren't many (any) out there that are really balanced (IMO).
There are a lot of people on the NG who also use / used Java so their
opinions may be quite valid here.
Java was too slow for
me, mainly because of the code that had to be recompiled before you could run it. Is this happening with .NET code too?

..NET, like Java, uses a Just-In-Time compiler. Here's an article that
talks some about the JIT compiler in .NET and why it may not hurt you
as much as you think.
http://www.wintellect.com/resources/...ghts_NGen.html

I guess I'm curious what part of Java was too slow for you? Was it
really the re-compiling that was slowing it down (how do you know)?
Not the garbage collection? Or other aspects of a having a "runtime"
or "virutal machine". I personally felt that Java GUI's (especially
swing) felt slow, but I think that's more to do with the number of
APIs and classes being used. I haven't experienced that with .NET
(probably because it's more closely integrated with the windows APIs).
As for pure number crunching, I doubt you'd find much difference at
all.
(
http://weblogs.cs.cornell.edu/AllThi...es/000052.html
shows very little difference for what it's worth). Another ng post
showed java's regular expressions compiled faster than .NETs. So
there's also just the efficiency of the classes that you use (java.*
vs. System.*)

I guess you could give up managed code and write in C++. But what a
pain!

Oh, and C# does provide for "unsafe" code that can use C++ style
pointers when you have some really intense algorithms that can benefit
from direct array access.

Just my two-cents.
Mike
Nov 15 '05 #7
okay, I'll check all those sites...
but my program still isn't running. Someone has the Server edition 2003,
gives an error. My other contacts went to windowsupdate and that didn't say
that they could install .NET so it probably is installed already and my
program still doesn't run over there.
What now?
"Michael Mayer" <mr*****@charter.net> schreef in bericht
news:%2****************@TK2MSFTNGP11.phx.gbl...
"An Ony" <no*****@somewhere.net> wrote in message
news:eJ**************@TK2MSFTNGP12.phx.gbl...
I was hoping that the framework was only needed to run .NET code on internet
websites and not to run .NET C++, C# and VB code! I wanted to stop
developing Java programs because clients always needed the virtual

machine
and now it's just the same with .NET ?!

Your clients will need the .NET runtime. This is already packaged in
windows server 2003, and Microsoft says it will be integrated into
future versions of windows, but in the meantime, your friends will
need to specifically download the runtime (or you can give it to them
on CD!).
Are there papers on how fast this .NET code is then?

You can search through this and comp.lang.java.advocacy newgroups and
find many people who have tried to compare the two, always with an app
that shows just one aspect of a language. Technically, Microsoft
restricts people from publishing any such papers comparing the two, so
there aren't many (any) out there that are really balanced (IMO).
There are a lot of people on the NG who also use / used Java so their
opinions may be quite valid here.
Java was too slow for
me, mainly because of the code that had to be recompiled before you

could
run it. Is this happening with .NET code too?

.NET, like Java, uses a Just-In-Time compiler. Here's an article that
talks some about the JIT compiler in .NET and why it may not hurt you
as much as you think.

http://www.wintellect.com/resources/...ghts_NGen.html
I guess I'm curious what part of Java was too slow for you? Was it
really the re-compiling that was slowing it down (how do you know)?
Not the garbage collection? Or other aspects of a having a "runtime"
or "virutal machine". I personally felt that Java GUI's (especially
swing) felt slow, but I think that's more to do with the number of
APIs and classes being used. I haven't experienced that with .NET
(probably because it's more closely integrated with the windows APIs).
As for pure number crunching, I doubt you'd find much difference at
all.
(
http://weblogs.cs.cornell.edu/AllThi...es/000052.html
shows very little difference for what it's worth). Another ng post
showed java's regular expressions compiled faster than .NETs. So
there's also just the efficiency of the classes that you use (java.*
vs. System.*)

I guess you could give up managed code and write in C++. But what a
pain!

Oh, and C# does provide for "unsafe" code that can use C++ style
pointers when you have some really intense algorithms that can benefit
from direct array access.

Just my two-cents.
Mike

Nov 15 '05 #8
okay, I'll check all those sites...
but my program still isn't running. Someone has the Server edition 2003,
gives an error. My other contacts went to windowsupdate and that didn't say
that they could install .NET so it probably is installed already and my
program still doesn't run over there.
What now?
"Michael Mayer" <mr*****@charter.net> schreef in bericht
news:%2****************@TK2MSFTNGP11.phx.gbl...
"An Ony" <no*****@somewhere.net> wrote in message
news:eJ**************@TK2MSFTNGP12.phx.gbl...
I was hoping that the framework was only needed to run .NET code on internet
websites and not to run .NET C++, C# and VB code! I wanted to stop
developing Java programs because clients always needed the virtual

machine
and now it's just the same with .NET ?!

Your clients will need the .NET runtime. This is already packaged in
windows server 2003, and Microsoft says it will be integrated into
future versions of windows, but in the meantime, your friends will
need to specifically download the runtime (or you can give it to them
on CD!).
Are there papers on how fast this .NET code is then?

You can search through this and comp.lang.java.advocacy newgroups and
find many people who have tried to compare the two, always with an app
that shows just one aspect of a language. Technically, Microsoft
restricts people from publishing any such papers comparing the two, so
there aren't many (any) out there that are really balanced (IMO).
There are a lot of people on the NG who also use / used Java so their
opinions may be quite valid here.
Java was too slow for
me, mainly because of the code that had to be recompiled before you

could
run it. Is this happening with .NET code too?

.NET, like Java, uses a Just-In-Time compiler. Here's an article that
talks some about the JIT compiler in .NET and why it may not hurt you
as much as you think.

http://www.wintellect.com/resources/...ghts_NGen.html
I guess I'm curious what part of Java was too slow for you? Was it
really the re-compiling that was slowing it down (how do you know)?
Not the garbage collection? Or other aspects of a having a "runtime"
or "virutal machine". I personally felt that Java GUI's (especially
swing) felt slow, but I think that's more to do with the number of
APIs and classes being used. I haven't experienced that with .NET
(probably because it's more closely integrated with the windows APIs).
As for pure number crunching, I doubt you'd find much difference at
all.
(
http://weblogs.cs.cornell.edu/AllThi...es/000052.html
shows very little difference for what it's worth). Another ng post
showed java's regular expressions compiled faster than .NETs. So
there's also just the efficiency of the classes that you use (java.*
vs. System.*)

I guess you could give up managed code and write in C++. But what a
pain!

Oh, and C# does provide for "unsafe" code that can use C++ style
pointers when you have some really intense algorithms that can benefit
from direct array access.

Just my two-cents.
Mike

Nov 15 '05 #9
"An Ony" <no*****@somewhere.net> wrote in message
news:u9**************@TK2MSFTNGP10.phx.gbl...
okay, I'll check all those sites...
but my program still isn't running. Someone has the Server edition 2003, gives an error. My other contacts went to windowsupdate and that didn't say that they could install .NET so it probably is installed already and my program still doesn't run over there.
What now?


I assume it still runs on your pc? You originally said that it was
bombing on a swedish windows os. Have you tried on other PC's of your
same culture?
What's the error message?
Can you narrow it down to a short-but complete program that reproduces
the problem?
http://www.pobox.com/~skeet/csharp/complete.html

More details would help us out here.

Mike
Nov 15 '05 #10
"An Ony" <no*****@somewhere.net> wrote in message
news:u9**************@TK2MSFTNGP10.phx.gbl...
okay, I'll check all those sites...
but my program still isn't running. Someone has the Server edition 2003, gives an error. My other contacts went to windowsupdate and that didn't say that they could install .NET so it probably is installed already and my program still doesn't run over there.
What now?


I assume it still runs on your pc? You originally said that it was
bombing on a swedish windows os. Have you tried on other PC's of your
same culture?
What's the error message?
Can you narrow it down to a short-but complete program that reproduces
the problem?
http://www.pobox.com/~skeet/csharp/complete.html

More details would help us out here.

Mike
Nov 15 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Tom Lee | last post by:
Hi, I'm new to .NET 2003 compiler. When I tried to compile my program using DEBUG mode, I got the following errors in the C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7 \include\xdebug...
6
by: William J. Leary Jr. | last post by:
I'm running a VB6 program, the IDE for a compiler. Paste doesn't work if the text was cut/copied from within the program. That is: 1. Cut/copy inside the program, can't paste. Program:...
2
by: Zalek Bloom | last post by:
Actually I would like to know what additional JCL I will need if a COBOL non-DB2 program is calling to a COBOL/DB2 program. The original non-DB2 program is executed using: //STEP1 EXEC ...
2
by: Erik | last post by:
Hi Everyone, I'm having real problems compiling some source for eVC4++. The errors I am getting are below: It all seems to be centred around winsock. If I move the afsock.h reference to before...
29
by: Roy Gourgi | last post by:
Hi, I am new to C#. I have the same time scheduling program written in C++ and it is 5 times faster than my version in C#. Why is it so slow as I thought that C# was only a little slower than...
11
by: John Fly | last post by:
I'm working on a large project(from scratch). The program is essentially a data file processor, the overall view is this: A data file is read in, validated and stored in a memory structure...
8
by: Sree | last post by:
hello friends, Can i make a C program run as as background service? for eg. like the windows services we have. which are not visible on the desktop but still running behind. If there is some...
6
by: Jim Lewis | last post by:
Pickling an instance of a class, gives "can't pickle instancemethod objects". What does this mean? How do I find the class method creating the problem?
109
by: zaidalin79 | last post by:
I have a java class that goes for another week or so, and I am going to fail if I can't figure out this simple program. I can't get anything to compile to at least get a few points... Here are the...
11
by: cybervigilante | last post by:
I can't seem to change the include path on my local winmachine no matter what I do. It comes up as includ_path .;C:\php5\pear in phpinfo() but there is no such file. I installed the WAMP package...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.