question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"System.ServiceModel.EndpointIdentity.CreateUpnIdentity" method for .net standard?

See original GitHub issue

Hello, unfortunately the method “System.ServiceModel.EndpointIdentity.CreateUpnIdentity” does not exist for .net standard 2.0. I need this method for creating a EndpointAddress:

EndpointAddress myEndpoint = new EndpointAddress(new Uri(wcfEndpoint.Endpoint), EndpointIdentity.CreateUpnIdentity(wcfEndpoint.Identity));

What can I do to make this also work on .net standard?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
mconnewcommented, Dec 18, 2019

Try this:

EndpointAddress myEndpoint = new EndpointAddress(new Uri(wcfEndpoint.Endpoint), new UpnEndpointIdentity(wcfEndpoint.Identity));
2reactions
mconnewcommented, Dec 19, 2019

As an aside, part of some of the pain and difficulty people have with using WCF is there’s about 20 ways to do the exact same thing. I’m trying to minimize that with the .NET Core implementation as much as is reasonable which sometimes means small but compatible code changes need to be done.

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - EndpointIdentity does not contain a definition for ...
When converting a class library from .NET Framework 4.6.2 to .NET Standard 2.0 i get this error: "EndpointIdentity does not contain a definition...
Read more >
EndpointIdentity.CreateUpnIdentity(String) Method
A secure WCF client that connects to an endpoint with this identity uses the UPN when performing SSPI authentication with the endpoint. This...
Read more >
EndpointIdentity.cs source code in C# .NET
ServiceModel { using System; using System.Net; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.
Read more >
Invoking the PDF Converter Web Service from Visual ...
Once the service reference has been added you can either use the sample VB.NET code listed at the end of this post or...
Read more >
Converting Office files to PDF Format using a Web Services ...
This makes it very simple to convert typical Office files to PDF format from your own .NET, Java or any other web services...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found