Hello,
I’m currently trying to test out realm for my next project. I’ve created a very basic console app using .net framework 5.0.102 and realm nuget package (10.0.0-beta.3). Unfortunately right from the start:
var app = App.Create("foo");
I’m getting an exception:
TypeInitializationException: The type initializer for ‘Realms.Sync.AppHandle’ threw an exception.
Inner Exception 2:
DllNotFoundException: Unable to load DLL ‘realm-wrappers’ or one of its dependencies: The specified module could not be found. (0x8007007E)
IDE:
Microsoft Visual Studio Community 2019
Version 16.8.4
Any ideas how to fix this? I do see wrappes being available in ‘runtimes’ folder:
λ dir /s
Volume in drive C has no label.
Volume Serial Number is C2FB-E58D
Directory of ..\bin\Debug\net5.0
01/18/2021 03:21 PM <DIR> .
01/18/2021 03:21 PM <DIR> ..
10/15/2020 08:23 PM 466,944 MongoDB.Bson.dll
12/10/2020 01:41 PM 305,152 Realm.dll
01/18/2021 03:10 PM 22,841 Realm_POC.deps.json
01/18/2021 03:10 PM 12,288 Realm_POC.dll
01/18/2021 03:10 PM 142,848 Realm_POC.exe
01/18/2021 03:10 PM 10,780 Realm_POC.pdb
01/18/2021 03:10 PM 246 Realm_POC.runtimeconfig.dev.json
01/18/2021 03:10 PM 147 Realm_POC.runtimeconfig.json
01/15/2021 07:07 PM <DIR> ref
02/14/2019 03:21 PM 176,640 Remotion.Linq.dll
01/15/2021 07:07 PM <DIR> runtimes
9 File(s) 1,137,886 bytes
Directory of ..\bin\Debug\net5.0\ref
01/15/2021 07:07 PM <DIR> .
01/15/2021 07:07 PM <DIR> ..
01/15/2021 07:07 PM 6,656 Realm_POC.dll
1 File(s) 6,656 bytes
Directory of ..\bin\Debug\net5.0\runtimes
01/15/2021 07:07 PM <DIR> .
01/15/2021 07:07 PM <DIR> ..
01/15/2021 07:07 PM <DIR> linux-x64
01/15/2021 07:07 PM <DIR> osx-x64
01/15/2021 07:07 PM <DIR> win-x64
01/15/2021 07:07 PM <DIR> win-x86
0 File(s) 0 bytes
Directory of ..\bin\Debug\net5.0\runtimes\linux-x64
01/15/2021 07:07 PM <DIR> .
01/15/2021 07:07 PM <DIR> ..
01/15/2021 07:07 PM <DIR> native
0 File(s) 0 bytes
Directory of ..\bin\Debug\net5.0\runtimes\linux-x64\native
01/15/2021 07:07 PM <DIR> .
01/15/2021 07:07 PM <DIR> ..
12/10/2020 01:40 PM 15,529,368 librealm-wrappers.so
1 File(s) 15,529,368 bytes
Directory of ..\bin\Debug\net5.0\runtimes\osx-x64
01/15/2021 07:07 PM <DIR> .
01/15/2021 07:07 PM <DIR> ..
01/15/2021 07:07 PM <DIR> native
0 File(s) 0 bytes
Directory of ..\bin\Debug\net5.0\runtimes\osx-x64\native
01/15/2021 07:07 PM <DIR> .
01/15/2021 07:07 PM <DIR> ..
12/10/2020 01:33 PM 13,133,840 librealm-wrappers.dylib
1 File(s) 13,133,840 bytes
Directory of ..\bin\Debug\net5.0\runtimes\win-x64
01/15/2021 07:07 PM <DIR> .
01/15/2021 07:07 PM <DIR> ..
01/15/2021 07:07 PM <DIR> native
0 File(s) 0 bytes
Directory of ..\bin\Debug\net5.0\runtimes\win-x64\native
01/15/2021 07:07 PM <DIR> .
01/15/2021 07:07 PM <DIR> ..
12/10/2020 01:37 PM 8,343,552 realm-wrappers.dll
1 File(s) 8,343,552 bytes
Directory of ..\bin\Debug\net5.0\runtimes\win-x86
01/15/2021 07:07 PM <DIR> .
01/15/2021 07:07 PM <DIR> ..
01/15/2021 07:07 PM <DIR> native
0 File(s) 0 bytes
Directory of ..\bin\Debug\net5.0\runtimes\win-x86\native
01/15/2021 07:07 PM <DIR> .
01/15/2021 07:07 PM <DIR> ..
12/10/2020 01:36 PM 7,024,128 realm-wrappers.dll
1 File(s) 7,024,128 bytes
Total Files Listed:
14 File(s) 45,175,430 bytes
32 Dir(s) 38,008,614,912 bytes free