Unable to load DLL 'lmdb32' when releasing to my server. Works locally

49 views
Skip to first unread message

jeffm...@gmail.com

unread,
Aug 26, 2016, 2:47:36 PM8/26/16
to Siaqodb - NoSQL embedded database for .NET
This works locally, but not on my webserver. The lmbd32 and 64 dll's are both in my bin, as is the siaqodb.dll.



{
  "Message": "An error has occurred.",
  "ExceptionMessage": "The type initializer for 'LightningDB.Native.NativeMethods' threw an exception.",
  "ExceptionType": "System.TypeInitializationException",
  "StackTrace": "   at LightningDB.Native.NativeMethods.Execute(Func`2 action)\r\n   at LightningDB.LightningEnvironment..ctor(String directory, EnvironmentOpenFlags openFlags, UnixAccessMode accessMode)\r\n   at #=qsWej2ZZ6Vi_znk8hrEQHHwX66Fwif3UJsuq3yjfcxZcZDcuMoy1npzVwKbwxXrVE..ctor(String #=qY5X2E$VGT1AMGt8oOjfJYw==, Int64 #=qn_4DPfWqnygtMp8Uxw1EtQ==, Int32 #=qSXWlr7ZBXx9QRph1PepJ_g==)\r\n   at Sqo.Siaqodb.Open(String path, Int64 maxDatabaseSize, Int32 maxSubDatabases)\r\n   at Sqo.Siaqodb..ctor(String path)\r\n   at WebAPI.DataAdapter.DataFactory.GetInstance()\r\n   at WebAPI.Models.Leveling.UserExperienceFactory.GetUserExperiences(Int32 top)\r\n   at WebAPI.Models.DiscordBotAPI.LevelingManager.GetUserExperiences(Int32 top)\r\n   at WebAPI.Controllers.DiscordEntryController.GetTotalExperience(Int32 top)\r\n   at lambda_method(Closure , Object , Object[] )\r\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters)\r\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)\r\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()",
  "InnerException": {
    "Message": "An error has occurred.",
    "ExceptionMessage": "Unable to load DLL 'lmdb32': The specified module could not be found. (Exception from HRESULT: 0x8007007E)",
    "ExceptionType": "System.DllNotFoundException",
    "StackTrace": "   at LightningDB.Native.NativeMethods..cctor()"
  }
}

Siaqodb Support

unread,
Aug 26, 2016, 3:32:04 PM8/26/16
to Siaqodb - NoSQL embedded database for .NET, jeffm...@gmail.com
On some Windows OSs, Visual C++ Redistributable Packages is missing and LMDB(Siaqodb's storage engine) is dependent on it, so be sure you have installed or install it from here: https://www.microsoft.com/en-us/download/details.aspx?id=40784

Jeff Demers

unread,
Aug 26, 2016, 11:26:15 PM8/26/16
to Siaqodb Support, Siaqodb - NoSQL embedded database for .NET

Thanks! Is there a way to include it in my project instead? I don't have rdp access to my web server.

Reply all
Reply to author
Forward
0 new messages