Bug 43278 - The "UnpackLibraryResources" task failed unexpectedly.System.AggregateException: One or more errors occurred. ---> System.Net.Sockets.SocketException
Summary: The "UnpackLibraryResources" task failed unexpectedly.System.AggregateExcepti...
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 4.2.0 (C8)
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
: 42982 ()
Depends on:
Blocks:
 
Reported: 2016-08-11 14:46 UTC by Chama
Modified: 2016-12-22 19:24 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:
RESOLVED NOT_REPRODUCIBLE

Description Chama 2016-08-11 14:46:30 UTC
Hi,

I am using the last version of Xamarin and I have this error when I deploy my application on iOS.

_UnpackLibraryResources:
3>  Uploading 'Google.Analytics.dll' (16/6093 KB) 0.26%...
3>  Uploading 'Google.Analytics.dll' (32/6093 KB) 0.53%...
3>  Uploading 'Google.Analytics.dll' (48/6093 KB) 0.79%...
3>  Uploading 'Google.Analytics.dll' (1536/6093 KB) 25.21%...
3>  Uploading 'Google.Analytics.dll' (1552/6093 KB) 25.47%...
3>  Uploading 'Google.Analytics.dll' (1568/6093 KB) 25.73%...
3>  Uploading 'Google.Analytics.dll' (1584/6093 KB) 26.00%...
3>  Uploading 'Google.Analytics.dll' (3056/6093 KB) 50.16%...
3>  Uploading 'Google.Analytics.dll' (3072/6093 KB) 50.42%...
3>  Uploading 'Google.Analytics.dll' (3088/6093 KB) 50.68%...
3>  Uploading 'Google.Analytics.dll' (3104/6093 KB) 50.94%...
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018: The "UnpackLibraryResources" task failed unexpectedly.
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018: System.AggregateException: One or more errors occurred. ---> System.Net.Sockets.SocketException: Une connexion existante a dû être fermée par l’hôte distant
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at Renci.SshNet.Session.SocketWrite(Byte[] data)
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at Renci.SshNet.Session.SendMessage(Message message)
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at Renci.SshNet.Session.Renci.SshNet.ISession.SendMessage(Message message)
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at Renci.SshNet.Channels.Channel.SendMessage(ChannelDataMessage message)
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at Renci.SshNet.Channels.Channel.SendData(Byte[] data)
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at Renci.SshNet.ScpClient.InternalUpload(IChannelSession channel, Stream input, Stream source, String filename)
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at Renci.SshNet.ScpClient.Upload(Stream source, String path)
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at Xamarin.Messaging.VisualStudio.MessagingService.<UploadFileAsync>d__79.MoveNext() in C:\Users\builder\data\lanes\3544\fcbe0828\source\xamarinvs\src\Messaging\Xamarin.Messaging.VisualStudio\MessagingService.cs:line 461
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018: --- End of stack trace from previous location where exception was thrown ---
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at Xamarin.Messaging.VisualStudio.MessagingService.<UploadFileAsync>d__78.MoveNext() in C:\Users\builder\data\lanes\3544\fcbe0828\source\xamarinvs\src\Messaging\Xamarin.Messaging.VisualStudio\MessagingService.cs:line 408
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018: --- End of stack trace from previous location where exception was thrown ---
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at Xamarin.VisualStudio.Build.BuildClient.<UploadItemAsync>d__22.MoveNext() in C:\Users\builder\data\lanes\3544\fcbe0828\source\xamarinvs\src\MSBuild\Xamarin.VisualStudio.Build\BuildClient.cs:line 127
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018: --- End of stack trace from previous location where exception was thrown ---
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at Xamarin.VisualStudio.Build.BuildClient.<UploadItemAsync>d__21.MoveNext() in C:\Users\builder\data\lanes\3544\fcbe0828\source\xamarinvs\src\MSBuild\Xamarin.VisualStudio.Build\BuildClient.cs:line 104
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018: --- End of stack trace from previous location where exception was thrown ---
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at Xamarin.VisualStudio.Build.TaskRunner.<CopyRequiredInputFilesAsync>d__12.MoveNext() in C:\Users\builder\data\lanes\3544\fcbe0828\source\xamarinvs\src\MSBuild\Xamarin.VisualStudio.Build\TaskRunner.cs:line 222
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    --- End of inner exception stack trace ---
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at Xamarin.VisualStudio.Build.TaskRunner.Run(Task task) in C:\Users\builder\data\lanes\3544\fcbe0828\source\xamarinvs\src\MSBuild\Xamarin.VisualStudio.Build\TaskRunner.cs:line 62
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at Xamarin.MacDev.Tasks.UnpackLibraryResources.Execute() in C:\Users\builder\data\lanes\3544\fcbe0828\source\xamarinvs\src\MSBuild\Xamarin.MacDev.Tasks\Tasks\UnpackLibraryResources.cs:line 14
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018: ---> (Inner Exception #0) System.Net.Sockets.SocketException (0x80004005): Une connexion existante a dû être fermée par l’hôte distant
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at Renci.SshNet.Session.SocketWrite(Byte[] data)
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at Renci.SshNet.Session.SendMessage(Message message)
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at Renci.SshNet.Session.Renci.SshNet.ISession.SendMessage(Message message)
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at Renci.SshNet.Channels.Channel.SendMessage(ChannelDataMessage message)
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at Renci.SshNet.Channels.Channel.SendData(Byte[] data)
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at Renci.SshNet.ScpClient.InternalUpload(IChannelSession channel, Stream input, Stream source, String filename)
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at Renci.SshNet.ScpClient.Upload(Stream source, String path)
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at Xamarin.Messaging.VisualStudio.MessagingService.<UploadFileAsync>d__79.MoveNext() in C:\Users\builder\data\lanes\3544\fcbe0828\source\xamarinvs\src\Messaging\Xamarin.Messaging.VisualStudio\MessagingService.cs:line 461
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018: --- End of stack trace from previous location where exception was thrown ---
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at Xamarin.Messaging.VisualStudio.MessagingService.<UploadFileAsync>d__78.MoveNext() in C:\Users\builder\data\lanes\3544\fcbe0828\source\xamarinvs\src\Messaging\Xamarin.Messaging.VisualStudio\MessagingService.cs:line 408
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018: --- End of stack trace from previous location where exception was thrown ---
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at Xamarin.VisualStudio.Build.BuildClient.<UploadItemAsync>d__22.MoveNext() in C:\Users\builder\data\lanes\3544\fcbe0828\source\xamarinvs\src\MSBuild\Xamarin.VisualStudio.Build\BuildClient.cs:line 127
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018: --- End of stack trace from previous location where exception was thrown ---
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at Xamarin.VisualStudio.Build.BuildClient.<UploadItemAsync>d__21.MoveNext() in C:\Users\builder\data\lanes\3544\fcbe0828\source\xamarinvs\src\MSBuild\Xamarin.VisualStudio.Build\BuildClient.cs:line 104
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018: --- End of stack trace from previous location where exception was thrown ---
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018:    at Xamarin.VisualStudio.Build.TaskRunner.<CopyRequiredInputFilesAsync>d__12.MoveNext() in C:\Users\builder\data\lanes\3544\fcbe0828\source\xamarinvs\src\MSBuild\Xamarin.VisualStudio.Build\TaskRunner.cs:line 222<---
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(513,3): error MSB4018: 
3>
3>Build FAILED.


Thank you in advance.
Comment 1 Adrian Alonso 2016-08-19 12:12:28 UTC
Hi, are you getting this error randomly? Can you build other apps using iPhone/iPhoneSimulator platforms? Does it always happen when trying to upload the Google.Analytics dll? Thanks, Adrian
Comment 2 Adrian Alonso 2016-08-19 14:16:53 UTC
*** Bug 42982 has been marked as a duplicate of this bug. ***
Comment 3 Adrian Alonso 2016-12-22 19:24:44 UTC
Please let us know if this is still an issue. Thanks! Adrian