Exception has been thrown by the
target of an invocation
Solution 1:-
AOT Data dictionary is not synchronize with Sql Server. I
perform following steps to resolve this error.
• Right click on data Dictionary and synchronize the data
Dictionary.
• Right click on AOT and compile it, it step take longer time. In the case of any error in any class, fix the issue and compiled.
• Generate full CIL.
• Right click on AOT and compile it, it step take longer time. In the case of any error in any class, fix the issue and compiled.
• Generate full CIL.
Solution 2:-
For every user, go to “Tools > Options > Development
> General” and UNCHECK the “Execute business operations in CIL” box.
Unchecking "Execute Business Operations in CIL"
means that you stopped testing whether the logic works in CIL.
Solution 3:-
- Catch the exception (by catch (Exception::CLRError)). I didn't get enough information to tell you where, but I described how to find it.
- Get the CLR exception and look into its InnerException property. AifUtil::getClrErrorMessage() is usually the easiest way to do that.
Thanks for comments.....