locked
Adding Activity Library 64 bit to toolbox fails RRS feed

  • Question

  • I am running visual studio 2010 on 64 bit windows 7 professional OS. I am writing workflow foundation 4.0 code activities. When I compile the code activity under x86 platform add the activity DLL to  tool box, it works fine. I see the activities in the tool box.  But when  I compile as 64 bit, I could not add the activity to the tool box. The error is "It is illegal to reflect on the custom attributes of a Type loaded via ReflectionOnlyGetType -- use customAttributeData instead. Can you please advise on how to resolve this issue?

    Thanks, RK

    Friday, February 4, 2011 7:12 PM

Answers

  • Hi, RK

    A 32 bit compiled dll cannot call a 64 bit dll. you can set platform target as "Any CPU".

    Regards
    MSDN Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    This posting is provided "AS IS" with no warranties, and confers no rights. My Blog: http://xhinker.com
    Microsoft Windows Workflow Foundation 4.0 Cookbook
    • Marked as answer by rk.ca Friday, February 11, 2011 10:12 PM
    Friday, February 11, 2011 5:50 AM

All replies

  • Hi, RK

    A 32 bit compiled dll cannot call a 64 bit dll. you can set platform target as "Any CPU".

    Regards
    MSDN Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    This posting is provided "AS IS" with no warranties, and confers no rights. My Blog: http://xhinker.com
    Microsoft Windows Workflow Foundation 4.0 Cookbook
    • Marked as answer by rk.ca Friday, February 11, 2011 10:12 PM
    Friday, February 11, 2011 5:50 AM
  • Thank you Andrew.  I compiled under AnyCPU  shortly after the posting the question and that resolved the problem.  
    Friday, February 11, 2011 10:18 PM