Assembly search paths...

  • Thread starter Thread starter Alan Seunarayan
  • Start date Start date
A

Alan Seunarayan

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.
 
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
 
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.
 
Back
Top