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

Realm fails in Office development projects

      Goals

      I was trying to use realm.net in an office extention

      Expected Results

      I expected realm to connect to my realm instance for sync or at least connect to an offline instance.

      Actual Results

      Crashed at connecting to database or managing users. Both with the same error:

      System.TypeInitializationException
        HResult=0x80131534
        Message=The type initializer for 'Realms.SharedRealmHandle' threw an exception.
        Source=Realm
        StackTrace:
         at Realms.SharedRealmHandle.Open(Configuration configuration, RealmSchema schema, Byte[] encryptionKey)
         at Realms.RealmConfiguration.CreateRealm(RealmSchema schema)
         at Realms.Realm.GetInstance(String databasePath)
         at Denna.Office.Common.Data.RealmContext.GetInstance() in C:\Users\mohse\Source\Repos\DennaForMSOffice\DennaForOffice\Denna.Office.Common\Data\RealmContext.cs:line 12
         at Denna.Office.Common.Services.Todos.TodoService..ctor() in C:\Users\mohse\Source\Repos\DennaForMSOffice\DennaForOffice\Denna.Office.Common\Services\Todos\TodoService.cs:line 18
         at Denna.Office.Common.Views.AddTodo..ctor() in C:\Users\mohse\Source\Repos\DennaForMSOffice\DennaForOffice\Denna.Office.Common\Views\AddTodo.xaml.cs:line 28
         at Denna.Office.Common.Views.TodoList.Button_Click(Object sender, RoutedEventArgs e) in C:\Users\mohse\Source\Repos\DennaForMSOffice\DennaForOffice\Denna.Office.Common\Views\TodoList.xaml.cs:line 30
      
      Inner Exception 1:
      DllNotFoundException: Unable to load DLL 'realm-wrappers': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
      
      

      Steps to Reproduce

      Create an office plugin and try to access database. Boom! Crashes.

      Code Sample

      https://github.com/MahStudio/DennaForMSOffice

      Version of Realm and Tooling

      • Realm Object Server Version: Cloud
      • Flavor:
        • Developer
      • Server OS & Version: Cloud
      • Client SDK Version: 3.1
      • Client OS & Version: Windows 10 version 1803 RS4 release

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: