Looked into this a bit more... seems like IO.File.SetAttributes
translates both ERROR_INVALID_PARAMETER and ERROR_ACCESS_DENIED into the
ArgumentException we're seeing. There must be some reason for doing
this, since they have those two values explicitly coded in there, but
I'm guessing it's failing from an ERROR_ACCESS_DENIED. If that's the
case, not sure what do to... I've seen this kind of thing happen before
for no apparent reason, and the only thing I can think of is to wrap the
SetAttributes call in something that will catch the error and retry,
maybe after a short delay.
Dave
Dave Paul wrote:
I've run into this myself occasionally. It seems to only happen when
copying to a "mapped" network drive. The drive being mapped is actually
a samba share from a FreeBSD machine. Hope that helps,
Dave
Gert Driesen wrote:
Mohammed,
I ran into this issue myself once, but I could not reproduce it later on.
Can you consistently reproduce this issue ?
Gert
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Farooq Mohammed
Sent: donderdag 5 januari 2006 18:39
To: nant-developers@lists.sourceforge.net
Subject: [nant-dev] Nant Internal Error
INTERNAL 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.TaskContainer.ExecuteChildTasks()
at NAnt.Core.Tasks.LoopTask.ExecuteChildTasks()
at NAnt.Core.Tasks.LoopTask.DoWork(String[] propVals)
at NAnt.Core.Tasks.LoopTask.ExecuteTask()
at NAnt.Core.Task.Execute()
at NAnt.Core.TaskContainer.ExecuteChildTasks()
at NAnt.Core.Tasks.IfTask.ExecuteTask()
at NAnt.Core.Task.Execute()
at NAnt.Core.TaskContainer.ExecuteChildTasks()
at NAnt.Core.Tasks.IfTask.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.TaskContainer.ExecuteChildTasks()
at NAnt.Core.Tasks.IfTask.ExecuteTask()
at NAnt.Core.Task.Execute()
at NAnt.Core.TaskContainer.ExecuteChildTasks()
at NAnt.Core.Tasks.IfTask.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]
Total time: 1.5 seconds.
CONFIDENTIAL NOTICE: This message is intended only for the use of the
individual or entity to which it is addressed and may contain
information
that is privileged, confidential and exempt from disclosure under
applicable
law. If the reader of this message is not the intended recipient, or the
employee or agent responsible for delivering the message to the intended
recipient, you are hereby notified that any dissemination,
distribution or
copying of this communication is prohibited. Please notify us
immediately
by telephone if this message was transmitted in error. Thank you.
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers