Exception has been thrown by the target of an invocation...
Posted: Mon Jul 31, 2006 6:24 pm
Yet another .Net error that doesn't say much.
In a \"Try...End Try\" block was attempting to catch the error in VB.Net:
Try
...Some Code...
Catch ex as exception
msgbox (ex.message.tostring)
End Try
- This link helped track it down:
http://www.geekpedia.com/Question70_Exc ... ation.html
Replaced the msgbox line with:
MessageBox.Show(ex.InnerException.Message)
The \"New Message\" revealed the routine that called the routine where the error was and the line in that routine where the error occurred.
Fixed the Offending Routine (Log File Routine) by encapulating it in a \"Try...End Try\" block.
Enjoy!
In a \"Try...End Try\" block was attempting to catch the error in VB.Net:
Try
...Some Code...
Catch ex as exception
msgbox (ex.message.tostring)
End Try
- This link helped track it down:
http://www.geekpedia.com/Question70_Exc ... ation.html
Replaced the msgbox line with:
MessageBox.Show(ex.InnerException.Message)
The \"New Message\" revealed the routine that called the routine where the error was and the line in that routine where the error occurred.
Fixed the Offending Routine (Log File Routine) by encapulating it in a \"Try...End Try\" block.
Enjoy!