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
- Search field in UI Builder's Library has no character limit
- Changing the value in UI Builder by dragging increases it by a few thousand points when reaching the borders of the screen
- ARM64 architecture DLL incorrectly copied instead of x64 when building for Windows x64
- Crash on TypeTreeIterator::GetNode when opening a specific folder
- Crash on WriteSerializedAssetsV2 when (re)entering the Play Mode in a specific project when IEnumerator Start() is used
This is a duplicate of issue #1379834