[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: Issue Calling .NET inherited class (method not found)

  • Thread starter Thread starter Mike Fechner
  • Start date Start date
Status
Not open for further replies.
M

Mike Fechner

Guest
Hi Laura, IMHO System.Type.GetType() only returns a System.Type reference when the type is in an assembly already loaded by the AVM session. Progress.Util.TypeHelper:GetType() is able to load assemblies (referenced in assemblies.xml) for first use. I tried this here in a fresh prowin session (and yes, my assemblies.xml contains all the infragistics.assemblies): DEFINE VARIABLE cType AS CHARACTER NO-UNDO INITIAL "Infragistics.Win.Appearance". MESSAGE System.Type:GetType (cType) SKIP Progress.Util.TypeHelper:GetType (cType) VIEW-AS ALERT-BOX INFORMATION BUTTONS OK. And the message gives me ? Infragistics.Win.Appearance telling me, that the System.Type:GetType returns an invalid object reference while Progress.Util.TypeHelper returns a value reference. If it's not that, is Progress.Util.TypeHelper no longer needed in your POV? Im on 11.7.2.001 FWIW. As for the arguments of the ReflectionHelper ( help.consultingwerkcloud.com/.../Consultingwerk.Util.ReflectionHelper.html) The third parameter is the type name (as a string, we use the Progress.Util.TypeHelper:GetType inside the method) to be used for but referenced without the , so "Microsoft.SharePoint.Client.ClientRuntimeContext" With Brady's error: "Runtime error: System.Argument.Exception: GenericArguments[0]. Microsoft.SharePoint.Client.ClientRuntimeContext on Void Load[t]. System.Linq.Expressions.Expression violates the constraint of type T" my assumption is, he's using a Type T which is illegal for Load or just not valid.

Continue reading...
 
Status
Not open for further replies.
Back
Top