System.TypeInitializationException: The type initializer for 'LightningDB.Native.NativeMethods'

190 views
Skip to first unread message

tl.sar...@gmail.com

unread,
Aug 12, 2016, 6:27:01 AM8/12/16
to Siaqodb - NoSQL embedded database for .NET
Hi,

I am new to SiaqoDB. I have installed trail version in my Xamarin Cross Platform project for Android Version. while creating the instance for SiaqoDB, I am getting the following error. 

"System.TypeInitializationException: The type initializer for 'LightningDB.Native.NativeMethods' threw an exception.

I have added "siaqodb.dll" and "siaqodbportable.dll" as reference in my project. Please let me know how to fix this issue.

Advance Thanks.

Siaqodb Support

unread,
Aug 12, 2016, 11:29:50 AM8/12/16
to Siaqodb - NoSQL embedded database for .NET, tl.sar...@gmail.com
The best way to solve this problem is to add Siaqodb from Nuget in all of your projects within the solution.

tl.sar...@gmail.com

unread,
Aug 14, 2016, 9:39:05 AM8/14/16
to Siaqodb - NoSQL embedded database for .NET, tl.sar...@gmail.com
As per below comment, I installed SiaqoDB from Nuget. Still I am facing the same issue. Please suggest.

Siaqodb Support

unread,
Aug 15, 2016, 1:46:20 AM8/15/16
to Siaqodb - NoSQL embedded database for .NET, tl.sar...@gmail.com
-What platform do you target: Xamarin(Android, iOS), UWP, .NET Core, .NET 4.5?
-Can you send us a repro project?

tl.sar...@gmail.com

unread,
Aug 15, 2016, 1:49:46 AM8/15/16
to Siaqodb - NoSQL embedded database for .NET, tl.sar...@gmail.com
I am choosing solution as Xamarin Cross Platform and targeting now Xamarin Android. Later I will concentrate on Xamarin iOS. Sorry I don't have repro project, I am directly working on project. 

Siaqodb Support

unread,
Aug 15, 2016, 1:53:41 AM8/15/16
to tl.sar...@gmail.com, Siaqodb - NoSQL embedded database for .NET
And on Android, what processor settings/target you have , ARMv7, ARM? and what is the min Android version? (A screenshot with the project settings would be great.)



--
You received this message because you are subscribed to the Google Groups "Siaqodb - NoSQL embedded database for .NET" group.
To unsubscribe from this group and stop receiving emails from it, send an email to siaqodb+unsubscribe@googlegroups.com.
To post to this group, send email to sia...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/siaqodb/bc7c28c9-416b-44f5-88e2-aa5b6d7c77bc%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

tl.sar...@gmail.com

unread,
Aug 15, 2016, 2:05:47 AM8/15/16
to Siaqodb - NoSQL embedded database for .NET, tl.sar...@gmail.com


Please find the screenshot for Android Target Version. I am new to Xamarin, where can I check the ARM settings? Please guide me.



On Monday, August 15, 2016 at 1:53:41 PM UTC+8, Siaqodb Support wrote:
And on Android, what processor settings/target you have , ARMv7, ARM? and what is the min Android version? (A screenshot with the project settings would be great.)
On Mon, Aug 15, 2016 at 8:49 AM, <tl.sar...@gmail.com> wrote:
I am choosing solution as Xamarin Cross Platform and targeting now Xamarin Android. Later I will concentrate on Xamarin iOS. Sorry I don't have repro project, I am directly working on project. 

On Monday, August 15, 2016 at 1:46:20 PM UTC+8, Siaqodb Support wrote:
-What platform do you target: Xamarin(Android, iOS), UWP, .NET Core, .NET 4.5?
-Can you send us a repro project?


On Sunday, August 14, 2016 at 4:39:05 PM UTC+3, tl.sar...@gmail.com wrote:
As per below comment, I installed SiaqoDB from Nuget. Still I am facing the same issue. Please suggest.


On Friday, August 12, 2016 at 11:29:50 PM UTC+8, Siaqodb Support wrote:
The best way to solve this problem is to add Siaqodb from Nuget in all of your projects within the solution.


On Friday, August 12, 2016 at 1:27:01 PM UTC+3, tl.sar...@gmail.com wrote:
Hi,

I am new to SiaqoDB. I have installed trail version in my Xamarin Cross Platform project for Android Version. while creating the instance for SiaqoDB, I am getting the following error. 

"System.TypeInitializationException: The type initializer for 'LightningDB.Native.NativeMethods' threw an exception.

I have added "siaqodb.dll" and "siaqodbportable.dll" as reference in my project. Please let me know how to fix this issue.

Advance Thanks.

--
You received this message because you are subscribed to the Google Groups "Siaqodb - NoSQL embedded database for .NET" group.
To unsubscribe from this group and stop receiving emails from it, send an email to siaqodb+u...@googlegroups.com.

To post to this group, send email to sia...@googlegroups.com.

goo...@logichip.de

unread,
Sep 23, 2016, 8:36:24 AM9/23/16
to Siaqodb - NoSQL embedded database for .NET, tl.sar...@gmail.com
Hi, i got the Problem that my app need a other lib.
The other lib build for armeabi, armeabi-v7a and x86

if i use 5.5.0.6 on my S6 i got the "The type initializer.. bla bla DLL missing Exec"

i thing that you Lib Looks for a arm64-v8a or x86_64...

plz fix this prob



On Monday, August 15, 2016 at 7:53:41 AM UTC+2, Siaqodb Support wrote:
And on Android, what processor settings/target you have , ARMv7, ARM? and what is the min Android version? (A screenshot with the project settings would be great.)
On Mon, Aug 15, 2016 at 8:49 AM, <tl.sar...@gmail.com> wrote:
I am choosing solution as Xamarin Cross Platform and targeting now Xamarin Android. Later I will concentrate on Xamarin iOS. Sorry I don't have repro project, I am directly working on project. 

On Monday, August 15, 2016 at 1:46:20 PM UTC+8, Siaqodb Support wrote:
-What platform do you target: Xamarin(Android, iOS), UWP, .NET Core, .NET 4.5?
-Can you send us a repro project?


On Sunday, August 14, 2016 at 4:39:05 PM UTC+3, tl.sar...@gmail.com wrote:
As per below comment, I installed SiaqoDB from Nuget. Still I am facing the same issue. Please suggest.


On Friday, August 12, 2016 at 11:29:50 PM UTC+8, Siaqodb Support wrote:
The best way to solve this problem is to add Siaqodb from Nuget in all of your projects within the solution.


On Friday, August 12, 2016 at 1:27:01 PM UTC+3, tl.sar...@gmail.com wrote:
Hi,

I am new to SiaqoDB. I have installed trail version in my Xamarin Cross Platform project for Android Version. while creating the instance for SiaqoDB, I am getting the following error. 

"System.TypeInitializationException: The type initializer for 'LightningDB.Native.NativeMethods' threw an exception.

I have added "siaqodb.dll" and "siaqodbportable.dll" as reference in my project. Please let me know how to fix this issue.

Advance Thanks.

--
You received this message because you are subscribed to the Google Groups "Siaqodb - NoSQL embedded database for .NET" group.
To unsubscribe from this group and stop receiving emails from it, send an email to siaqodb+u...@googlegroups.com.

To post to this group, send email to sia...@googlegroups.com.

phipp...@gmail.com

unread,
Oct 7, 2016, 5:39:45 AM10/7/16
to Siaqodb - NoSQL embedded database for .NET
It looks like in the current nuget package of Siaqodb (5.5.0.6) the 32bit Version of the LMDB native binaries are missing for Android (Xamarin).
If you build your app with target armeabi-v7a, the reccomended target for Xamarin Apps (source: https://developer.xamarin.com/guides/android/application_fundamentals/cpu_architectures/)
the file "liblmdb.so" is missing in the folder: lib/armeabi-v7a/ of the resulting apk.

You can't add them manually because for Android they should be included in the Siaqodb.dll and SiaqodbPortable.dll

See: "Xamarin.Android: LMDB native binaries are embedded into Siaqodb.dll so nothing should be done."
source: http://siaqodb.com/docs/Platform-specifics/

@Dotissi SRL: You should be able to fix that problem by building the libraries (Siaqodb.dll and SiaqodbPortable.dll) specificly for armeabi-v7a

rru...@gmail.com

unread,
Nov 11, 2016, 9:11:48 AM11/11/16
to Siaqodb - NoSQL embedded database for .NET, tl.sar...@gmail.com
I had this issue until I realized I needed to add SiaqoDB to my Android project--not just the PCL project where I was using it.
Reply all
Reply to author
Forward
0 new messages