Uploaded image for project: 'Realm .NET SDK'
  1. Realm .NET SDK
  2. RNET-31

Realm fails in deployed WPF/Windows10 app with realm-wrapper.dll not found error

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • Q3-22FY
    • Affects Version/s: None
    • Component/s: None

      Goals

      Trying to run a WPF/Windows10 App - which works fine when run in debug mode under VS but fails when deployed with ClickOnce.

      Expected Results

      Expect it to run like it does when running in debug mode under VS.

      Actual Results

      App throws an exception "Unable to load DLL 'realm-wrappers'".

      Steps to Reproduce

      Create a simple WPF/Windows 10 app and include the NUGET Realm 4.0.1 package.

      As a workaround it seems that if you do a build for release the Release build folder does include all the required files, including the realm-wrappers.dll. Perhaps something about the DLL placement that does not work with ClickOnce.

      Code Sample

      I will have to create a sample application for you to test but it seems there are others who have reported the same issue. It seems the realm-wrappers.dll files are in the .nuget folder and the debug app works fine. Some problem that the dll is not being included in the deployed app.

      Version of Realm and Tooling

      • Realm Object Server Version: None
      • Client SDK Version: Realm NUGET Package 4.0.1
      • Client OS & Version: Windows 10

            Assignee:
            nikola.irinchev@mongodb.com Nikola Irinchev
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: