Team System Developer Center > Visual Studio Team System Forums > Team Foundation Server - Work Item Tracking > (TF210004) Custom Control not working anymore (VS2010 Beta 1 -> Beta 2)
Ask a questionAsk a question
 

Answer(TF210004) Custom Control not working anymore (VS2010 Beta 1 -> Beta 2)

  • Wednesday, November 04, 2009 10:33 AMFeroc Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hey,

    I have a project with a few custom controls. At the moment we are using two of them.

    Both are almost the same. One is a simple checkbox, just saving a "yes" or "no" value. The other one is almost the same, just uses a graphic instead of the checkbox (and saves some other data, too).

    The one with the graphic is still working without a problem, but the simple checkbox is not. I always get this error:

    TF210004: The control could not be loaded from the assembly.

    I found some threads about the same error with the update from 2005 to 2008, the solution was to recompile the project with the new version of VS. But I already recompiled it with VS2010 Beta 2... no help.

    Any ideas?

Answers

  • Thursday, November 05, 2009 8:47 AMFeroc Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi Hongye,

    I already tried to replace the references, that did not work. And other (more complexe) custom controls in the same project did work.

    I was able to solve the problem now by just creating a new custom control in the same project, copied and pasted the code and design. Same code, same project, but now it works.

    But thanks for your help. :)

All Replies

  • Thursday, November 05, 2009 3:05 AMHongye SunMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi Feroc,

    Thanks for reporting this issue. However, I don't find any bug related this in VS2010.

    When you say: "the solution was to recompile the project with the new version of VS", do you mean that you have replaced all the referenced TFS dlls to new version?

    Please read Naren's Blog for detail: http://blogs.msdn.com/narend/archive/2007/08/23/how-to-port-whidbey-custom-controls-to-orcas.aspx

    Hope it helps.

     

    Hongye Sun [MSFT]
    MSDN Subscriber Support in Forum
    If you have any feedback on our support, please contact msdnmg @ microsoft.com


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
  • Thursday, November 05, 2009 7:52 AMFeroc Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Sorry, you misunderstood me. The solution I found for VS2005 to 2008 was to recompile it (exactly the link you gave me), but that did not help me.
  • Thursday, November 05, 2009 8:37 AMHongye SunMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi Feroc,

    Sorry for my confusing reply. What I mean is that you should replace all the referenced TFS dlls to new version in 2010.

    Please let me know if you still have this issue after you changed the TFS dll references. Thanks.

    Hongye Sun [MSFT]
    MSDN Subscriber Support in Forum
    If you have any feedback on our support, please contact msdnmg @ microsoft.com

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
  • Thursday, November 05, 2009 8:47 AMFeroc Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi Hongye,

    I already tried to replace the references, that did not work. And other (more complexe) custom controls in the same project did work.

    I was able to solve the problem now by just creating a new custom control in the same project, copied and pasted the code and design. Same code, same project, but now it works.

    But thanks for your help. :)