murthy

murthy

  • NA
  • 4
  • 0

Acess denied exception after copying some files

Apr 27 2009 10:18 AM
Hi All,

In my application am copying the files(*.avi)  from one folder to another folder (no need to be on same drive or machine path). After copying some files to another place on the same drive,  Am getting an error message like


Namespace.FileCopying [(null)] - Access to the path 'E:\SIG2404\cam05/Event20080312100638005.Avi' is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite)
   at Namespace.FileCopying.Copier_DoWork(Object sender, DoWorkEventArgs e)

In this Copier_DoWork is a delegate method  where File.Copy() method is calling.

I am using windows XP sp3, .Net 2.0, administrator user login, during the copying process only some of the files are copied.

Please any one help me what may be the issue, and possible ways to resolve it.

Thanks in advance, awaiting for earlier reply.