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.


    Monday, January 5, 2015 5:11 AM


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:

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

    Monday, January 5, 2015 9:57 AM