Link to home
Start Free TrialLog in
Avatar of boulder_bum
boulder_bum

asked on

TargetInvocationException on Deployment

I have a weird issue that I'm trying to sort out and I'm wondering if anyone has any similar experiences to give me a lead.

A Windows app I developed runs fine locally, on my notebook (second computer) at home, and on my friend's machine apparently, but when I try to open the file at work to use it to perform an assigned task I get:


An unhandled exception of type
'System.Reflection.TargetInvocationException' occurred in mscorlib.dll

Additional information: Exception has been thrown by the target of an invocation.




I tried to see if I was including files on one machine that I wasn't on another and apparently they use the same stuff. Are there any circumstances where I'd get such an error on one machine and not another?
ASKER CERTIFIED SOLUTION
Avatar of Razzie_
Razzie_

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of boulder_bum
boulder_bum

ASKER

Good guess! Definately a useful bit of info.

Unfortunately (or fortunately), all the machines look up-to-date on the patches.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I ended up e-mailing myself the entire solution and it turns out that my subclassed LicenseManager tried to reference a file that got created after a certain point in processing. The issue didn't show up before because I didn't license the class until a recent build.

Why a FileNotFoundException wasn't thrown is a little puzzling to me, but at least it works now.

Razzie and Jigit got the bigger points because I thought the answers were most likely to help, but I appreciate your effort, Tom, so props to you, too.
Sorry it wasn't THE answer you were looking for, but glad you got it all figured out anyway :)