Menu

#10 InvalidCastException with return type IDictionary[]

open
nobody
None
5
2012-08-16
2012-08-16
Anonymous
No

When remote method's return type is IDictionary[], call this method will throw InvalidCastException with message "Result argument has invalid type". Apparently, the bug is due to CMapDeserializer which does report correctly its type. Thus adding method:
public override Type GetOwnType()
{
return m_type;
}
in CmapDeserializer will fix the issue.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.