PC Review


Reply
Thread Tools Rate Thread

Assembly search paths...

 
 
Alan Seunarayan
Guest
Posts: n/a
 
      20th Jan 2004
Hello,
If I have a DLL with a full path 'c:\test.dll' and it's dependencies in
'c:\dep' how can I ensure that 'c:\dep' is searched when attempting to load
'c:\test.dll'?

Cheers.


 
Reply With Quote
 
 
 
 
Jan Tielens
Guest
Posts: n/a
 
      21st Jan 2004
There are two ways to specify an assembly's location:

a.. Using the <codeBase> element.
b.. Using the <probing> element.
You can also use the .NET Framework Configuration Tool (Mscorcfg.msc) to
specify assembly locations or specify locations for the common language
runtime to probe for assemblies.

For more information:

http://tinyurl.com/2gwy5


--
Greetz

Jan Tielens
________________________________
Read my weblog: http://weblogs.asp.net/jan


"Alan Seunarayan" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
> If I have a DLL with a full path 'c:\test.dll' and it's dependencies

in
> 'c:\dep' how can I ensure that 'c:\dep' is searched when attempting to

load
> 'c:\test.dll'?
>
> Cheers.
>
>



 
Reply With Quote
 
Olivier R
Guest
Posts: n/a
 
      21st Jan 2004
1°) You can't add private search paths that are not relative (ie in the
subdirectory hierarchy) to the codebase of the executing assembly.

2°) Look documentation on AppDomain.AppendPrivatePath

Olivier.

"Alan Seunarayan" <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)>...
> Hello,
> If I have a DLL with a full path 'c:\test.dll' and it's dependencies in
> 'c:\dep' how can I ensure that 'c:\dep' is searched when attempting to load
> 'c:\test.dll'?
>
> Cheers.

 
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
C++ exe and library search paths paul-shed Microsoft VC .NET 7 10th Jan 2009 03:50 AM
Problem with Assembly Paths kanaille11@googlemail.com Microsoft C# .NET 0 31st Aug 2007 12:10 PM
Re: How do I use AppDomains and add search paths to it? Eric Renken Microsoft C# .NET 12 1st Mar 2007 02:44 AM
How do I use AppDomains and add search paths to it? Eric Renken Microsoft C# .NET 12 23rd Feb 2007 10:09 AM
BUG: debugger is case-sensitive to paths when resolving assembly refrences PJ6 Microsoft ASP .NET 0 21st Sep 2006 05:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:14 PM.