Target Invocation Error


Dec 8, 2004
Programming Experience
Hello all,

I have developed my project in the following environment ( VB.NET)
Microsoft development environment - 2002
Microsoft .net framework - 1.0.3705
Backend - Sql Server 2000

In my project i'm experiencing exception throw "Exception has been thrown by the target of an invocation". I don't know when will it occur and not occuring often. Whenever i'm using my application for more hours this error is thrown.

When i'm in search of this error in google i found some different answers:-

1. FIX: "Exception has been thrown by the target of an invocation" error message when you deserialize an empty TimeSpan class in a DataSet collection in a .NET Framework application.

2. FIX: "Exception has been thrown by the target of an invocation" error message when you try to deserialize data that has a value of Byte[0] in an application that was built on the .NET Framework 1.0.

but i'm not using any serialization method in my project to serialize objects.

I'm totaly confused and i'm not able to pin point the cause for this kind of error!!!!!!

Need help urgent

Thanx in advance,



Feb 22, 2005
Programming Experience
If it takes hours for it to be thrown, look to see if you have memory leaks. By that I mean objects created, used, and not disposed of. If you are done using an object, and that object does not have a close method (or something like it), then try setting the object = nothing.

These types of errors are hard to track down. Stick with it.
Top Bottom