I have a problem about using HttpClient PostAsync. Below sample code, I try to call restful service from another one restful service. Both create in same asp.net site, the result is no responding but i can call target service manually(use browser) and i
can use same code call target service from window console application. Any help?
i tried to debug program until i found the line of problem, it is "PostAsync". This line will not responding,life time not responding, no error occurs.
None
0 Points
3 Posts
HttpClient PostAsync not responding when use in GenericHandler
Jul 03, 2018 01:43 PM|patirop|LINK
Hi,
I have a problem about using HttpClient PostAsync. Below sample code, I try to call restful service from another one restful service. Both create in same asp.net site, the result is no responding but i can call target service manually(use browser) and i can use same code call target service from window console application. Any help?
All-Star
52961 Points
23565 Posts
Re: HttpClient PostAsync not responding when use in GenericHandler
Jul 03, 2018 02:04 PM|mgebhard|LINK
Have you tried setting a breakpoint and simply debugging the code?
The parm value is always empty. Is that expected?
None
0 Points
3 Posts
Re: HttpClient PostAsync not responding when use in GenericHandler
Jul 04, 2018 01:43 AM|patirop|LINK
i just try to show sample code. The parameter is not meaning, Test.ashx will return static ApiReponse data.
None
0 Points
3 Posts
Re: HttpClient PostAsync not responding when use in GenericHandler
Jul 04, 2018 01:45 AM|patirop|LINK
i tried to debug program until i found the line of problem, it is "PostAsync". This line will not responding,life time not responding, no error occurs.