file copy and rename

Discussion in 'ASP.NET WebServices' started by jimspicer, Dec 7, 2010.

  1. Hi,
    We want to able to copy an Excel file and rename it in the same folder. We tried this, System.IO.File.Copy(strSource, strDest, True), which works in the local dev environment but doesn't work on the remote server. Can anyone help us with this?

    TIA, Jim Spicer
     
  2. got it workin,g

    I moved the copy function to another aspx page but didn't use an UpdatePanel, did not use any of the asp.net specific folders but a folder used for Role and added System.IO and System.Net to the vb behind code page. works fine now.
     
  3. mjp

    mjp

    Cool, glad you worked it out.
     

Share This Page