Spiritual programming?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • CR

    #1

    Spiritual programming?

    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.


  • Chris

    #2
    Re: Spiritual programming?

    CR wrote:[color=blue]
    > 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.
    >
    >[/color]

    Are you using any com objects in your program?

    Chris

    Comment

    • CR

      #3
      Re: Spiritual programming?

      No, everything is .NET.

      "Chris" <no@spam.com> wrote in message
      news:OS1EetNhGH A.4284@TK2MSFTN GP05.phx.gbl...[color=blue]
      > CR wrote:[color=green]
      >> 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.[/color]
      >
      > Are you using any com objects in your program?
      >
      > Chris[/color]


      Comment

      • ewok66

        #4
        Re: Spiritual programming?

        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.
        --
        --ewok
        MCSA+M,MCSE, MCSD, MCDBA,MCITP


        "CR" wrote:
        [color=blue]
        > No, everything is .NET.
        >
        > "Chris" <no@spam.com> wrote in message
        > news:OS1EetNhGH A.4284@TK2MSFTN GP05.phx.gbl...[color=green]
        > > CR wrote:[color=darkred]
        > >> 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.[/color]
        > >
        > > Are you using any com objects in your program?
        > >
        > > Chris[/color]
        >
        >
        >[/color]

        Comment

        • Ray Cassick \(Home\)

          #5
          Re: Spiritual programming?

          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.

          "CR" <c@home.com> wrote in message
          news:e1z4ucNhGH A.1204@TK2MSFTN GP02.phx.gbl...[color=blue]
          >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.
          >[/color]


          Comment

          Working...