HttpWebRequests Failing on Subsequent Calls

前端 未结 2 1754
一个人的身影
一个人的身影 2021-01-03 03:25

I know this is a vague question, especially since I am not providing any code, but I am developing a .Net 2.0 application, and we have a WebRequest which posts data to an in

2条回答
  •  日久生厌
    2021-01-03 03:55

    Yep, your exactly right. The response wasn't being disposed properly. We'd been leaving this upto the garbage collector, which, you guessed it, wasnt being collected in time. Unfortunately, I closed my browser and forgot to read any answers (lol how stupid do you think I feel) and the problem is solved.

    I've learned 2 things tonight. 1, dispose of your WebRequests properly; and 2, PAY MORE ATTENTION TO STACK-OVERFLOW ANSWERS!

提交回复
热议问题