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
Comments (1)
-
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
- Shader Graph skybox material is rendered inccorrectly in builds when "Allow Material Override" or "Cast Shadows" are enabled and the "Deferred" Rendering Path is used
- Object motion is affected by incorrectly added rotation motion when importing animations
- Base class's Context Menu method is called when calling it in the Editor from the child class and the child class overrides this method
- Editor crashes with prompt "The file 'MemoryStream' is corrupted! Remove it and launch unity again! [Position out of bounds!]" when adding a serialized field to a precompiled DLL
- Android Player freezes waiting for a texture upload when AssetBundle.LoadFromFile is used
This is a duplicate of issue #1379834