All of lore.kernel.org
 help / color / mirror / Atom feed
* mono 5.0.1.1 TypeLoadException
@ 2017-10-02 14:02 MUGRIDGE Robin
  2017-10-02 15:03 ` Alex J Lennon
  0 siblings, 1 reply; 4+ messages in thread
From: MUGRIDGE Robin @ 2017-10-02 14:02 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 1100 bytes --]

Hi,

I am using mono with Krogoth.  The current version of mono we are building with is 4.2.2.30.

I am trying to move mono forward to 5.0.1.1 to avoid an issue in the HttpListener class, but now get a TypeLoadException which I assume is a missing assembly or a build configuration error, but I'm struggling to work out what's wrong...

System.TypeLoadException: Could not load type of field 'System.Net.HttpListener:tlsSettings' (9) due to: Could not resolve type with token 01000034 (from typeref, class/assembly Mono.Security.Inteace.MonoTlsSettings, Mono.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756) assembly:Mono.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756 typMono.Security.Interface.MonoTlsSettings member:<none>

Has anyone else come across this and know what the root cause is?

Thanks,

Robin





___________________________________________________________________________This e-mail is confidential and is for the addressee only.  Please refer to www.oxinst.com/email-statement for regulatory information.

[-- Attachment #2: Type: text/html, Size: 4393 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: mono 5.0.1.1 TypeLoadException
  2017-10-02 14:02 mono 5.0.1.1 TypeLoadException MUGRIDGE Robin
@ 2017-10-02 15:03 ` Alex J Lennon
  2017-10-05  6:22   ` -|EXT|- " MUGRIDGE Robin
  0 siblings, 1 reply; 4+ messages in thread
From: Alex J Lennon @ 2017-10-02 15:03 UTC (permalink / raw)
  To: MUGRIDGE Robin; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 1479 bytes --]

Hi Robin,

If you supply a test case I’ll take a look.

Regards,

Alex

> On 2 Oct 2017, at 15:02, MUGRIDGE Robin <Robin.Mugridge@oxinst.com> wrote:
> 
> Hi,
>  
> I am using mono with Krogoth.  The current version of mono we are building with is 4.2.2.30.
>  
> I am trying to move mono forward to 5.0.1.1 to avoid an issue in the HttpListener class, but now get a TypeLoadException which I assume is a missing assembly or a build configuration error, but I’m struggling to work out what’s wrong…
>  
> System.TypeLoadException: Could not load type of field 'System.Net.HttpListener:tlsSettings' (9) due to: Could not resolve type with token 01000034 (from typeref, class/assembly Mono.Security.Inteace.MonoTlsSettings, Mono.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756) assembly:Mono.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756 typMono.Security.Interface.MonoTlsSettings member:<none>
>  
> Has anyone else come across this and know what the root cause is?
>  
> Thanks,
>  
> Robin
>  
>  
>  
> 
> 
> ___________________________________________________________________________
> This e-mail is confidential and is for the addressee only.   Please refer to 
> www.oxinst.com/email-statement for regulatory information.
> -- 
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto

[-- Attachment #2: Type: text/html, Size: 4918 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: -|EXT|- Re: mono 5.0.1.1 TypeLoadException
  2017-10-02 15:03 ` Alex J Lennon
@ 2017-10-05  6:22   ` MUGRIDGE Robin
  2017-10-05  6:37     ` Alex Lennon
  0 siblings, 1 reply; 4+ messages in thread
From: MUGRIDGE Robin @ 2017-10-05  6:22 UTC (permalink / raw)
  To: Alex J Lennon; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 2402 bytes --]

Hi,

I’ve managed to track this down and it turned out to be nothing to do with mono.

In the process of creating a test case, I found I had a reference to an old version of Npgsql  (this is not provided via a yocto recipe).  The old version I was referencing included an old version of Mono.Security.dll.  My application found this version rather than the version delivered by Mono  as it was in the application directory.  Later versions of Npgsql have now dropped the inclusion of Mono.Security.dll.

Robin

From: Alex J Lennon [mailto:ajlennon@dynamicdevices.co.uk]
Sent: 02 October 2017 16:03
To: MUGRIDGE Robin
Cc: yocto@yoctoproject.org
Subject: -|EXT|- Re: [yocto] mono 5.0.1.1 TypeLoadException

Hi Robin,

If you supply a test case I’ll take a look.

Regards,

Alex

On 2 Oct 2017, at 15:02, MUGRIDGE Robin <Robin.Mugridge@oxinst.com<mailto:Robin.Mugridge@oxinst.com>> wrote:
Hi,

I am using mono with Krogoth.  The current version of mono we are building with is 4.2.2.30.

I am trying to move mono forward to 5.0.1.1 to avoid an issue in the HttpListener class, but now get a TypeLoadException which I assume is a missing assembly or a build configuration error, but I’m struggling to work out what’s wrong…

System.TypeLoadException: Could not load type of field 'System.Net.HttpListener:tlsSettings' (9) due to: Could not resolve type with token 01000034 (from typeref, class/assembly Mono.Security.Inteace.MonoTlsSettings, Mono.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756) assembly:Mono.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756 typMono.Security.Interface.MonoTlsSettings member:<none>

Has anyone else come across this and know what the root cause is?

Thanks,

Robin





___________________________________________________________________________
This e-mail is confidential and is for the addressee only.   Please refer to
www.oxinst.com/email-statement<http://www.oxinst.com/email-statement> for regulatory information.
--
_______________________________________________
yocto mailing list
yocto@yoctoproject.org<mailto:yocto@yoctoproject.org>
https://lists.yoctoproject.org/listinfo/yocto


Click here<https://www.mailcontrol.com/sr/2ZsRA7Ssu2bGX2PQPOmvUhe0y89+yNqhzi4kKcgbI2w74Qr6u8VDhtHBjwBmikGHQyO0qF!Ova7NfN+NdwfdFw==> to report this email as spam.

[-- Attachment #2: Type: text/html, Size: 8446 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: -|EXT|- Re: mono 5.0.1.1 TypeLoadException
  2017-10-05  6:22   ` -|EXT|- " MUGRIDGE Robin
@ 2017-10-05  6:37     ` Alex Lennon
  0 siblings, 0 replies; 4+ messages in thread
From: Alex Lennon @ 2017-10-05  6:37 UTC (permalink / raw)
  To: MUGRIDGE Robin; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 703 bytes --]



On 05/10/2017 07:22, MUGRIDGE Robin wrote:
>
> Hi,
>
> I’ve managed to track this down and it turned out to be nothing to do 
> with mono.
>
> In the process of creating a test case, I found I had a reference to 
> an old version of Npgsql  (this is not provided via a yocto recipe).  
> The old version I was referencing included an old version of 
> Mono.Security.dll.  My application found this version rather than the 
> version delivered by Mono  as it was in the application directory.  
> Later versions of Npgsql have now dropped the inclusion of 
> Mono.Security.dll.
>
>

Glad to hear you have it sorted out. Thanks for letting me know Robin.

Cheers,

Alex


[-- Attachment #2: Type: text/html, Size: 4186 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-10-05  7:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-02 14:02 mono 5.0.1.1 TypeLoadException MUGRIDGE Robin
2017-10-02 15:03 ` Alex J Lennon
2017-10-05  6:22   ` -|EXT|- " MUGRIDGE Robin
2017-10-05  6:37     ` Alex Lennon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.