Invocation Error

adibbo

Distinguished
Mar 25, 2011
2
0
18,510
Hi Guys,

I have been getting the following error when trying to do certain things within a .net 2.0 application we use at work.

"Exception has been thrown by the target of an invocation"

After some googleing I have discovered that this is usually a .net error.

We have two machines here of exactly the same spec, the same OS and the same .net versions installed on the machine. On one of the machines it works fine, on the other it throws this error on random screens.

Anyone got any ideas what might be causing this.

Thanks In Advance

Alex
First Choice Software
 

adibbo

Distinguished
Mar 25, 2011
2
0
18,510
The working machine is a custom build - Windows 7 Professions clean install
the machine which doesnt work is a HP also with Windows 7 Professional

I believe all of the screens have text fields on them.

Thanks
 

staggadee

Distinguished
Feb 9, 2009
4
0
18,510
Do the screens which are working have text fields on them?

I have seen similar issues with some programs where the error you have described occurs when the font used in the text fields is not present on the system.

The solution for this would be to copy the fonts directory from any working Windows Vista or Windows 7 machine over the font directory on the machine which isnt working as expected.

Hope This Helps