Azure / Azure/azure-functions-host

PlatformNotSupportedException when using any classes from System.DirectoryServices.Protocols

Open
#4,463 1 comment 1 reaction 1 assignee Claimed by @fabiocav View on GitHub
Dominant language
C#
Stars
2k
Forks
482
Avg merge
2d 12h
Merged PRs (30d)
38

Description

My issue is similiar to #3903:
I tried to use System.DirectoryServices.Protocols on a V2 Function (using Microsoft.NET.Sdk.Functions 1.0.28).

A PlatformNotSupportedException is thrown whenever I call anything from the System.Directories.Procotols namespace.

I've attached a sample project: [TestProject.zip](https://github.com/Azure/azure-functions-host/files/3190828/TestProject.zip).

Just start the function locally and open the test HTTP function.

The workaround in #3903 works but that's not a real solution (I've added the required changes in the project file and commented them out):

```xml



Always





```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.