question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SQL Lite Interop Unable to Load error

See original GitHub issue

hi

hitting an issue with SQLLite.Interop when running the grasshopper connector off the most recent commit. I’ve done some quick trouble shooting of rebuilding and refreshing my local fork but no success 😢

Below is the error message.

System.DllNotFoundException: Unable to load DLL ‘SQLite.Interop.dll’: The specified module could not be found. (Exception from HRESULT: 0x8007007E) at System.Data.SQLite.UnsafeNativeMethods.sqlite3_open_interop(Byte[] utf8Filename, Byte[] vfsName, SQLiteOpenFlagsEnum flags, Int32 extFuncs, IntPtr& db) at System.Data.SQLite.SQLite3.Open(String strFilename, String vfsName, SQLiteConnectionFlags connectionFlags, SQLiteOpenFlagsEnum openFlags, Int32 maxPoolSize, Boolean usePool) at System.Data.SQLite.SQLiteConnection.Open()

I checked the bin folder for ConnectorGrasshoper and it shows that SQLite.Interop.dll is being built, but when I drop the Accounts node in gh that error is thrown.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
izzylyscommented, Nov 12, 2021

hey there!

this issue crops up now and again and I’m not entirely sure what the cause is tbh. however, have you tried manually deleting all the bin and obj folders in core and the connector + converter (eg in Core, ConnectorGrasshopper, and ConverterRhinoGh) and rebuilding from scratch? you can also go into your AppData/Speckle folder and manually delete the object kits.

this combo usually seams to clean it up for me, so give it a try and see if it helps!

0reactions
haitheredavidcommented, Dec 6, 2021

@teocomi just getting back from the 🍯 🌔, so I apologize for the delay in getting back to the crew.

I wanted to follow up on your last suggestion to wrap up the loose ends. I added those lines to the csproj along with the post build action, but that did not seem to fix the issue. Prior to adding to those lines bin had the x86 / x64 folders with the SQLite.Interop.dll included. I’m still really confused on what makes this work vs the Unity version, but for now I am going to admit defeat and relay on the speckle manager and disable my ConnectorGrasshopper proj.

Thanks to you and @izzylys for trying to troubleshooting this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to load DLL 'SQLite.Interop.dll'
Either the named dynamic link library (DLL) cannot be located or it cannot be loaded due to missing dependencies. Make sure the named...
Read more >
Unable to load DLL 'SQLite.Interop.dll' (0x8007007E) using ...
Either getting an MSBuild update or manually specifying another target to get SQLite.Interop.dll copied should function as a work-around. Or you ...
Read more >
Thread: [RESOLVED] Unable to load DLL 'SQLite.Interop. ...
You SqLite file(s) need to be located in the same folder as the program (exe file) . On your development machine look in...
Read more >
Unable to load shared library 'SQLite.Interop.dll' · Issue #755
Data.Sql.SqlTypeProvider' reported an error: Unable to load shared library 'SQLite.Interop.dll' or one of its dependencies.
Read more >
How to fix the error when running a deployed word vsto addin
The error only occurs after deployment: unable to load dll 'sqlite.interop.dll' VERSION INFO: <package id="EntityFramework" version="6.4.4" ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found