Spiritual programming?

  • Thread starter Thread starter CR
  • Start date Start date
C

CR

I just received the error message "An exception has been thrown by the
target of an invocation." So, I did as any good Christian would do, I closed
Visual Studio 2005 Standard, said a little prayer, reopened Visual Studio,
and the error was gone! Invocation = Prayer, so the target of a prayer
threw an exception in my application!
Honestly, what does that error message mean? It showed up when switching
from viewing code to viewing the designer on a user control. There was no
location listed for the error, it was the only error, and evidentially,
there was nothing wrong with my code, because it works fine again.
 
CR said:
I just received the error message "An exception has been thrown by the
target of an invocation." So, I did as any good Christian would do, I closed
Visual Studio 2005 Standard, said a little prayer, reopened Visual Studio,
and the error was gone! Invocation = Prayer, so the target of a prayer
threw an exception in my application!
Honestly, what does that error message mean? It showed up when switching
from viewing code to viewing the designer on a user control. There was no
location listed for the error, it was the only error, and evidentially,
there was nothing wrong with my code, because it works fine again.

Are you using any com objects in your program?

Chris
 
We have that happen a lot: a lot of funny errors that make no sense that are
easily cleared by closing VS and reopening.

A lot of times, the errors are due to controls we purchased.
 
I have received errors like that while doing some remoting stuff that had
security issues. Think you could also get it for other reasons but that was
mine.
 
Back
Top