stigzler Posted January 14, 2024 Posted January 14, 2024 (edited) Hi all, This is a bit of a technical one. I am designing a plugin to place additional info on additional displays (WYSIWYG user editable game controls, game info etc). It requires quite a complex db backend and I normally use LiteDb for this (very successfully with other apps I've designed). Sadly, there is something about trying to raise a Shared connection to a LiteDb database when it runs within the domain of Launchbox. 'Direct' connections work fine. I have tested shared connections on a test app using the same Framework and LiteDb version and shared connections work fine. I basically get a Mutex error: Quote System.MissingMethodException HResult=0x80131513 Message=Method not found: 'Void System.Threading.Mutex..ctor(Boolean, System.String, Boolean ByRef, System.Security.AccessControl.MutexSecurity)'. Source=LiteDB StackTrace: at LiteDB.SharedEngine..ctor(EngineSettings settings) at LiteDB.ConnectionString.CreateEngine() at LiteDB.LiteDatabase..ctor(ConnectionString connectionString, BsonMapper mapper) I've tried placing the LitedDb database file outside of the Launchbox directory, but still get the same error. There's something about running LiteDb in the Launchbox/Plugin environment that is causing LiteDb to choke. I'm afraid the stack trace/debugging is beyond me. Would be happy to share the solution, but it might be tricky (or not - dunno) setting it up to develop being a plugin. 🤷♂️ It's brought my dev to a bit of a standstill - so any help anyone can offer would be appreciated. 😔 Edited January 14, 2024 by stigzler Quote
MysterNybble Posted January 30, 2024 Posted January 30, 2024 Just taking a wild stab at this but ... can you double-check your LiteDB assembly reference and ensure it's picking up the .NET standard version (as LB is a .NET core application - not .NET framework). Quote
stigzler Posted February 16, 2024 Author Posted February 16, 2024 (edited) Whoops. Missed this. Thanks for the reply. I think it's the right version? Edited February 16, 2024 by stigzler Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.