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
- Pressing “Open” button in Inspector > “High Quality Lines” Override throws “Item m_RenderPipelineSettings.supportHighQualityLineRendering not found” warning
- Overlays are immediately undocked when the Overlay is docked to the right side of Scene View and the Overlay's Handle is clicked
- Crash in PhysicsManager::IgnoreCollision when a GameObject with “Is Trigger” enabled enters a collision in a specific project
- Selecting unsupported Material in Physically Based Sky throws “RenderingCommandBuffer” errors instead of error help box in Inspector window
- Undo and redo does not update color field pop-up window after undoing other events outside the pop-up window
This is a duplicate of issue #1379834