core icon indicating copy to clipboard operation
core copied to clipboard

"System.DirectoryServices is not supported on this platform" on Win10

Open DerKiLLa opened this issue 7 years ago • 4 comments

Hi! I tried to use the package today with UWP and C# on Windows 10.

I used the NuGet-Package 2.1.1 and also tried the newest beta and only get the following error: System.PlatformNotSupportedException: "System.DirectoryServices is not supported on this platform."

Any help?

Edit: Found it ... UWP is not supported and DirectoryService is also still in progress ... its just dissapointing, that u can not manage an Directory (LDAP) with UWP ... wow. On one side, u want users to use UWP (Microsoft Graph) and then u can not use Active-Directory ... Is there any option, to use Graph AND DirectoryService?!

DerKiLLa avatar Jun 18 '19 09:06 DerKiLLa

Thank you for reporting, @DerKiLLa. @tquerec, @josephisenhour, @bongiovimatthew-microsoft as the owners of System.DirectoryServices, do you have an answer for the question posted above?

carlossanlop avatar Jun 26 '19 16:06 carlossanlop

I can answer for the DirectoryServices portion. It's true that the Directory Services APIs in core are not supported on UWP. This is because the underlying APIs the framework uses ( ADSI for example ) are not supported on UWP.

tquerec avatar Jun 27 '19 21:06 tquerec

Answered. Closing.

carlossanlop avatar Sep 27 '19 18:09 carlossanlop

I can answer for the DirectoryServices portion. It's true that the Directory Services APIs in core are not supported on UWP. This is because the underlying APIs the framework uses ( ADSI for example ) are not supported on UWP.

Would be awesome to get this back, we was building a uwp app for this but stopped now because its not possible to use things like System.DirectoryServices

ghost avatar Feb 03 '20 16:02 ghost