0

I'm using library with netstandard2.0 and net461 in my aspnet core application and while all works good (thanks to System.ServiceModel.* shims), on some actions I'm getting this error:

System.TypeLoadException: 'Could not load type 'System.ServiceModel.WS2007FederationHttpBinding' from assembly 'System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.'

Any way to to make it work?

Troll the Legacy
  • 675
  • 2
  • 7
  • 22
  • 1
    WsHttpBinding is not well compatible for Core, so the class library is not valid in Core as well DotNet Standard framework. Please refer to my previous reply. https://stackoverflow.com/questions/54635079/wshttpbinding-workarounds-in-net-core/54664674#54664674 – Abraham Qian Mar 21 '19 at 09:39
  • Thank you, looks like we'll switch to OpenID. – Troll the Legacy Mar 21 '19 at 11:56

0 Answers0