Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 593843
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T15:53:20+00:00 2026-05-13T15:53:20+00:00

I am working on a drag and drop system for my WPF App. The

  • 0

I am working on a drag and drop system for my WPF App.

The way it works is:

  1. I take the dragged Item
  2. Serialize it to xml
  3. When it gets dropped I deserialize it again.

This worked fine in my test app. However, now that I am trying to do it in my real app, I have hit a snag. The class I am trying to deserialize (Microsoft.TeamFoundation.WorkItemTracking.Client.FieldDefinition) does not have a public constructor.

When I try to deserialize it using this code:

XmlReader reader = XmlReader.Create(new StringReader(xamlString));
object elt = XamlReader.Load(reader);

I get this error:

Cannot create object of type 
'Microsoft.TeamFoundation.WorkItemTracking.Client.FieldDefinition'. 
CreateInstance failed, which can be caused by not having a public default 
constructor for 'Microsoft.TeamFoundation.WorkItemTracking.Client.FieldDefinition

Am I toast? Is there any way to deserialize this class? Any other ideas on how to transfer this class via drag and drop? (I am using the FluidKit Drag and Drop Advisers.)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T15:53:20+00:00Added an answer on May 13, 2026 at 3:53 pm

    I’ve worked with the FieldDefinition class quite a bit and the least of the problems you’ll have with XML serialization is the internal constructor. This is a very complex type that generally has references (indirectly) to COM values and several GC handles. It’s simply not going to be easy to serialize instances of the type.

    What you can do though is serialize the ReferenceName of the FieldDefinition. You can then use that to rebuild the FieldDefinition object at a later point.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Whenever I try to copy an entire working copy using simple drag and drop
I'm writing a small drag and drop feature on the project I'm working on.
I'm working with WPF, and trying to implement a form to receive a Drag
I am working on a large application and am adding some drag/drop functionality to
I am working on a web based drag and drop type application.I could drag
Working in Eclipse on a Dynamic Web Project (using Tomcat (v5.5) as the app
I'm working on a system for graphically querying data from a database of parasite
I'm working with jQuery's UI sortables and have created a system of divs in
I'm trying to implement a simple drag/drop of images between panels using jQuery. While
I'm creating a drag and drop enabled application and I've been trying to use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.