system.invalidoperationexception

  • Thread starter Thread starter Mark Brown
  • Start date Start date
M

Mark Brown

I'm working on a vb program using Visual Studio 2008. The program works fine
on the machine I'm using for development. However, when I try to run the
program on the target computer, I get this error:

system.invalidoperationexception.

Now, I never actually see any error message. The program doesn't even
appear to launch. I just get an hourglass for a few seconds and then the
mouse goes back to normal and no program ever appears. I look in the event
log and see that error message. It gives me no clue about what it was
trying to do when it had the exception.

I googled the error and didn't really find anything useful. How do you
trouble shoot such an error? And why would it run fine on my computer, but
not on the target computer?

I'd appreciate any helpful suggestions...

Mark
 
Does the target machine have the correct .NET framework version installed?

Do you get a more helpful message if you run the debug version on it?

Andrew
 
Mark said:
I'm working on a vb program using Visual Studio 2008. The program
works fine on the machine I'm using for development. However, when I
try to run the program on the target computer, I get this error:

system.invalidoperationexception.

Now, I never actually see any error message. The program doesn't even
appear to launch. I just get an hourglass for a few seconds and then
the mouse goes back to normal and no program ever appears. I look in
the event log and see that error message. It gives me no clue about
what it was trying to do when it had the exception.

I googled the error and didn't really find anything useful. How do
you trouble shoot such an error? And why would it run fine on my
computer, but not on the target computer?

I'd appreciate any helpful suggestions...

Have you tried putting a Try-Catch block around the code in Sub Main and
show/log detailled information in the catch block?


Armin
 
I'm working on a vb program using Visual Studio 2008. The program works fine
on the machine I'm using for development.  However, when I try to run the
program on the target computer, I get this error:

system.invalidoperationexception.

Now, I never actually see any error message.  The program doesn't even
appear to launch.  I just get an hourglass for a few seconds and then the
mouse goes back to normal and no program ever appears.  I look in the event
log and see that error message.  It gives me no clue about what it was
trying to do when it had the exception.

I googled the error and didn't really find anything useful.  How do you
trouble shoot such an error?  And why would it run fine on my computer,but
not on the target computer?

I'd appreciate any helpful suggestions...

Mark

Hi Mark,
Try to look at form's load event what you're executing at this time.
Also use Try-Catch exception handling as necessary.Plus it might be
related to permissions on target computer depending on classes that
your application instantiates. More specific info including codes,
maybe useful to guess things.

Thanks,

Onur Güzel
(e-mail address removed)
(e-mail address removed)
 
Back
Top