The webclient Uploadfile method randomly Hangs. Can someone give me some assistance on the why the webclient UploadFile() function hangs.
- WebClient client = new WebClient();
- client.Credentials = CredentialCache.DefaultCredentials;
- client.UploadFile(ipaddr, "POST", @"C:\Temp\ImageShow\White--Dot.png" ); //It hangs on this line randomly
- client.Dispose();

Amit GuptaRank #190 · 12.8K reputationPosted Feb 1, 2018, 10:10 PM EST