[Mono-bugs] [Bug 475997] New: 'Cannot cast from source type to destination type' error when casting a custom control.
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sun Feb 15 04:41:18 EST 2009
https://bugzilla.novell.com/show_bug.cgi?id=475997
Summary: 'Cannot cast from source type to destination type'
error when casting a custom control.
Classification: Mono
Product: Mono: Compilers
Version: 2.2.x
Platform: Other
OS/Version: openSUSE 11.0
Status: NEW
Severity: Major
Priority: P5 - None
Component: C#
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: dovev.liberman at polycom.co.il
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Created an attachment (id=272885)
--> (https://bugzilla.novell.com/attachment.cgi?id=272885)
a short web site that shows the execption
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR
2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322)
When casting a TreeNode to a custom TreeNode a 'Cannot cast from source type to
destination type' error occurs.
web site is attached.
relevaant line:
DataTreeNode rootNode = (DataTreeNode)ScriptsTree.Nodes[0];
Reproducible: Always
Steps to Reproduce:
1.Build a custom TreeView and a custom TreeNode custom control.(see attached)
2.try to cast a TreeNode to a custom TreeNode
3.select a node in the TreeView
Actual Results:
A 'Cannot cast from source type to destination type' error occurs.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list