TargetInvocation Problem
Posted: Sun May 29, 2011 10:43 am
hey Charles,
-ref:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\System.Windows.Forms.dll" #<- would produce targetInvocation error
-ref:"C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Windows.Forms.dll" #<- would work okay
this exception is thrown when trying to use some function through Reflection on these assemblies
Cobra compiler is using reflection to know these assemblies but in one case it works and in other it does not
why?
On the other hand
-ref:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll" #<- would work again
seems if assemblies of .net 4.0 are referenced from \Reference Assemblies\.. then it works okay otherwise not
do you know about this behaviour and reason for it?
Thanking_You
RIGHT_THEN
-ref:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\System.Windows.Forms.dll" #<- would produce targetInvocation error
-ref:"C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Windows.Forms.dll" #<- would work okay
this exception is thrown when trying to use some function through Reflection on these assemblies
Cobra compiler is using reflection to know these assemblies but in one case it works and in other it does not
why?
On the other hand
-ref:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll" #<- would work again
seems if assemblies of .net 4.0 are referenced from \Reference Assemblies\.. then it works okay otherwise not
do you know about this behaviour and reason for it?
Thanking_You
RIGHT_THEN