Hi,
 
I am using the copy task to copy files on a network share. Sometimes I get the following error:
 
 
System.ArgumentException: Invalid File or Directory attributes value.
               at System.IO.File.SetAttributes(String path, FileAttributes fileAttributes)
               at NAnt.Core.Tasks.CopyTask.ExecuteTask()
               at NAnt.Core.Task.Execute()
               at NAnt.Core.Target.Execute()
               at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies)
               at NAnt.Core.Tasks.CallTask.ExecuteTask()
               at NAnt.Core.Task.Execute()
               at NAnt.Core.Target.Execute()
               at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies)
               at NAnt.Core.Project.Execute()
               at NAnt.Core.Project.Run()
            
            Please send bug report to [EMAIL PROTECTED]

 

This comes in a situation when the account running NAnt script does not have access to shared folder or when the folder has not been shared (not sure about the exact case). Few times it gives the following error:

 

System.IO.DirectoryNotFoundException: Could not find a part of the path "\\ServerName\FolderName

 

I believe this (second) error message is correct as the account did not have access to the share.

 

I am submitting the first error.

                    

Regards,

Sandeep

 

Reply via email to