-
Jan 20th, 2006, 06:01 AM
#1
Thread Starter
New Member
System.Reflection.TargetInvocationException' occurred
Can somebody help me fix this problem? I have a child form that opens on a button click event within my main form using frmMyForm.show(). It works fine the first time, but after I close the child form and try try to open it again, I get the following error:
An unhandled exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
-
Jan 20th, 2006, 06:13 AM
#2
Re: System.Reflection.TargetInvocationException' occurred
It's easy to accomplish this, so you must be doing something in your code that is causing this. Post your code. All relevant parts of it, that is.
-
Jan 20th, 2006, 07:16 AM
#3
Thread Starter
New Member
It works now
I was having a late night brain freeze placing my object as a class member instead of local to the routine. Thanks anyway.
Last edited by Tom Hannah; Jan 20th, 2006 at 07:41 AM.
-
Sep 16th, 2009, 08:45 PM
#4
New Member
Re: System.Reflection.TargetInvocationException' occurred
I am also getting the similar error.TargetInvocationExceptionthrown.
at {return (IPetShopCacheDependency)Assembly.Load(path).CreateInstance(fullyQualifiedClass);} for my class DependencyAccess.cs of the MS Petshop4 application.
I tried referring http://support.microsoft.com/kb/828991 and set the gacutil for the PetShopCacheDependency.dll and it was succesfully created in its directory.I tried executing it again but still it thrws error.Please suggest and rectify me if I am doing wrong steps!
-
Sep 16th, 2009, 10:30 PM
#5
Re: System.Reflection.TargetInvocationException' occurred
That looks an awful lot like C# code. This is the VB.NET forum. If you think the question is language independent then it belongs in .NET A & D.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|