Bug 12196 - File.SetLastWriteTimeUtc(file, DateTime.UtcNow) throws exception on Nexus 7
Summary: File.SetLastWriteTimeUtc(file, DateTime.UtcNow) throws exception on Nexus 7
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: 4.6.x
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Jonathan Pryor
Depends on:
Reported: 2013-05-10 13:04 UTC by Prashant Cholachagudda
Modified: 2017-06-29 02:41 UTC (History)
5 users (show)

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

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 or GitHub 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:

Description Prashant Cholachagudda 2013-05-10 13:04:30 UTC
File.SetLastWriteTimeUtc(file, DateTime.UtcNow) throws 
System.IO.IOException on Nexus 7 device.


System.IO.IOException: Invalid parameter
at at System.IO.File.SetLastWriteTime (string,System.DateTime) <IL 0x00030, 0x00178>
at at System.IO.File.SetLastWriteTimeUtc (string,System.DateTime) <IL 0x00008, 0x00083>
at FileTestAndroid.Activity1/<OnCreate>c__AnonStorey0.<>m__0 (object,System.EventArgs) [0x00068] in /Users/chrisntr/Projects/FileTestAndroid/FileTestAndroid/MainActivity.cs:35
at Android.Views.View/IOnClickListenerImplementor.OnClick (Android.Views.View) [0x0000b] in /Users/builder/data/lanes/monodroid-mlion-master/f6831347/source/monodroid/src/Mono.Android/platforms/android-8/src/generated/Android.Views.View.cs:631
at Android.Views.View/IOnClickListenerInvoker.n_OnClick_Landroid_view_View_ (intptr,intptr,intptr) [0x00010] in /Users/builder/data/lanes/monodroid-mlion-master/f6831347/source/monodroid/src/Mono.Android/platforms/android-8/src/generated/Android.Views.View.cs:602
at at (wrapper dynamic-method) object.9cd2dfa5-95c9-4a59-b3d3-2654b134ce87 (intptr,intptr,intptr) <IL 0x00017, 0x00043>
Comment 2 Cody Beyer (MSFT) 2017-06-29 02:41:41 UTC
Thank you for taking the time to submit this report. After reviewing the description of this bug, we believe it no longer affects the current version of Xamarin.Android. If you are still experiencing the issue after updating your packages, please reopen this report with an attached reproduction.