Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help needed with Reflection
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01250136
Message ID:
01250400
Views:
19
"Unable to cast object of type TabPages.PJKTabPage to type TabPages.PJKTabPage"

I encountered this error before. You probably reference the same assembly and then you try to load it from a different location. ( Once referenced, .net copies it to some diff path). So even if you have the same types returned, they dont match being from 2 physically different dlls.
Look in the AppDomain to see whether the assembly is loaded, and if not, try to load id via Assembly.Load(FullyQUalifiedName) not LoadFrom.
This should fix the casting adn parameter issue.

I can send u the code on monday if needed.
V
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform