I have placed a try-catch around the function call to initiate the file upload. When I try to upload any file greater than 4 megabytes, the application crashes and does not propagate the exception to my application.
How can I trap this exception?
Code:
protected void UploadFile_Click(object sender, EventArgs e)
{