efcore icon indicating copy to clipboard operation
efcore copied to clipboard

Xamarin.Forms App for Android crashes with disabled Shared Mono runtime

Open okunevdm opened this issue 7 years ago • 1 comments

I use EntityFramework.Sqlite in my Xamarin.Forms project. It work fine in debug mode (Shared Mono runtime is enabled) But when i archive the release for Android without Shared Mono runtime - application crashes on first operations with context.

Exception message:
"The type initializer for 'Microsoft.EntityFrameworkCore.Sqlite.Query.ExpressionTranslators.Internal.SqliteCompositeMethodCallTranslator' threw an exception.
Value cannot be null.
Parameter name: key

Steps to reproduce

Buid in release with disabled "Shared Mono runtime"

context.Database.EnsureCreated(); threw an exception

Further technical details

Microsoft.EntityFrameworkCore.Sqlite.Core 2.2.4 Xamarin.Forms 4.0.0 (or 3.6.0)

okunevdm avatar Jun 04 '19 13:06 okunevdm

Duplicate of #12460

ajcvickers avatar Jun 06 '19 19:06 ajcvickers