Hi all
I have some something weird with the HttpWebResponse and I was hoping someone could help me understand what is going on.
This problem is already fixed but for my own curiosity I was hoping someone would be able to shed some light.
Here is a simplified version of the code:
string sHtmlFile = "http://localhost/test.html";
HttpWebRequest request = (HttpWebRequest )WebRequest.Cre ate(sHtmlFile);
HttpWebResponse response = (HttpWebRespons e)request.GetRe sponse();
The weirdness is that iis will file lock test.html if it is > 30kb but will not lock it if it is below 30kb. 30kb is a rough estimate i havent actually checked the bytes.
I know the solution is to add response.Close( ); but i was hoping someone out there could speculate on how/why this would be happening.
It seems weird to me that it would lock a 35kb html file but not a 25kb html file
Thanks
Jay
I have some something weird with the HttpWebResponse and I was hoping someone could help me understand what is going on.
This problem is already fixed but for my own curiosity I was hoping someone would be able to shed some light.
Here is a simplified version of the code:
string sHtmlFile = "http://localhost/test.html";
HttpWebRequest request = (HttpWebRequest )WebRequest.Cre ate(sHtmlFile);
HttpWebResponse response = (HttpWebRespons e)request.GetRe sponse();
The weirdness is that iis will file lock test.html if it is > 30kb but will not lock it if it is below 30kb. 30kb is a rough estimate i havent actually checked the bytes.
I know the solution is to add response.Close( ); but i was hoping someone out there could speculate on how/why this would be happening.
It seems weird to me that it would lock a 35kb html file but not a 25kb html file
Thanks
Jay