Search Issue Tracker
Duplicate
Votes
1
Found in
2021.2
2021.2.0b10
2022.1
Issue ID
1368393
Regression
Yes
DllNotFoundException error is thrown when launching dedicated server build
Reproduction steps:
1. Open the user's attached project
2. Build for dedicated server
3. Run the server executable
Expected result: No errors are thrown when running the project
Actual result: DllNotFoundException are thrown
Reproducible with: 2021.2.3f1, 2022.1.0a12
Could not test with:
2019.4.33f1, 2020.3.23f1 (no dedicated server build target)
2022.1.0a13, 2022.1.0a15 (dedicated server module is not installing correctly)
Exception:
DllNotFoundException: /Users/username/Downloads/1368393_Repository/mirror/Data/Managed/../lib/libmono-native.dylib assembly:<unknown assembly> type:<unknown type> member:(null)
at (wrapper managed-to-native) Interop+Sys.LChflagsCanSetHiddenFlag()
at Interop+Sys..cctor () [0x00000] in <376a33e968974713b24063a1aeb8934c>:0
Rethrow as TypeInitializationException: The type initializer for 'Sys' threw an exception.
at System.IO.FileSystem.FileExists (System.ReadOnlySpan`1[T] fullPath, System.Int32 fileType, Interop+ErrorInfo& errorInfo) [0x00007] in <376a33e968974713b24063a1aeb8934c>:0
at System.IO.FileSystem.DirectoryExists (System.ReadOnlySpan`1[T] fullPath, Interop+ErrorInfo& errorInfo) [0x00000] in <376a33e968974713b24063a1aeb8934c>:0
-
nicolas_lebedenco
Nov 24, 2021 16:42
Until this error is fixed a workaround is to move/rename libmono-native.dylib to into a fallback path such as Data/Managed/lib.dylib
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Fixing Message Loss in UMPE During Domain Reload
- The Editor freezes when ScheduleReadOnly of IJobParallelForTransform with dependency is used
- Text is truncated in the Inspector when the display scale is set to 150%
- CancellationTokenSource(<timeout>) has incorrect cancellation status when used in WebGL Player
- VFX property value names are cut off when properties with 'Arc' are viewed in the VFX Blackboard
This is a duplicate of issue #1379834