[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework

Can't bind to an assembly using relative path

Toma Catalin

7/14/2008 8:57:00 AM

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.
--
Toma Catalin, Microsoft Student Partner