Oh, I'm so sorry, didnt see that statement. Anyway, i have put it in the next line, but then got another error.Dim downloadFile As System.IO.FileStream = New System.IO.FileStream(filename, IO.FileMode.Open) <Access denied >error msg- To grant ASP.NET write access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.I had follow that instruction but still cant work