Xamarin Forms Mail.dll

0 votes

Hello,
I'm evaluating mail.dll and I'm having some problem using the library in a xamarin forms project. Mail.dll method is running in a shared netstandard class. If I call new Imap() I get the following exception:

System.TypeInitializationException: The type initializer for '   ' threw an exception.

Inner exception is:"Value cannot be null.\nParameter name: path1

Stacktrace: at Limilabs.Client.IMAP.IDInformation.   () [0x00005] in <0da134701e424efcb50b350803122fd3>:0
at Limilabs.Client.IMAP.Imap..ctor (System.Net.Sockets.AddressFamily addressFamily) [0x00032] in <0da134701e424efcb50b350803122fd3>:0
at Limilabs.Client.IMAP.Imap..ctor ()

Same thing happens if I just call new Pop3(). Everything works as expected if I call the netstandard library from a WPF project. Maybe I'm missing some libraries. I cannot find any xamarin example.

Thank you.

asked Jan 19 by puckkk (210 points)
Can you please try the assembly in the "Redistributables\xamarin\" folder of the download package available at https://www.limilabs.com/mail/download ?
Tried with the nuget packages and with dlls of the download package. Same error.
Have you tried referencing this specific assembly. The one in xamarin folder?
Yes, just tried again referencing the dll in xamarin folder; still the same.
I created a new fresh project referencing the xamarin dll and is now working well. I think there is some trouble with different dll referencing in my project.
Thank you.

1 Answer

+1 vote

Please try the assembly in the "Redistributables\xamarin\" folder of the download package available at https://www.limilabs.com/mail/download

answered Jan 22 by Limilabs support (230,550 points)
...