C# programs startup with an error dialog box


E

eljainc

Hello,

I have a problem with .NET programs (C# written using Visual Studio
2005) that are running on a particular computer. When I execute the
programs, there is a delay followed by a dialog box with the name of
the executable on the title bar. There is an error icon with an OK
button. There is no other information displayed. After pressing the
OK button the application exits.

I tried to compile a simple WinForms application. It runs okay on my
apps development PC, but when transferred to and run on the other PC,
it crashes with the same error.

I tried to reload the dot Net 2.0 framework, selecting the repair
option. After doing this the error persists. What could be causing
this? I am fairly sure it is not a virus or such as this computer
does not connect to the internet. I will check for this however.

Thanks for any ideas on the cause of this error.

Mike
 
Ad

Advertisements

M

Mr. Arnold

eljainc said:
Hello,

I have a problem with .NET programs (C# written using Visual Studio
2005) that are running on a particular computer. When I execute the
programs, there is a delay followed by a dialog box with the name of
the executable on the title bar. There is an error icon with an OK
button. There is no other information displayed. After pressing the
OK button the application exits.

I tried to compile a simple WinForms application. It runs okay on my
apps development PC, but when transferred to and run on the other PC,
it crashes with the same error.

I tried to reload the dot Net 2.0 framework, selecting the repair
option. After doing this the error persists. What could be causing
this? I am fairly sure it is not a virus or such as this computer
does not connect to the internet. I will check for this however.

Thanks for any ideas on the cause of this error.

Well, in order to find out what the real problem is, you're going to
have to put some messageboxes in your program to tell you where it's at
during certain points in the execution at start-up.

If you don't have exception handling in the program doing a stack trace,
which will give the line number of the line and possible program name
that caused the problem, then it's going to be though for you to find
the problem.

You should put the exception handling at the start of the program that
encompasses all code that's being executed at startup.
 

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