[CSHARP-1875] System.DllNotFoundException: ntdll.dll Created: 27/Dec/16 Updated: 22/May/17 Resolved: 30/Mar/17 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | Connectivity |
| Affects Version/s: | 2.4 |
| Fix Version/s: | 2.4.4 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Andreas Vilinski | Assignee: | Robert Stam |
| Resolution: | Done | Votes: | 6 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
System.DllNotFoundException: ntdll.dll |
||
| Description |
|
Whats going on here? Can't connect. Is mono supported Mono under MacOS
|
| Comments |
| Comment by Robert Stam [ 30/Mar/17 ] | ||||||||||||||||||
|
We've merged in the pull request (with slight refactoring). Note that while this removes one obstacle to using the driver on Mono it does not imply official support for running on Mono. That's a separate question. | ||||||||||||||||||
| Comment by Githook User [ 29/Mar/17 ] | ||||||||||||||||||
|
Author: {u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}Message: | ||||||||||||||||||
| Comment by Githook User [ 29/Mar/17 ] | ||||||||||||||||||
|
Author: {u'username': u'MarLoe', u'name': u'Martin Lobger', u'email': u'martin@lobger.com'}Message: Removing left behind obsolete line. | ||||||||||||||||||
| Comment by Githook User [ 29/Mar/17 ] | ||||||||||||||||||
|
Author: {u'username': u'MarLoe', u'name': u'Martin Lobger', u'email': u'martin@lobger.com'}Message: And making sure it compile/works on .NET Standard / Core as well | ||||||||||||||||||
| Comment by Githook User [ 29/Mar/17 ] | ||||||||||||||||||
|
Author: {u'username': u'MarLoe', u'name': u'Martin Lobger', u'email': u'martin@lobger.com'}Message: | ||||||||||||||||||
| Comment by Martin Lobger [ 11/Jan/17 ] | ||||||||||||||||||
|
@rstam I have created a pull request that solves this issue: | ||||||||||||||||||
| Comment by Andreas Vilinski [ 10/Jan/17 ] | ||||||||||||||||||
|
@RobertStam
regardless of that, very sorry to hear you have stopped the mono support, because .NET Core is still very unstable and not yet adopted by other libs. | ||||||||||||||||||
| Comment by Martin Lobger [ 10/Jan/17 ] | ||||||||||||||||||
|
I experience this issue as well using Visual Studio for macOS. It used to work with 2.3.0. The new version 2.4.1 does not fix the problem either.
| ||||||||||||||||||
| Comment by Ron Elliott [X] [ 07/Jan/17 ] | ||||||||||||||||||
|
Looks like it was installed with the mono package I downloaded from http://www.mono-project.com/download/, specifically https://download.mono-project.com/archive/4.6.2/macos-10-universal/MonoFramework-MDK-4.6.2.16.macos10.xamarin.universal.pkg I just tried a fresh install with the same issue. However since you no longer support mono I guess the issue is resolved. | ||||||||||||||||||
| Comment by Robert Stam [ 03/Jan/17 ] | ||||||||||||||||||
|
We used to officially support Mono for the 1.x versions of the driver, but as of the 2.x versions of the driver we no longer officially support Mono. We also no longer test against Mono. We actually don't reference ntdll.dll at all. We do however reference System.Runtime.InteropServices.RuntimeInformation.dll, which according to the stack trace you provided seems to be calling into ntdll.dll. Where did you get your copy of System.Runtime.InteropServices.RuntimeInformation.dll? It looks like you might be trying to use the Windows version of that DLL on a non-Windows machine. | ||||||||||||||||||
| Comment by Ron Elliott [X] [ 01/Jan/17 ] | ||||||||||||||||||
|
Same issue here, I tried various DLL mappings for Mongo.Engine.Core.dll and Mongo.Engine.dll and none seemed to work. |