Can't bind to an assembly using relative path

T

Toma Catalin

Hy there, I have a problem binding to an assemlby. I wan't to use an config
file to bind to an assembly that is located 1 directory up, relative to the
app path. So I made this config file:

<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="TestAssembly"
publicKeyToken="43b3f97a147cea99" />
<codeBase version="2.0.0.0" href="file:\..\TestAssembly.dll" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

This doesn't work, but in the docs it says that if TestAssembly is strongly
named, I can use relative paths. If I copy the assembly to c:\ and change the
href to "file:c:\TestAssembly.dll" it works. What can I do?
Thanks in advance.
 

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