Assembly locking during reflection RRS feed

  • General discussion

  • Hi,

    I am trying to Reflect an assembly through a Visual Studio AddIn/Package. The assembly is present in a different directory and not in the bin folder. I face dll locking issue and other Serialization/Cast exceptions with the following options

    1. Reading assembly as Byte[]

    2. Loading in different app domain

    3. Copying assembly to different folder

     Is there a clean way or any pattern to solve this problem? 


    Ajeeth Kumar.A, Cognizant

    • Changed type Mike Feng Thursday, September 27, 2012 11:20 AM has solution
    Wednesday, September 26, 2012 7:55 AM

All replies

  • Hi Ajeeth,

    Welcome to the MSDN Forum.

    I agree with your way. Please try it.

    Best regards,

    Mike Feng
    MSDN Community Support | Feedback to us
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Thursday, September 27, 2012 11:19 AM