Groups | Blog | Home
all groups > dotnet xml > june 2006 >

dotnet xml : Exceptions XML Serialization


paulo
6/1/2006 12:23:39 PM
Hello,

We're developing a Windows Forms application and we are logging every
runtime exception to a file. To do this we serialize the exception in
XML using SoapFormatter.
To look at these exception it would be great to have something like the
"View Detail..." option on the exception dialog in VS2005. It shows a
tree with every property and value. Is there any easy way to build a
tree like this directly from a class or serialized class, or do we have
to iterate through each property adding new nodes to the tree?
Thanks for your attention.

Regards,
paulo
6/2/2006 12:00:00 AM
Hello Kevin,

Ok, I'll do it!
Thanks for your reply.

Regards,
paulo

[quoted text, click to view]
v-kevy NO[at]SPAM online.microsoft.com
6/2/2006 1:37:30 AM
Hi Paulo,

A tree view cannot be bound to an object to display all its properties
directly. The only way is to iterate through each property using reflection
and add them to the treeview's nodes.

Kevin Yu
Microsoft Online Community Support

============================================================================
==========================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
============================================================================
==========================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)
v-kevy NO[at]SPAM online.microsoft.com
6/5/2006 12:00:00 AM
You're welcome.

Kevin Yu
Microsoft Online Community Support

============================================================================
==========================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
============================================================================
==========================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)
AddThis Social Bookmark Button