RelativeSearchPath: null even if probing is configured and working RRS feed

  • Question

  • I need to load at runtime assemblies that rely on external references. I am aware that since such referenced assemblies are not in the application folder, I need to inform the assembly loader about other (private) probing paths, and I can successfully set the custom probing paths by providing a proper application configuration file, containing the following entry:
      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
        <probing privatePath="Common1;Comon2"/>

    Assembly resolution works fine, but I am not able to retrieve the values I stored in the privatePath attribute, unless I read the configuration file directly.

    I was expecting that setting such value, would affect either
    but it does not. Both properties hold a null value, even if the assembly resolver is aware of my custom probing paths.

    Is there a way to retrieve such information, without having to read the configuration file directly?

    • Edited by Daniele Mancini Tuesday, February 9, 2010 9:01 AM Spelling mistake
    Monday, February 8, 2010 7:18 PM