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

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top