Bug 51599 - Archive Manager Android "Could not distribute project X" - "The xmlreader state should be endoffile after this operation"
Summary: Archive Manager Android "Could not distribute project X" - "The xmlreader sta...
Status: RESOLVED NORESPONSE
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android ()
Version: 4.2.0 (C8)
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-01-18 12:36 UTC by Zahi Kramer
Modified: 2017-08-17 07:03 UTC (History)
8 users (show)

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


Attachments
Xamarin Logs (1.64 KB, application/x-zip-compressed)
2017-01-18 14:45 UTC, Zahi Kramer
Details
Xamarin Logs (1.64 KB, application/x-zip-compressed)
2017-01-18 14:53 UTC, Zahi Kramer
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:
RESOLVED NORESPONSE

Description Zahi Kramer 2017-01-18 12:36:07 UTC
Hello.
When trying to publish to google play i get:
"Could not distribute project X -(my project)"
"The xmlreader state should be endoffile after this operation"

here is my Xamarin output:

Begining distribution, 18/01/2017 14:14:32
Channel: Google Play
App Bundle Id: com.atriza.XXXXX, Version: 4.7.1.4
Publishing to GooglePlay...
Signing packages...
Detecting signing algorithm...
Detected signing algorithm as : RSA
Signing additional ABI packages...
Saving state back to archive
Preparing to upload apk(s)
Authorising...
Uploading 57679679 ...
Uploading C:\Users\zahik\AppData\Local\Xamarin\Mono for Android\Archives\2017-01-18\xxxxx.Android.EXE 1-18-17 2.13 PM.apkarchive\signed-apks\com.atriza.xxxxx.Android2.apk ...
Inspecting manifest for version information...
Publishing project 'XXXXX.Android.EXE' completed with errors.
Could not distribute project 'XXXXX.Android.EXE'.

Xamrin VS version 4.2.2.11
VS 2015 Ent.
I can send you my archive packages (is it relate to archive.xml file?)
Comment 1 Juan Marcelo Tondato 2017-01-18 13:49:46 UTC
Hi Zahi,

Can you please add the following information?

1. Xamarin Logs
Go to the menu "Help - Xamarin - Zip Logs". Please attach that zip file to the bug report.

2. Environment information
Go to the menu "Help - About Microsoft Visual Studio" and press "Copy Info". Please paste that info into a Bugzilla comment.

3. Archive packages.

Thanks!
Comment 2 Zahi Kramer 2017-01-18 14:36:17 UTC
Sure Juan Marcelo.
But the Archive packages i would like to transfer to you personally (not here attached)
Is it ok?
Comment 3 Zahi Kramer 2017-01-18 14:45:50 UTC
Created attachment 19377 [details]
Xamarin Logs
Comment 4 Zahi Kramer 2017-01-18 14:53:29 UTC
Created attachment 19381 [details]
Xamarin Logs
Comment 5 Zahi Kramer 2017-01-18 14:55:03 UTC
Visual Studio Info:
-----------------------------------------------------------------------
Microsoft Visual Studio Enterprise 2015
Version 14.0.25431.01 Update 3
Microsoft .NET Framework
Version 4.6.01586

Installed Version: Enterprise

Architecture and Modeling Tools   00322-80000-00000-AA484
Microsoft Architecture and Modeling Tools
    
UML® and Unified Modeling Language™ are trademarks or registered trademarks of the Object Management Group, Inc. in the United States and other countries.

Visual Basic 2015   00322-80000-00000-AA484
Microsoft Visual Basic 2015

Visual C# 2015   00322-80000-00000-AA484
Microsoft Visual C# 2015

Visual C++ 2015   00322-80000-00000-AA484
Microsoft Visual C++ 2015

Windows Phone SDK 8.0 - ENU   00322-80000-00000-AA484
Windows Phone SDK 8.0 - ENU

Add New File   3.5
The fastest and easiest way to add new files to any project - including files that start with a dot

ASP.NET and Web Tools 2015.1   14.1.21111.0
ASP.NET and Web Tools 2015.1

ASP.NET Core Template Pack   ASP.NET Core Template Pack
A collection of project templates that makes it easy to learn how to use ASP.NET Core

ASP.NET Web Frameworks and Tools 2012.2   4.1.41102.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013   5.2.40314.0
For additional information, visit http://www.asp.net/

Azure App Service Tools v2.9.6   14.0.21111.0
Azure App Service Tools v2.9.6

Azure Data Lake Node   1.0
This package contains the Data Lake integration nodes for Server Explorer.

Azure Data Lake Tools for Visual Studio   2.2.2100.0
Microsoft Azure Data Lake Tools for Visual Studio

CodeMaid   10.2.7
CodeMaid is an open source Visual Studio extension to cleanup and simplify our C#, C++, F#, VB, PHP, PowerShell, R, JSON, XAML, XML, ASP, HTML, CSS, LESS, SCSS, JavaScript and TypeScript coding.

Command Bus, Event Stream and Async Manager   Merq
Provides ICommandBus, IEventStream and IAsyncManager MEF services for loosely coupled Visual Studio extension components communication and integration.

Common Azure Tools   1.8
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

Devart Code Compare   4.1.78
Devart Code Compare
Copyright (c) 2012-2015 Devart. All rights reserved.
http://www.devart.com/codecompare/

EZ-GIT   1.6.6


GitPlugin Extension   1.0
GitPlugin Visual Studio Extension Detailed Info

JavaScript Language Service   2.0
JavaScript Language Service

JavaScript Project System   2.0
JavaScript Project System

JetBrains ReSharper Ultimate 2016.3.1    Build 107.0.20161222.212756
JetBrains ReSharper Ultimate package for Microsoft Visual Studio. For more information about ReSharper Ultimate, visit http://www.jetbrains.com/resharper. Copyright © 2017 JetBrains, Inc.

Microsoft .NET Core Tools (Preview 2)   14.1.21111.0
Microsoft .NET Core Tools (Preview 2)

Microsoft Azure Hive Query Language Service   2.2.2100.0
Language service for Hive query

Microsoft Azure Mobile Services Tools   1.4
Microsoft Azure Mobile Services Tools

Microsoft Azure Tools   2.9
Microsoft Azure Tools for Microsoft Visual Studio 2015 - v2.9.41104.6

Multilingual App Toolkit   4.0.1795.0
Multilingual App Toolkit helps you localize your Windows Store app by providing file management, pseudo and machine translation, translation editor, and build integration. http://aka.ms/matinstall

NuGet Package Manager   3.5.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SQL Server Data Tools   14.0.61021.0
Microsoft SQL Server Data Tools

T4 Toolbox   14.0.0.0
Extends code generation capabilities of Text Templates.

ToolWindowHostedEditor   1.0
Hosting json editor into a tool window

TypeScript   2.1.4.0
TypeScript tools for Visual Studio

Visual Studio Tools for Universal Windows Apps   14.0.25527.01
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

vsFunnel   1.5.29
Decrease solution loading and re-compilation times dramatically by filtering projects not relevant for the current task. 
For more information about Funnel, see the website at http://www.vsfunnel.com
Copyright © 2013-2016. All rights reserved.

Web Essentials 2015.3   3.0.235
Adds many useful features to Visual Studio for web developers. Requires Visual Studio 2015

Xamarin   4.2.2.11 (00fa5cc)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin Inspector Support   1.0.0.0 (1f3067d)
Adds support for inspecting Xamarin and WPF apps.

Xamarin.Android   7.0.2.42 (501e63c)
Visual Studio extension to enable development for Xamarin.Android.

Xamarin.iOS   10.3.1.8 (7beaef4)
Visual Studio extension to enable development for Xamarin.iOS.

----------------------------------------------------------------

Xamarin Info: attached
Comment 6 Zahi Kramer 2017-01-18 14:56:09 UTC
I sending you my archives Juan Marcelo.
Regards.

Zahi.
Comment 7 Juan Marcelo Tondato 2017-01-19 16:05:38 UTC
@zahi 

I do not see errors related to it in logs.

could you try to upload this package manually on google play site in order to detect the issue?
Comment 8 Zahi Kramer 2017-01-19 16:12:13 UTC
Thanks Juan Marcelo.
Already did.
On google play there is no error.
The error is on the archive manager. It cannot load the apk.
The apk is good , I uploaded it from the archive folder manually.
Comment 9 Juan Marcelo Tondato 2017-01-19 16:37:40 UTC
Moving to next cycle to provide a proper solution
Comment 10 faceoffers28 2017-06-29 19:20:36 UTC
I've got the same issue. I'm running Release Cycle 9 of the Xamarin Toolset inside of Visual Studio Enterprise 2015 Update 3. I'm going to try and upload manually.
Comment 11 Jon Douglas [MSFT] 2017-07-07 18:08:43 UTC
If anyone on this bug CC list can provide a reproduction project that demonstrates this behavior to the point of archiving the project, that would help us further investigate this issue. Specifically this seems rather targeted towards the Google Play distribution method of the Archive Manager.

On top of a reproduction project, a list of reproduction steps can also help along the way of investigating this issue further.

Unfortunately I'm not seeing any logs indicating the failure other than the ones from the snippet pasted in https://bugzilla.xamarin.com/show_bug.cgi?id=51599#c0

Thus I am marking this bug as NEEDINFO until we can get a reproduction or more logs demonstrating the failure.
Comment 12 Prashant [MSFT] 2017-08-17 07:03:15 UTC
Because we have not received a reply to our request for more information, we are marking this issue as RESOLVED→NORESPONSE. If you are still encountering this issue on the latest Visual Studio 2017 Preview version 15.3, please don’t hesitate to reopen the ticket with the requested information. 

Thanks!