PC Review


Reply
Thread Tools Rate Thread

Can't bind to an assembly using relative path

 
 
Toma Catalin
Guest
Posts: n/a
 
      14th Jul 2008
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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to judge whether a path is relative path or absolute path thinktwice Microsoft Windows 2000 CMD Promt 20 8th May 2008 12:06 AM
Load an assembly using a relative path timnels@gmail.com Microsoft C# .NET 3 11th May 2007 07:55 PM
Assembly reference as a relative path? Richard Microsoft C# .NET 4 2nd Nov 2004 09:37 AM
There are any Path or Directory function to convert an absolute pathto a relative path? Ffelagund Microsoft VC .NET 2 8th Mar 2004 08:26 PM
Use of relative path in assembly info???? serge calderara Microsoft Dot NET 1 24th Jul 2003 03:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:45 PM.