I'm referencing these libraries in a .NETCORE2.0 project built to run on AWS Lambda. I need to get this working and wondering if you have any suggestions.
I'm getting an error that Operation is not supported on this platform.: PlatformNotSupportedException
at System.ServiceModel.Description.TypeLoader.AddBehaviorsAtOneScopeIBehavior,TBehaviorCollection
@antsaia Can you provide the repro program which ran into the issue?
I had similiar problem, when I had contract with contract behavior as attribute. When I configured behavior in code (on channel factory), the problem was gone.
@rstraszewski Can you share a simple repro?
@Lxiamail
https://github.com/rstraszewski/WcfCoreTestClient/blob/master/WcfCoreTestClient/Program.cs
It would be great, if it also worked for attributes - in our company, most of behaviors is set this way. It would make migration to .net core much easier.
It would also be fine if we could disable the error message, and add the behavior manually, so that we could still use existing service definitions without having to make changes to the services.
Yep, ignoring attributes, instead throwing exceptions also would be ok - it would make migration simpler.
@Lxiamail
Any plans regarding support of attribute based behaviors?
@rstraszewski Hope we can support it in the next release.
The fix has been checked in by https://github.com/dotnet/wcf/pull/3529