Is there any error handling associated with this code (I don't wanna use MsgBox here). DownloadFile is a BackgroundWorker Control ... Label1 is a label control to show error.

THIS CODE ISN"T WORKING AT ALL ... (InvalidOperationException error is displayed)

vb Code:
  1. Private Sub DownloadFile_DoWork(ByVal sender As System.Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles DownloadFile.DoWork
  2.  
  3. On Error GoTo ErrorOccExcep
  4. My.Computer.Network.DownloadFile("http://www.example.com/file.txt", "C:\file_temp.txt")
  5. ErrorOccExcep:
  6. Label1.Text = "Error occurred!"
  7.  
  8. End Sub

Help please ...