WCF client doesn't work after upgrade web application to core 3.0

Viewed 12

Could somebody explain why WCF client doesnt work after upgrading web application project to 3.0 or 3.1. I tested on three simple projects, which created from visual studio: new project => asp.net core MVC app. There is test modifications to boiler plate code of projects:

public class HomeController : Controller
{
    private readonly WCFGetClient _getClient;

    public HomeController()
    {
        _getClient = new WCFGetClient();            
    }

    //some boiler plate code code
    
    public async Task<IActionResult> Privacy()
    {
        _ = await _getClient.GetAsync("some info", false);
        return View();
    }

In debug mode project builded for core 2.2 get response from WCF service (.net 4.7.2). But another two projects (3.0 & 3.1) get exception:

SocketException: An established connection was aborted by the software in your host machine.

IOException: Unable to read data from the transport connection: An established connection was aborted by the software in your host machine.. System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable+ConfiguredValueTaskAwaiter.GetResult()

WCF hosted on windows server 2012R2 IIS 6.2.

I tried to update libs System.ServiceModel.Duplex, System.ServiceModel.Federation, System.ServiceModel.Http, System.ServiceModel.NetTcp, System.ServiceModel.Primitives, System.ServiceModel.Security to 4.10.0 doesn't help.

0 Answers
Related