none
LoadFrom() to pick From my Path RRS feed

  • Question

  • Hi all

    how can i make LoadFrom() to Pick Dll's from my given Path to it rather than GAC.

    with regards,

    vishnu k.


    vishnu

    Monday, January 5, 2015 5:11 AM

Answers

All replies

  • The MSDN documentation for LoadFrom shows an example with absolute path:

        Assembly SampleAssembly;
        SampleAssembly = Assembly.LoadFrom("c:\\Sample.Assembly.dll");

    Does it work for you after adjustments?

    Monday, January 5, 2015 7:55 AM
  • If the assembly is signed, you cannot do this without removing it from the GAC. Since .NET Framework 2, the CLR always look for a signed assembly in the GAC first.

    This is by desing.

    Please refer to the following page for more information: http://stackoverflow.com/questions/23871725/load-assembly-from-path

    Please remember to mark helpful posts as answer and/or helpful.

    Monday, January 5, 2015 9:57 AM