The call to the Web service "request aborted: The request has been canceled." ”

Source: Internet
Author: User

In the background of authoring (www.helpqy.com), when the post data is written to Httpwebrequest.getrequeststream using Streamwrite, a call to Httpwebresponse.getresponsestream appears "The request was aborted: The request has been canceled." "Error, on-line inspection found that as long as the contentlength shielding out can solve the problem. The reason behind the thought is that the previous StreamWriter did not have a very clean finish to write the data stream resulting in a subsequent operation exception. The following still retains the contentlength, but does not use the streamwrite to write, but uses the stream to write, the parameters with the length of writing, after writing, use using to close.

The call to the Web service "request aborted: The request has been canceled." ”

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.