InstallUtil.exe doesn't seem to honor <probing privatepath> settin

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm using Framework 1.1 and I'm having the following problem when trying to
install a service.
I have my auxilary assemblies in lower directory called Shared.
I have specified the following in the app.config file:

<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="Shared" />
</assemblyBinding>
</runtime>

This works at runtime but for some reason if I attempt to register the
assembly as a service I get the following error:

The inner exception System.Reflection.ReflectionTypeLoadException was thrown
with the following error message: One or more of the types in the assembly
unable to load..

It is as if the assembly's dependencies aren't being probed correctly when
using installutil.exe. This doesn't seem to make sense to me since I thought
the probing was done in the CLR itself.

Does anybody know what's wrong?
 
Back
Top