Windows.Web.HttpClient.SendRequestAsync never returns in release mode, but works in C # winrt debug mode

The next statemtent mode works in debug mode, but when I turn on the optimization code and build in release mode, it never returns. I can see the answer through the violinist, but it does not return and the application freezes. By the way, this is a request for a file.

responsemsg = await httpclient.SendRequestAsync(requestmsg)
          .AsTask(cts.Token,progressCallback).ConfigureAwait(false);

The same statement works for other methods like post, propfind, etc. But it does not work for get and put.

+4
source share

All Articles