Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] The type initializer for 'Akavache.BlobCache' threw an exception. on net6.0-windows10.0.22000.0 #777

Open
tomasfil opened this issue May 5, 2022 · 5 comments

Comments

@tomasfil
Copy link

tomasfil commented May 5, 2022

Describe the bug

After upgrade from NET 5 to NET 6 with the latest version of Akavache 8.1.1 I am getting this error:

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

DllNotFoundException: Unable to load DLL 'e_sqlite3' or one of its dependencies: The specified module could not be found. (0x8007007E)

Changing back to NET 5 makes it work

Steps To Reproduce

  1. Create project

  2. setup
    <TargetFramework>net6.0-windows10.0.22000.0</TargetFramework>

  3. Install akavache

  4. and setup initialization:

Akavache.Registrations.Start("Akavache_install_test");
BlobCache.EnsureInitialized();

image

@glennawatson
Copy link
Contributor

This one is a ongoing issue with Microsoft, there's a bug for tracking on the sqlite github which I'll find for you

@glennawatson
Copy link
Contributor

#754

This is the local one and

ericsink/SQLitePCL.raw#462 (comment)

@tomasfil
Copy link
Author

tomasfil commented May 5, 2022

Suggested fix referencing SQLite didnt help:

    <PackageReference Include="SQLitePCLRaw.bundle_e_sqlite3" Version="2.0.7" />

Glenn told me I can try and tag you Mr. @ericsink . Can I provide any more info regarding this?

@tomasfil tomasfil reopened this May 5, 2022
@tomasfil
Copy link
Author

tomasfil commented May 5, 2022

Just to add

<TargetFramework>net6.0-windows</TargetFramework>

works fine

After adding the version "10.0.22000.0' needed by other libraries makes it burn

@tomasfil
Copy link
Author

tomasfil commented May 5, 2022

I have fiddled with the versions, seeing how low it will let me, due to BitmapImage I can go lowest:

<TargetFramework>net6.0-windows10.0.19041.0</TargetFramework>

But that version has the same issue still

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants