[Mono-list] HttpHandlers

Chris Day ChrisD@monkey.biz
Tue, 16 Dec 2003 08:43:03 +1100


There is the <probing> tag that can specify subdirectories to search.
I'm not sure if this is exactly what you want as it doesn't allow
assemblies to be placed _anywhere_, but there is nothing in the specs
that says you can't do relative paths to get below the directory (ie.
use '../../../usr/local/myassemblies').  You should also have a look at
the <codeBase> tag which may also do what you want.  I am not sure if
these are implemented in Mono though.

>From msdn

<probing>

Specifies application base subdirectories for the common language
runtime to search when loading assemblies.

<configuration>
   <runtime>
      <assemblyBinding>
         <probing>

<probing privatePath=3D"paths"/>
Required Attribute
Attribute Description=20
privatePath Specifies subdirectories of the application's base directory
that might contain assemblies. Delimit each subdirectory with a
semicolon.=20

Example
The following example shows how to specify application base
subdirectories the runtime should search for assemblies.

<configuration>
   <runtime>
      <assemblyBinding xmlns=3D"urn:schemas-microsoft-com:asm.v1">
         <probing privatePath=3D"bin;bin2\subbin;bin3"/>
      </assemblyBinding>
   </runtime>
</configuration>


> -----Original Message-----
> From: Gonzalo Paniagua Javier [mailto:gonzalo@ximian.com]=20
> Sent: Tuesday, 16 December 2003 3:40 AM
> To: mono-list@lists.ximian.com
> Subject: Re: [Mono-list] HttpHandlers
>=20
>=20
> El lun, 15-12-2003 a las 17:26, Cedric Marcone escribi=F3:
> > Hum, sorry, the error was caused by the assembly not being found...
> >=20
> > I just copied it in $(prefix)/share/doc/xsp/test/bin and it works.
> >=20
> > This raises another question ;)
> >=20
> > How can I specify another location for my assemblies ?
> > I googled a bit and found someting related to the=20
> app.exe.config file,=20
> > but it does not seem to work with mono.
>=20
> For web applications, only that 'bin' directory and the paths=20
> in MONO_PATH variable are searched. Similar to what MS does.
>=20
> -Gonzalo
>=20
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com=20
> http://lists.ximian.com/mailman/listinfo/mono-> list
>=20