[Mono-dev] Assembly loader load several times the same dll

APS dev.malst at apsystems.it
Tue Sep 22 10:02:50 EDT 2009


I checked better the log file and I noticed that after have loaded 
and added all the bin assemblies to the domain it starts with web 
pages and every time it loads a new ascx/ascx file there's a log like that:

Mono-INFO: Assembly Loader probing location: 
'/tmp/apache-temp-aspnet-0/ddd13fb8/App_Web_6d545f95.dll'.
Mono-INFO: Image addref App_Web_6d545f95 0x2aaab828ebb0 -> 
/tmp/apache-temp-aspnet-0/ddd13fb8/App_Web_6d545f95.dll 0x2aaab8229e00: 2

Mono-INFO: Assembly App_Web_6d545f95 0x2aaab828ebb0 added to domain 
8ce83063, ref_count=1

Mono-INFO: Assembly Loader loaded assembly from location: 
'/tmp/apache-temp-aspnet-0/ddd13fb8/App_Web_6d545f95.dll'.
Mono-INFO: Config attempting to parse: 
'/tmp/apache-temp-aspnet-0/ddd13fb8/App_Web_6d545f95.dll.config'.
Mono-INFO: Config attempting to parse: 
'/usr/local/etc/mono/assemblies/App_Web_6d545f95/App_Web_6d545f95.config'.
Mono-INFO: Config attempting to parse: 
'/var/www/.mono/assemblies/App_Web_6d545f95/App_Web_6d545f95.config'.
Mono-INFO: Assembly Ref addref App_Web_6d545f95 0x2aaab828ebb0 -> 
WebSicDotNet 0x11dbdd00: 3

then it starts probing form System libraries and it apparently it found them

Mono-INFO: Assembly Loader probing location: 
'/usr/local/lib/mono/gac/System/2.0.0.0__b77a5c561934e089/System.dll'.
Mono-INFO: Assembly Loader probing location: 
'/usr/local/lib/mono/gac/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll'.
Mono-INFO: Assembly Loader probing location: 
'/usr/local/lib/mono/gac/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll'.
Mono-INFO: Assembly Loader probing location: 
'/usr/local/lib/mono/gac/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll'.
Mono-INFO: Assembly Loader probing location: 
'/usr/local/lib/mono/gac/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll'.
Mono-INFO: Assembly Loader probing location: 
'/usr/local/lib/mono/gac/System.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll'.
Mono-INFO: Assembly Loader probing location: 
'/usr/local/lib/mono/gac/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll'.

And then it starts looking for all the files in bin directory and for 
every file it makes something like

Mono-INFO: Assembly Loader probing location: 
'/var/www/hypersic/bin/APS.API.dll'.
Mono-INFO: Assembly Loader shadow-copied assembly to: 
'/tmp/apache-temp-aspnet-0/ddd13fb8/assembly/shadow/dcbea906/bc9b83ee_60252ae8_00000001/APS.API.dll'.
Mono-INFO: Assembly Loader probing location: 
'/var/www/hypersic/bin/APS.BaseClasses.dll'.
Mono-INFO: Assembly Loader shadow-copied assembly to: 
'/tmp/apache-temp-aspnet-0/ddd13fb8/assembly/shadow/97cc1381/f7e93969_60252ae8_00000001/APS.BaseClasses.dll'.
Mono-INFO: Assembly Loader probing location: 
'/var/www/hypersic/bin/APS.Chart.dll'.
Mono-INFO: Assembly Loader shadow-copied assembly to: 
'/tmp/apache-temp-aspnet-0/ddd13fb8/assembly/shadow/f7c1e34a/97e4c9a2_60252ae8_00000001/APS.Chart.dll'.

and so on, for the thousands of files placed inside the bin directory.
It seems to me that there's some problem cause all the files seems 
missing even if they are there. Could you help me? Maybe some 
permission problem?

At 18.04 21/09/2009, APS wrote:
>This it's clear to me but I've only one application and running it 
>(with or without batch compilation) I can see in logs that an 
>assembly is added to domain the first time it's found
>
>Mono-INFO: Assembly Loader probing location: 
>'/var/www/hypersic/bin/templatelibrary.dll'.
>Mono-INFO: Assembly Loader shadow-copied assembly to: 
>'/tmp/apache-temp-aspnet-0/ddd13fb8/assembly/shadow/3c8e4077/5cab6a9f_60252ae8_00000001/templatelibrary.dll'.
>Mono-INFO: Image addref templatelibrary 0x3367100 -> 
>/tmp/apache-temp-aspnet-0/ddd13fb8/assembly/shadow/3c8e4077/5cab6a9f_60252ae8_00000001/templatelibrary.dll 
>0x3365ab0: 2
>
>Mono-INFO: Assembly templatelibrary 0x3367100 added to domain 
>8ce83063, ref_count=1
>
>Mono-INFO: Assembly Loader loaded assembly from location: 
>'/var/www/hypersic/bin/templatelibrary.dll'.
>Mono-INFO: Config attempting to parse: 
>'/tmp/apache-temp-aspnet-0/ddd13fb8/assembly/shadow/3c8e4077/5cab6a9f_60252ae8_00000001/templatelibrary.dll.config'.
>Mono-INFO: Config attempting to parse: 
>'/usr/local/etc/mono/assemblies/templatelibrary/templatelibrary.config'.
>Mono-INFO: Config attempting to parse: 
>'/var/www/.mono/assemblies/templatelibrary/templatelibrary.config'.
>
>but after that I have many log entries like tha and the same 
>assembly appears more than one time.
>
>Mono-INFO: Assembly Loader probing location: 
>'/var/www/hypersic/bin/templatelibrary.dll'.
>Mono-INFO: Assembly Loader shadow-copied assembly to: 
>'/tmp/apache-temp-aspnet-0/ddd13fb8/assembly/shadow/3c8e4077/5cab6a9f_60252ae8_00000001/templatelibrary.dll'.
>
>As I have slow-loading issues and most of the loading time is spent 
>in this second type of log entries, I would like to know if it's a 
>standard behaviour or it's a mistake due to some conifguration error.
>Thanks again.
>
>At 14.31 21/09/2009, you wrote:
>>On Mon, 2009-09-21 at 14:06 +0200, APS wrote:
>> > No hints?
>>
>>Each assembly is loaded once per application domain and each asp.net
>>application runs in its own domain...
>>
>>-Gonzalo
>>
>>
>>
>>--
>>Il messaggio e' stato analizzato alla ricerca di virus o
>>contenuti pericolosi da MailScanner, ed e'
>>risultato non infetto.
>
>--
>Il messaggio e' stato analizzato alla ricerca di virus o
>contenuti pericolosi da <http://www.mailscanner.info/>MailScanner, ed e'
>risultato non infetto.
>_______________________________________________
>Mono-devel-list mailing list
>Mono-devel-list at lists.ximian.com
>http://lists.ximian.com/mailman/listinfo/mono-devel-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090922/6b378370/attachment.html 


More information about the Mono-devel-list mailing list