Bug 45589 - Limited Connection and getting System.ArgumentOutOfRangeException: Not a valid Win32 FileTime
Summary: Limited Connection and getting System.ArgumentOutOfRangeException: Not a vali...
Status: VERIFIED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: XMA ()
Version: 4.2.0 (C8)
Hardware: PC Windows
: --- normal
Target Milestone: 4.3.0 (C9)
Assignee: Ben Beckley
URL:
Depends on:
Blocks:
 
Reported: 2016-10-17 16:50 UTC by Ben Beckley
Modified: 2016-12-23 11:39 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
logs (5.82 KB, application/x-zip-compressed)
2016-10-17 16:50 UTC, Ben Beckley
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FIXED

Description Ben Beckley 2016-10-17 16:50:25 UTC
Created attachment 18084 [details]
logs

Tried to connect to a build agent and received the following exception. I was able to disconnect from the agent and reconnect with full support.

>Xamarin.Messaging.Client.Ssh.XmaCommands Error: 0 : [2016-10-17 11:35:46.5521] An error occurred while verifying installed C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Xamarin\Xamarin\4.2.1.12\Designer.zip
>System.ArgumentOutOfRangeException: Not a valid Win32 FileTime.
>   at System.DateTime.ToFileTimeUtc()
>   at System.IO.Directory.SetLastWriteTimeUtc(String path, DateTime lastWriteTimeUtc)
>   at Xamarin.Messaging.Client.Ssh.UnzipFile.UnzipEntry(String baseDirectory, ZipEntry entry)
>   at Xamarin.Messaging.Client.Ssh.UnzipFile.Unzip(String directory)
>   at Xamarin.Messaging.Client.Ssh.XmaCommands.GetUnzippedDirectory(String file, String version, String rootDirectory, Boolean useCache)
>   at Xamarin.Messaging.Client.Ssh.XmaCommands.GetLocalChecksum(String zipFile, String version, Boolean useCache)
>   at Xamarin.Messaging.Client.Ssh.XmaCommands.<VerifyInstallationAsync>d__6.MoveNext()


Windows env: https://gist.github.com/BenBeckley/bfd3af81065292e119941926e7f3a118
Mac env: https://gist.github.com/BenBeckley/d36d95d5edf69d4e1efc55a8d3bc7790
Comment 1 mag@xamarin.com 2016-10-19 03:00:50 UTC
Fixed in master branch, from commit: bf50c6b173e23ecebac76611ef1bdb046284088d
Comment 2 Jatin 2016-11-17 16:39:12 UTC
========================
Verification Status:
========================

I have checked this issue with latest Master Build of 
Xamarin.VisualStudio_99.1.0.86_ed5f1958e4e0754ef2ea630bb0e008cb5d34473b
and observed that this issue is fixed. No exception is observed while connecting with the MAC build agent and successfully able to deploy iOS Application.

Supplement Info:
Screencast: http://www.screencast.com/t/XDZt0BBM
VS IDE Log: 
https://gist.github.com/anonymous/f683aa50754d177f0ec6b76eb2c86c00
Window Envt Info:
https://gist.github.com/anonymous/03830006408a52eb3e380a22015f2d0b
MAC Envt Info: 
https://gist.github.com/anonymous/974a5f3730b93da0dca6d93840235870

I will verify and close this issue once the fix get merged in Cycle 9.

Thanks!
Comment 3 Danish Akhtar 2016-12-23 11:39:02 UTC
I have checked this issue with latest C9 builds XVS 4.3.0.498 + X.IOS 10.4.0.60 and observed that now this issue is not exists.

We are successfully able to connect VS with Mac build host without any Exception.

Hence closing this issue.