locked
Missing dll RRS feed

  • Question

  • User1622294484 posted

    Hi all,

    the reason is I'm posting this here is that my problem accurs randomly on our deployed App. For performance reasons, we put CopyLocal to false for some references. After deployement, application worked fine, but from time to time it generates dll missing error for features that worked previously. no change has been done to the application. this error accurs suddenly and randomly.

    Any idea why ? your help or thoughts are much appreciated

    Wednesday, March 30, 2016 12:54 PM

Answers

  • User-782232518 posted

    It is more of a gain a compilation/build time as you observed, as CopyLocal does significantly impact that.

    But the DllNotFoundException at runtime can be caused by a completely different thing if the assembly does reside in your bin folder. So if you do want to troubleshoot that, focus on that.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, April 1, 2016 1:03 AM

All replies

  • User-166373564 posted

    Hi,

    but from time to time it generates dll missing error for features that worked previously.

    In my opinion, it's recommended to make sure that in your reference properties you have "Copy Local" = True, perhaps it will fix this issue.

    Have a good day.

    Regards,

    Angie

    Thursday, March 31, 2016 6:32 AM
  • User-782232518 posted

    For performance reasons, we put CopyLocal to false for some references.

    Who told you that will improve performance? A reference, unless merged with your binaries with a tool such as ILMerge or IL Repack, still needs to be loaded from somewhere, so either the app finds it in GAC, or does not find it with an exception.

    Such exceptions can be intermittent, when such a reference might only be required by a small portion of code.

    Thursday, March 31, 2016 7:45 AM
  • User1622294484 posted

    Finding it from somewhere is more performant than copying it in a bin than go getting it from there .

    Besides by doing that we enhanced build time by 50 % reduction. Of course, we have though problems with exceptions that happens randomly, yes randomly because some features works then all of a sudden they just start to throw an exception

    Thursday, March 31, 2016 8:36 AM
  • User-782232518 posted

    It is more of a gain a compilation/build time as you observed, as CopyLocal does significantly impact that.

    But the DllNotFoundException at runtime can be caused by a completely different thing if the assembly does reside in your bin folder. So if you do want to troubleshoot that, focus on that.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, April 1, 2016 1:03 AM