dotnet / dotnet/wcf

Unable to use CreateMutualCertificateBindingElement

Open
#5,615 3 comments 0 reactions 0 assignees View on GitHub
triaged
Dominant language
C#
Stars
1.8k
Forks
576
Avg merge
6d 9h
Merged PRs (30d)
2

Description

**Describe the bug**
I'm trying to migrate a project using WCF from .net 4.5 to .net 8
Must of it is already migrated but I am facing a problem in implementing the CreateMutualCertificateBindingElement functionality.
From the docs it looks like it should be supported in the latest .net 8 version with the latest 8.0 package
![image](https://github.com/user-attachments/assets/7a4f3c2e-e806-4d49-945a-429b8015874b)

but when I try to implement it in the code it does not find the CreateMutualCertificateBindingElement implementation.
![image](https://github.com/user-attachments/assets/a1bd8499-d75c-4abc-9791-a6c08bb0bb78)

What am I missing here?
Any help will be greatly appreciated.

**To Reproduce**
Steps to reproduce the behavior:
1. Create a .net 8 console app
2. dotnet add package System.ServiceModel.Primitives --version 8.0.0
3. try to create the security binging element -
SecurityBindingElement security = SecurityBindingElement.CreateMutualCertificateBindingElement();

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.