Search code examples
wcf.net-core

How to port <system.serviceModel> configurations when converting WCF app from .Net framework to .Net Core?


I have an existing app under .Net framework 4.6.2. The app includes a WCF client and a server, both hosted in IIS. Now I am planning to port the app to .Net Core and the first challenge I am facing is to figure out how to port my WCF configurations. We have endpoints and bindings configured in the <system.serviceModel> section of the web.config files on both client and server side. For instance, here is part of our server side config: enter image description here

And here is the client side

enter image description here

Now under .Net Core, the <system.serviceModel> doesn't seem to be supported any more. If so, where does it moved to? What's the best approach of converting them?


Solution

  • You want to migrate wcf from .net framework to .net core. This is impossible because many libraries are used and they do not support .net core.But you can realize the function of wcf through other methods on .net core, you can refer to What replaces WCF in .Net Core?.