FileUpload Error: Object reference not set to an instance of an object

I have come across an error of fileUpload where it kept on saying that the fileUpload.FileName is not set to an instance of an object.

After a lot of debugging and testing I realized that AJAX is limited to update panels. Therefore, make sure you do not place the file upload inside an update panel.

FileUpload requires a FULL POSTBACK!