FileUpload1.SaveAs(filePath);
I'd expect this to have saved your file, without all the other stuff you're doing. I see no DB code here at all, just two attempts to save the file. Where does this save to the DB ? What do you end up with on your file system ? I wonder if your second block is breaking the fact that the first line had saved the file for you ? Have you debugged this at all ?