Click here to Skip to main content
16,022,362 members

Comments by snake1 (Top 51 by date)

snake1 5-Jan-13 12:57pm View    
i have checked System.Windows.Forms.WebBrowser it's the same, it connects through my default public ip address not through the vpn, the other browsers send requests through the vpn, i need to find a way to navigate my browser and send requests through vpn, if someone got any answer for this i would be appreciated.
snake1 19-Jul-12 4:02am View    
this code is for uploading file Asynchronously is it available for downloading file Asynchronously?
snake1 18-Jul-12 14:44pm View    
the exception is thrown when the file which is 12MB or more is completely downloaded
snake1 18-Jul-12 14:43pm View    
Thanks for your solution , but i'm still stucked at the same issue

i tried your code and i get the same exception , the problem is i'm able to download 1 - 5MB but when i try to download a 12MB file i get this exception when the file is downloaded and after throwing exception if i close streams or stop debugging the file is downloaded correctly

WebException : The underlying connection was closed: An unexpected error occurred on a receive.
while (intSt > 0) loop
i think the exception has been thrown at this line :
sourceStream.Read(bit, 0, bit.Length);
snake1 15-Jul-12 1:24am View    
Deleted
thanks for you response , any solutions ?