[Mono-dev] Cannot load Mono.Security.dll

APS dev.malst at apsystems.it
Mon Jul 9 04:59:53 EDT 2007


I've upgraded mono to the latest stable version

]# mono --version
Mono JIT compiler version 1.2.4 (tarball)

but I've the same problem.
I've done some log and I noticed that, for system assemblies it 
search in the gac

Mono-INFO: Assembly Loader probing location: 
'/usr/lib/mono/gac/System.Xml/1.0.5000.0__b77a5c561934e089/System.Xml.dll'.

instead, during SSL mailing it search for

Mono-INFO: Assembly Loader probing location: 
'/usr/lib/Consts.AssemblyMono_Security.dll'.
Mono-INFO: Assembly Loader probing location: 
'/usr/lib/Consts.AssemblyMono_Security.exe'.

and, as there no files with that name it gives

Unhandled Exception: System.Web.HttpException: Cannot load 
Mono.Security.dll ---> System.Web.Mail.SmtpException: Cannot load 
Mono.Security.dll
   at System.Web.Mail.SmtpClient.ChangeToSSLSocket () [0x00000]

I checked source code, this is the incriminated piece of code:



                 Assembly a;
                 try {
                         a = Assembly.Load("Consts.AssemblyMono_Security");
                 }
                 catch(System.IO.FileNotFoundException) {
                         throw new SmtpException( "Cannot load 
Mono.Security.dll" );
                 }


I can't understand if it's a mistake or it should work in another way.
Some hint?


At 16.55 03/07/2007, Sebastien Pouliot wrote:
>On Tue, 2007-07-03 at 14:50 +0200, APS wrote:
> > Just to know, what is the way to log the path where mono search 
> for assemblies?
>
>As stated earlier "man mono" has a lot of debugging options for you.
>
>You can try this one to see from where mono loads the default (e.g.
>mscorlib) assemblies.
>
>MONO_LOG_LEVEL="info" MONO_LOG_MASK="asm" mono youapp.exe
>
>
>But as Paolo said, do yourself a favor and update to a more recent
>version of mono. There's been a lot of changes recently (some may not
>have been released yet) in the code you're trying to use.
>
> >
> > At 12.18 03/07/2007, you wrote:
> > >On 07/02/07 APS wrote:
> > > > # mono --version
> > > >
> > > > Mono JIT compiler version 1.1.17.2, (C) 2002-2006 Novell, Inc and
> > >[...]
> > > > Some other hint? :-)
> > >
> > >No need: the above is enough to tell us you're using an ages old mono:
> > >use mono 1.2.4.
> > >
> > >lupus
> > >
> > >--
> > >-----------------------------------------------------------------
> > >lupus at debian.org                                     debian/rules
> > >lupus at ximian.com                             Monkeys do it better
> > >_______________________________________________
> > >Mono-devel-list mailing list
> > >Mono-devel-list at lists.ximian.com
> > >http://lists.ximian.com/mailman/listinfo/mono-devel-list
> >
> > _______________________________________________
> > 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/20070709/20707939/attachment.html 


More information about the Mono-devel-list mailing list