-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System.PlatformNotSupportedException: System.DirectoryServices.AccountManagement is not supported on this platform Windows 10 #84831
Comments
Hey @dnomar , were you able to get passed this problem by any chance? I'm running into it as well. Works fine when running on Windows outside of docker. When containerized, I receive the same error as you. Thanks. |
No, i use an alternative server with iis/.net framework instead and it works. This library does no work if your docker runs over linux or mac is only for windows. |
@terrajobst is this related to #14734? |
System.DirectoryServices.AccountManagement is only supported on Windows. As you noticed, you will get this error when trying to run on Linux, which includes running Linux containers using Docker for Windows. To track S.DS.AM support for Linux, see #37100. @joeloff, this can probably be closed as a duplicate of that issue. |
I am getting same error while debugging: |
Tagging subscribers to this area: @dotnet/area-system-directoryservices, @jay98014 Issue DetailsHi All. I'm trying to connect to Active Directory within my company scope, and i setted up a simple test with dotnet CLI i run: with dotnet fsi i run:
But i receive this error:
dotnet --info
I searched over internet but all the same problem was by using Linux/MAC no information with Windows.
|
@Turhan8 I don't think your TFM targeting windows matters, the message suggests somehow your app running on non-windows. Anyway tagging @joperezr @BRDPM @grubioe @jay98014 if they have any suggestion for you.
What happens when you run: |
Does anyone know of any libraries that do support LDAP queries from mac? I had the impression s.ds.protocols did but that gives me a non supported exception also when I try to do a LdapConnection.Bind() Clarification. I can bind using a NetworkCredential and AuthType.Basic. I'm new to Mac so I don't know the limitations. I know we have some kind of corporate binding on our Mac devices and I can connet to AD SMB shares and visit IIS websites that are using Windows Auth. without being prompted for creds so I'm trying to do similiar. I don't want to have to ask my users to enter their creds unless absolutely needed. |
Hi All.
I'm trying to connect to Active Directory within my company scope, and i setted up a simple test
with dotnet CLI i run:
dotnet add package System.DirectoryServices.AccountManagement --version 4.7.0
with dotnet fsi i run:
But i receive this error:
dotnet --info
I searched over internet but all the same problem was by using Linux/MAC no information with Windows.
The text was updated successfully, but these errors were encountered: