473,473 Members | 1,800 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

c# executable giving an error

Hi,

I built a windows application, when i run the executable in the machine
where i built the application it is running good, but when i copy it to other
machines and run the exe and i am getting an error "executable encountered an
error and needs to close". i appreciate if any one tells me why i am getting
this error.

Thanks in advance
Oct 10 '05 #1
3 1370
I think you've got a bug.
Find and resolve the bug and the message box would go away.

No need to thanks me ;-)

Tip #1: install a try / catch in the main and print/log/display the error
message & stack trace

--
There are 10 kinds of people in this world. Those who understand binary and
those who don't.
"Bidarkota" <pr******@yahoo.com> wrote in message
news:F4**********************************@microsof t.com...
Hi,

I built a windows application, when i run the executable in the machine
where i built the application it is running good, but when i copy it to
other
machines and run the exe and i am getting an error "executable encountered
an
error and needs to close". i appreciate if any one tells me why i am
getting
this error.

Thanks in advance

Oct 10 '05 #2
Hi,

I am able to execute the application without any errors in my machine, but
when i copy the executable and related dlls to different machine i am getting
this error.I am using try catch statements also.
Thanks,
"Lloyd Dupont" wrote:
I think you've got a bug.
Find and resolve the bug and the message box would go away.

No need to thanks me ;-)

Tip #1: install a try / catch in the main and print/log/display the error
message & stack trace

--
There are 10 kinds of people in this world. Those who understand binary and
those who don't.
"Bidarkota" <pr******@yahoo.com> wrote in message
news:F4**********************************@microsof t.com...
Hi,

I built a windows application, when i run the executable in the machine
where i built the application it is running good, but when i copy it to
other
machines and run the exe and i am getting an error "executable encountered
an
error and needs to close". i appreciate if any one tells me why i am
getting
this error.

Thanks in advance


Oct 10 '05 #3
> I am able to execute the application without any errors in my machine, but
when i copy the executable and related dlls to different machine i am
getting
this error.I am using try catch statements also. And what does the try/catch says? do you log it? its it at the very top
level (in the main function)?
If the try/catch says nothing you don't a message kind of: "can't load that
dll" and so...
maybe .NET is not installed in the test computer?
but I though the error message would be more explicit... maybe you kept for
your self some extra information?

Thanks,
"Lloyd Dupont" wrote:
I think you've got a bug.
Find and resolve the bug and the message box would go away.

No need to thanks me ;-)

Tip #1: install a try / catch in the main and print/log/display the error
message & stack trace

--
There are 10 kinds of people in this world. Those who understand binary
and
those who don't.
"Bidarkota" <pr******@yahoo.com> wrote in message
news:F4**********************************@microsof t.com...
> Hi,
>
> I built a windows application, when i run the executable in the machine
> where i built the application it is running good, but when i copy it to
> other
> machines and run the exe and i am getting an error "executable
> encountered
> an
> error and needs to close". i appreciate if any one tells me why i am
> getting
> this error.
>
> Thanks in advance


Oct 10 '05 #4

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

Similar topics

9
by: Eric | last post by:
Problem: -------- I'm trying to create an executable jar file. I can do so as long as I don't use the "package" statement in my source code. Once I put the package statement in I can't execute...
3
by: Steven Bethard | last post by:
This has probably been answered before, but my Google skills have failed me so far... Is there an os independent way of checking to see if a particular executable is on the path? Basically what...
4
by: presentt | last post by:
Hello, I'm running Ubuntu Linux 5.04. I just started teaching myself Python today, and have been reading a few things to get started. I came across something in one (namely...
3
by: SpIcH | last post by:
Hi All, This is all about protecting my data in Executable file. I have developed a program in Visual Basic .NET 2002. I have many questions in mind... please help me to complete my project. ...
3
by: Bidarkota | last post by:
Hi, I built a windows application, when i run the executable in the machine where i built the application it is running good, but when i copy it to other machines and run the exe and i am...
34
by: priyanka | last post by:
Hi, I was wondering if we could parse or do something in the executable( whose source language was C). How can I use some scripting language like perl/python to find out the information about...
6
by: Scubadude | last post by:
Hi, I'm new to perl and have run into some roadblocks while trying to run tutorials. I have installed Apache v2.2.3 I have installed ActivePerl v6.6.1.638 I have installed php v5.2.0 I am...
2
by: psbasha | last post by:
Hi, I have created a Executable ( Exe) of an Python application using Py2Exe.I have implemented for Batch or Interactive application run in the source code.But I able run the interactive...
4
by: Brad Pears | last post by:
I have a vb.net 2005 project and have made a lot of modifications to it. The project runs fine in debug mode. Now I want to implement it and first I am running the executable on my machine to make...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.