none
Probing element being used by the installutil to determine types RRS feed

  • Question

  • Hi I have a service which I am trying to install using installutil.exe, its general structure is..

    Service1.exe
    Service1.exe.config
    \bin
     sometypelibrary.dll
     \bin\common
      somemoretypeslibrary.dll

    now the .config file contains the probing element to point the app at the bin\common path like so...

    <configuration>
    <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    <probing privatePath="bin\common"/>
    </assemblyBinding>
    </runtime>
    </configuration>

    but when I try to install this service using installutil it complains about missing types, but if I move all the type libraries to the top level service directory there is no problem. Is there some way to give installutil more searchpaths?


    • Moved by Figo Fei Monday, November 17, 2008 4:35 AM redirect (Moved from .NET Framework Setup to Common Language Runtime)
    Thursday, November 13, 2008 5:34 PM

Answers

  • Yeah, I can see how that would fail.  InstallUtil.exe is probably not smart enough to detect that it needs to use the .config file of the service executable.  Nothing in the command line arguments either.  It cannot realistically do that, the .config file would affect the way InstallUtil.exe runs.  I think you're stuck with putting the assemblies in the same path as the .exe or installing them in the GAC.

    Add your vote to this feedback article.

    Hans Passant.
    • Marked as answer by Zhi-Xin Ye Thursday, November 20, 2008 1:11 PM
    Monday, November 17, 2008 1:03 PM
    Moderator