c# executable giving an error

G

Guest

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
 
L

Lloyd Dupont

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
 
G

Guest

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,
 
L

Lloyd Dupont

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?
 

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