Bug 40580 - DocSync crash due to System.IO.FileNotFoundException
Summary: DocSync crash due to System.IO.FileNotFoundException
Status: VERIFIED ANSWERED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 4.1.0 (C7)
Hardware: PC Windows
: High major
Target Milestone: 4.1.0 (C7)
Assignee: Parmendra Kumar
URL:
Depends on:
Blocks:
 
Reported: 2016-04-20 22:29 UTC by Ben Beckley
Modified: 2016-05-17 16:49 UTC (History)
5 users (show)

Tags:
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 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 ANSWERED

Description Ben Beckley 2016-04-20 22:29:45 UTC
Created attachment 15796 [details]
Event logs

Not much to say apart from the summary. DocSync is getting to the third step of merging the docs and then crashes. Attached are logs from Windows Event Viewer.

This occurred with XVS 4.1.0.441 (cycle7/cf6aa4d).

Environment information: https://gist.github.com/BenBeckley/d0ea67c9e0b09f28e54e7d4605a26873
Comment 2 mag@xamarin.com 2016-04-29 17:31:40 UTC
This is fixed in both master and cycle 7. Find below the commit hashes:

* master:
   - Fix commit: 12ce9566f49d03cc07af8d8b8d53c59d69d26203
   - Merge commit: a6c9edd00acee8c01920b4976f62fc1a478cb11a

* cycle7:
   - Fix commit: 3ca80f816f45ab53b58735d7486fc0fde2004cff
   - Merge commit: 842f24138953e688bb45554186fbda7ce9e8ce2f
Comment 3 Parmendra Kumar 2016-05-17 13:05:28 UTC
I have checked this issue with C7 latest build: Xamarin.VisualStudio_4.1.0.496_0026d9aaa4328a536c3b00b67972525c8f1982dc and observed that the DocSync is getting to the third step of 'merging the docs' then docsync window crash. Third step doesn't show green.

Screencast: http://www.screencast.com/t/DXd0N2fROzh

EnvironmentInfo: 

Microsoft Visual Studio Enterprise 2015
Version 14.0.24720.00 Update 1
Microsoft .NET Framework
Version 4.6.01055
Installed Version: Enterprise
Xamarin   4.1.0.496 (0026d9a)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
Xamarin.Android   6.1.0.56 (eabab32)
Visual Studio extension to enable development for Xamarin.Android.
Xamarin.iOS   9.8.0.317 (0611769)
Visual Studio extension to enable development for Xamarin.iOS.
Comment 4 Parmendra Kumar 2016-05-17 13:10:04 UTC
An update for comment #3

IDELog: https://gist.github.com/Nischalk/c72449342c846cab01c7b4308ec12c50
Comment 5 mag@xamarin.com 2016-05-17 14:58:28 UTC
According to the screencast of Comment #3, DocSync is working as expected. No crash is present, DocSync just finishes Step 3 and the process ends, making the system tray icon to disappear.

To verify that DocSync worked as expected, you could go to the Reference Assemblies folders (Program Files (x86)\Reference Assemblies\Microsoft\Framework\...) and check the Xamarin.iOS.xml or MonoTouch.xml files inside the corresponding v1.0 folder. If you see a version attribute in the root xml node (e.g: <doc version="8.1.53.13">), then it means that DocSync has merged and copied the new documentation successfully. That tag version is added by DocSync as a mark for future update checks.

Also, the log that is useful with DocSync is the DocSync log. You can find it in %LOCALAPPDATA%\Xamarin\Logs\DocSync. There you can also check for errors and useful messages.

Re assigning and changing the state to NEEDINFO to let you verify and close properly.
Comment 6 Jose Gallardo 2016-05-17 15:09:28 UTC
Changing the state to RESOLVED / ANSWERED.

@Parmendra, please verify and reopen if needed.

Thanks!
Comment 7 Parmendra Kumar 2016-05-17 16:49:29 UTC
Thanks @Jose

I have seen that the DocSync successfully sync in (Program Files (x86)\Reference Assemblies\Microsoft\Framework\...).

Hence closing this issue.