Menu

#1 Failing at parsing FTP date-time

open
nobody
None
5
2007-09-17
2007-09-17
No

I am trying to perform a FtpTask with a delete action against a US-based Windows_NT version 5.0 FTP server; and I get the following error

WebApp.Publish.proj(37,3): error MSB4018: The "FtpTask" task failed unexpectedly.
WebApp.Publish.proj(37,3): error MSB4018: System.ArgumentOutOfRangeException: Year, Month, and Day parameters describe an un-representable DateTime.
WebApp.Publish.proj(37,3): error MSB4018: at System.DateTime.DateToTicks(Int32 year, Int32 month, Int32 day)
WebApp.Publish.proj(37,3): error MSB4018: at Digizzle.FtpParse.guesstai(Int64 month, Int64 mday)
WebApp.Publish.proj(37,3): error MSB4018: at Digizzle.FtpParse.ftpparse(Char[] buf, Int32 len)
WebApp.Publish.proj(37,3): error MSB4018: at Digizzle.FtpDirectory.ProcessLIST(String responseLIST)
WebApp.Publish.proj(37,3): error MSB4018: at Digizzle.FtpClient.EnumerateFtpDir(String remoteDir)
WebApp.Publish.proj(37,3): error MSB4018: at Digizzle.FtpClient.DeleteRemoteDir(String dir)
WebApp.Publish.proj(37,3): error MSB4018: at Digizzle.FtpTask.Execute()
WebApp.Publish.proj(37,3): error MSB4018: at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask(ExecutionMode howToExecuteTask, Hashta
ble projectItemsAvailableToTask, BuildPropertyGroup projectPropertiesAvailableToTask, Boolean& taskClassWasFound)
Done building target "Publish" in project "WebApp.Publish.proj" -- FAILED.

Discussion

  • Joannes Vermorel

    PATCH for fixing the datetime parsing bug

     
  • Joannes Vermorel

    Logged In: YES
    user_id=572007
    Originator: YES

    I have managed to solve the bug. I am attaching the patch file to correct the issue.

    Best regards,
    Joannès
    File Added: FtpTask-parse-error.patch

     

Log in to post a comment.