Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with Array and Reflection
Message
From
10/01/2007 01:29:00
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01176405
Message ID:
01184068
Views:
17
>Sure you can. Look at the InnerException of the returned Exception. Somewhere in the Exception stack is the real error...
>
>Most likely it's:
>
>You're calling a method that has overloads (in which case you have to pass the parameter types as a type array)
>You don't have permissions to access the method
>The object returned is null in your code <s>

I have found what was causing this. Basically, the situation was that I was not able to get a valid error message but "Exception has been thrown by the target of an invocation.".

To resolve the issue, I have moved the Reflection code that instantiates the object and which does the call to the method inside the same DLL that is doing most of the method calls. So, now, when there is an error, I have the proper error message.

The hierarchy is that I have an executable named Robot.exe which has a reference to Framework.dll.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform