Hi,
I am getting Directory not found exception in one of my clients machines in the file.copy() method.
The windows application I have buit copies a set of files and folders into the users drive and opens the files. The same application works fine in my system but when I deploy it in the clients machine the above error is thrown. The exact trace is this.
Upon googling I found at some sites that this error actually gets thrown sometimes when there is a rights or permission issue. The folders and files are created but still I get directory not found exception. Could anybody shed some light on this as to why this occurs or am doing something wrong. Has anyone else faced this issue?
Thanks,
Kamal Kannan
I am getting Directory not found exception in one of my clients machines in the file.copy() method.
The windows application I have buit copies a set of files and folders into the users drive and opens the files. The same application works fine in my system but when I deploy it in the clients machine the above error is thrown. The exact trace is this.
HTML:
Error Occurred because System.IO.DirectoryNotFoundException: Could not find a part of the path C:\Documents and Settings\kamal\Local Settings\Temp\Projects\Script.mts'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.Directory.InternalCopy(String sourceFileName,String destFileName,Boolean overwrite)
at System.IO.File.Copy(String sourceFileName,String destFileName,Boolean overwrite)
at CRAFTgen.Settings.DeployFramework() in C:\Development\Sourcecode\craftgen\settings.cs: line 558 Please provide the correct QC settings
Upon googling I found at some sites that this error actually gets thrown sometimes when there is a rights or permission issue. The folders and files are created but still I get directory not found exception. Could anybody shed some light on this as to why this occurs or am doing something wrong. Has anyone else faced this issue?
Thanks,
Kamal Kannan