This project is read-only.

Unhandled exception


In FileUpload.cs there is an unhandled exception that I am now seeing. BTW, I did not see this until I upgraded from IE7 to IE8.
In IE7 the problem would manifest by occasionally a file not being uploaded and the progress bar would not move.
I would just stop the upload and try again, but now it gives an exception when the server eventually responds with a "Not found" message code 4004
I tried catching it using this in the method; private void ReadCallback(IAsyncResult asynchronousResult):
            response = (HttpWebResponse)webrequest.EndGetResponse(asynchronousResult);
        catch (Exception ex) //also tried catch (WebException)
            if (resizeStream != null)
            Helper.dispMessage("Network error: " + ex.ToString());
but it doesn't catch it, and the debugger display the offending line.
BTW, I am using the PHP server side code.


dhile wrote Apr 24, 2012 at 6:43 AM

Hi Tom, I'm having the same problem. Did you managed to find any resolution to your issue?

TomGiam wrote Apr 25, 2012 at 3:30 AM

I commented out the code from "try" until reader.close and it didn't affect the main functionality much.

wrote Feb 14, 2013 at 9:10 PM