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.TargetI nvocationE xception' 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?
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.TargetI
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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.
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 :)
ASKER
Unfortunately (or fortunately), all the machines look up-to-date on the patches.