Bug 18038 - Build Host does not work: in VS error, Exception System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
Summary: Build Host does not work: in VS error, Exception System.Net.WebException: The...
Status: RESOLVED DUPLICATE of bug 18060
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 1.10.x
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Dominique Louis
URL:
Depends on:
Blocks:
 
Reported: 2014-02-27 00:14 UTC by Emmanuel Huna
Modified: 2015-01-05 11:20 UTC (History)
8 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 DUPLICATE of bug 18060

Description Emmanuel Huna 2014-02-27 00:14:22 UTC
The failure to deploy is still happening for me on 7.0.7.4 (thanks to PJ for providing me 7.0.7.4)

Windows: VS 2013, on alpha channel
Mac: Xamarin Studio, on alpha channel, 7.0.7.4

Trying to deploy TaskyPro from Windows/VS using the Mac build host
  https://github.com/xamarin/mobile-samples/tree/master/TaskyPro

Using Xamarin Studio on the Mac, app compiles and deploys to the simulator
without problems.

Using VS 2013 on Windows, error when deploying:

  Server command 'Build': application remote build failed
  Command execution task ended with exception
  Exception System.Net.WebException: The remote server returned an error: (500)
Internal Server Error.

I originally reported this on https://bugzilla.xamarin.com/show_bug.cgi?id=18002 - but on PJ's advice creating a separate bug for this.

Here's what I see in ~/Library/Logs/Xamarin/MonoTouchVS/mtbserver.log

[26-Feb-2014 21:02:58] Server initialized
[26-Feb-2014 21:02:58] Waiting for requests
[26-Feb-2014 21:02:59] Apple SDK developer root: /Applications/Xcode.app/Contents/Developer
[26-Feb-2014 21:02:59] Server IP Address : 209.1.2.3
[26-Feb-2014 21:02:59] Handling with command: [Info: CommmandUrl=Info] (10)
[26-Feb-2014 21:02:59] Attempting to acquire command execution lock, timeout set to 00:10:00
[26-Feb-2014 21:02:59] Starting /Developer/MonoTouch/usr/bin/mtouch --version
[26-Feb-2014 21:03:00] stdout: mtouch 7.0.7.4 (be6e824)

[26-Feb-2014 21:03:00] mtouch 7.0.7.4 (be6e824)

[26-Feb-2014 21:03:00] Command [Info: CommmandUrl=Info] finished (10)
[26-Feb-2014 21:03:00] Handling with command: [Login: CommmandUrl=Login] (10)
[26-Feb-2014 21:03:00] Attempting to acquire command execution lock, timeout set to 00:10:00
[26-Feb-2014 21:03:00] Login process initiated, returning UUID for pairing.
[26-Feb-2014 21:03:00] Command [Login: CommmandUrl=Login] finished (10)
[26-Feb-2014 21:03:00] Handling with command: [Login: CommmandUrl=Login] (10)
[26-Feb-2014 21:03:00] Attempting to acquire command execution lock, timeout set to 00:10:00
[26-Feb-2014 21:03:00] Command [Login: CommmandUrl=Login] finished (10)
[26-Feb-2014 21:03:01] Handling with command: [StatusSdk: CommmandUrl=StatusSdk] (10)
[26-Feb-2014 21:03:01] Attempting to acquire command execution lock, timeout set to 00:10:00
[26-Feb-2014 21:03:01] Launched process converter
[26-Feb-2014 21:03:04] Handling with command: [ListDevices: CommmandUrl=ListDevices] (12)
[26-Feb-2014 21:03:04] Attempting to acquire command execution lock, timeout set to 00:10:00
[26-Feb-2014 21:03:04] Command [ListDevices: CommmandUrl=ListDevices] finished (12)
[26-Feb-2014 21:03:26] ExitCode: 0
[26-Feb-2014 21:03:27] Apple Docs need to be updated.
[26-Feb-2014 21:03:27] Command [StatusSdk: CommmandUrl=StatusSdk] finished (10)
[26-Feb-2014 21:05:14] Got connection from Visual Studio (log)
[26-Feb-2014 21:05:15] Handling with command: [Info: CommmandUrl=Info] (16)
[26-Feb-2014 21:05:15] Attempting to acquire command execution lock, timeout set to 00:10:00
[26-Feb-2014 21:05:15] mtouch 7.0.7.4 (be6e824)

[26-Feb-2014 21:05:15] Command [Info: CommmandUrl=Info] finished (16)
[26-Feb-2014 21:05:15] Handling with command: [FileManifest: CommmandUrl=FileManifest] (16)
[26-Feb-2014 21:05:15] Attempting to acquire command execution lock, timeout set to 00:10:00
[26-Feb-2014 21:05:15] Command [FileManifest: CommmandUrl=FileManifest] finished (16)
[26-Feb-2014 21:05:16] Handling with command: [UploadChanges: CommmandUrl=UploadChanges] (17)
[26-Feb-2014 21:05:16] Attempting to acquire command execution lock, timeout set to 00:10:00
[26-Feb-2014 21:05:16] Command [UploadChanges: CommmandUrl=UploadChanges] finished (17)
[26-Feb-2014 21:05:16] Handling with command: [Build: CommmandUrl=Build] (17)
[26-Feb-2014 21:05:16] Attempting to acquire command execution lock, timeout set to 00:10:00
[26-Feb-2014 21:05:16] Starting pdb2mdb "Tasky.exe"
[26-Feb-2014 21:05:17] Copying '/Users/admin/Library/Caches/Xamarin/mtbs/builds/Tasky/08fae550-e302-4022-a871-17e0462e99f3/bundle/Tasky.app/../Tasky.Core/BusinessLayer/About.txt' to '/Users/admin/Library/Caches/Xamarin/mtbs/builds/Tasky/08fae550-e302-4022-a871-17e0462e99f3/output/Debug/iPhoneSimulator/Tasky.app/../Tasky.Core/BusinessLayer/About.txt'
[26-Feb-2014 21:05:17] Command [Build: CommmandUrl=Build] finished (17)

(the IP 209.1.2.3 is just an example, not my real Mac IP)
Comment 1 Emmanuel Huna 2014-02-27 00:19:43 UTC
Here are the installed version on the Mac -
(sorry I added this to bug 18002 by mistake)

Here are the installed versions on the Mac -

=== Xamarin Studio ===

Version 4.3.3 (build 2)
Installation UUID: 72e75260-2476-45ab-98ec-26938fda433a
Runtime:
    Mono 3.2.7 ((no/40f92d5)
    GTK+ 2.24.23 (Raleigh theme)

    Package version: 302070000

=== Xamarin.Android ===

Version: 4.12.0 (Business Edition)
Android SDK: /Users/admin/Library/Developer/Xamarin/android-sdk-mac_x86
    Supported Android versions:
        2.1   (API level 7)
        2.2   (API level 8)
        2.3   (API level 10)
        3.1   (API level 12)
        4.0   (API level 14)
        4.0.3 (API level 15)
Java SDK: /usr
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)

=== Apple Developer Tools ===

Xcode 5.0.2 (3335.32)
Build 5A3005

=== Xamarin.iOS ===

Version: 7.0.7.4 (Trial Edition)
Hash: be6e824
Branch: 
Build date: 2014-24-02 22:10:04-0500

=== Xamarin.Mac ===

Xamarin.Mac: Not Installed

=== Build Information ===

Release ID: 403030002
Git revision: 89301538d2f1e41888247489294fdb08a6888119
Build date: 2014-02-23 23:26:23-05
Xamarin addins: 21512f84ba13e6f7264bb24d505927e2b302c81c

=== Operating System ===

Mac OS X 10.9.1
Darwin OSXMAVEMMANUEL.local 13.0.0 Darwin Kernel Version 13.0.0
    Thu Sep 19 22:22:27 PDT 2013
    root:xnu-2422.1.72~6/RELEASE_X86_64 x86_64
Comment 2 Emmanuel Huna 2014-02-27 00:20:08 UTC
Here are the installed version on the PC -

Microsoft Visual Studio Ultimate 2013
Version 12.0.30110.00 Update 1
Microsoft .NET Framework
Version 4.5.51641

Installed Version: Ultimate

Architecture and Modeling Tools   06181-004-0451022-02491
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.

LightSwitch for Visual Studio 2013   06181-004-0451022-02491
Microsoft LightSwitch for Visual Studio 2013

Microsoft Office Developer Tools for Visual Studio 2013 ENU  
06181-004-0451022-02491
Microsoft Office Developer Tools for Visual Studio 2013 ENU

Team Explorer for Visual Studio 2013   06181-004-0451022-02491
Microsoft Team Explorer for Visual Studio 2013

Visual Basic 2013   06181-004-0451022-02491
Microsoft Visual Basic 2013

Visual C# 2013   06181-004-0451022-02491
Microsoft Visual C# 2013

Visual C++ 2013   06181-004-0451022-02491
Microsoft Visual C++ 2013

Visual F# 2013   06181-004-0451022-02491
Microsoft Visual F# 2013

Visual Studio 2013 Code Analysis Spell Checker   06181-004-0451022-02491
Microsoft® Visual Studio® 2013 Code Analysis Spell Checker

Portions of International CorrectSpell™ spelling correction system © 1993 by
Lernout & Hauspie Speech Products N.V. All rights reserved.

The American Heritage® Dictionary of the English Language, Third Edition
Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from
Lernout & Hauspie Speech Products N.V. All rights reserved.

Windows Phone SDK 8.0 - ENU   06181-004-0451022-02491
Windows Phone SDK 8.0 - ENU

ASP.NET and Web Tools   2013.1.41009
Microsoft Web Developer Tools contains the following components:
Support for creating and opening ASP.NET web projects
Browser Link: A communication channel between Visual Studio and browsers
Editor extensions for HTML, CSS, and JavaScript
Page Inspector: Inspection tool for ASP.NET web projects
Scaffolding: A framework for building and running code generators
Server Explorer extensions for Windows Azure Web Sites
Web publishing: Extensions for publishing ASP.NET web projects to hosting
providers, on-premises servers, or Windows Azure

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

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

AWS Toolkit for Visual Studio 2013   1.6.4.1
AWS Toolkit for Visual Studio 2013.
Copyright 2011-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.

This software includes third party software subject to the following
copyrights:
- WPF Toolkit for charting and grid controls, Microsoft Public License (Ms-PL) 
  [http://wpf.codeplex.com/license]
- Logging from log4net, Apache License 
  [http://logging.apache.org/log4net/license.html]
- Putty for PPK to PEM conversion, MIT license 
  [http://www.chiark.greenend.org.uk/~sgtatham/putty/licence.html]
- NGit for AWS Elastic Beanstalk incremental push
  [https://github.com/mono/ngit/blob/master/NGit.license.txt]
- NSch dependency for NGit
  [https://github.com/mono/ngit/blob/master/NSch.license.txt]
- Sharpen dependency for NGit
  [https://github.com/mono/ngit/blob/master/Sharpen/AssemblyInfo.cs]
- ICSharpCode.SharpZipLib dependency for NGit
  [http://www.icsharpcode.net/opensource/sharpziplib/]
- Mono.Posix.dll and Mono.Security.dll dependencies for NGit
  [http://mono-project.com/FAQ:_Licensing#Licensing]
- MPFProj for Visual Studio Project Framework
  [http://mpfproj10.codeplex.com/license]
- JSONLint for JSON validation
  [https://github.com/zaach/jsonlint/blob/master/README.md]
- Noesis.Javascript.dll for JSON validation
  [http://javascriptdotnet.codeplex.com/license]

Common Azure Tools   1.0
Provides common services for use by Azure Mobile Services and Windows Azure
Tools.

Git Source Control Provider   1.0.0.0


JetBrains ReSharper 8.1   C# Edition build 8.1.23.546 on 2013-12-12T11:30:52
JetBrains ReSharper 8.1 package for Microsoft Visual Studio. For more
information about ReSharper, visit http://www.jetbrains.com/resharper/.
Copyright © 2003–2014 JetBrains, Inc.

Microsoft Advertising SDK for Windows Phone   
Microsoft Advertising SDK for Windows Phone
Build 

Multilingual App Toolkit   2.2.1212.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://go.microsoft.com/fwlink?linkid=245767

NuGet Package Manager   2.7.41101.371
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   12.0.30919.1
Microsoft SQL Server Data Tools

VSCommands for Visual Studio 2013   12.0
VSCommands for Visual Studio 2013

Windows Azure Mobile Services Tools   1.0
Windows Azure Mobile Services Tools

Windows Azure Remote Debugging   1.0
Windows Azure Remote Debugging Community Technology Preview

Windows Azure Tools   2.2
Windows Azure Tools for Microsoft Visual Studio 2013 - v2.2.11003.1601

Workflow Manager Tools 1.0   1.0
This package contains the necessary Visual Studio integration components for
Workflow Manager.

Xamarin.Android   4.12.00028 (98634deb)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS   1.10.39 (e0334707)
Visual Studio extension to enable development for Xamarin.iOS
Comment 3 Emmanuel Huna 2014-02-27 01:26:33 UTC
A couple of additional clarifications on the Mac environment -

Using a 'OSX Server Advanced' from http://virtualmacosx.com/index.php/server-plans

Mac OS 10.9.1
2 vCPU
2048 MB RAM

There are no issues connecting to the build host -

Not behind a proxy server, routing properly setup.
Firewall rules are properly enabled on Windows and Mac.
Comment 4 Emmanuel Huna 2014-02-28 00:14:29 UTC
PJ mentioned this issue: https://bugzilla.xamarin.com/show_bug.cgi?id=18060

When he mentioned linked files might be the issue, I tried something.
I created a new "HelloWorld" iOS project - making sure there were no linked files.  It worked!  I was able to deploy using the build host on the Mac without problems.

I then checked TaskyPro https://github.com/xamarin/mobile-samples/tree/master/TaskyPro and sure enough I see a couple of linked files from the Core project to the iOS project.

I think PJ has found the issue, it would be great if this was fixed soon, thanks!
Comment 5 Ram Chandra 2014-02-28 06:41:58 UTC
I have checked this issue with "TaskyProand" mobile sample and i am able to reproduce it.

Steps to reproduce:

(1) Open solution "TaskyVS.sln" in "Visual Studio 2013".
(2) Build the solution.
(3) Deploy the solution.

Refer screencast: http://screencast.com/t/uMC75bzWBBAa

Environment :

Windows 7
Microsoft Visual Studio 2013
Xamarin.iOS   1.10.39 (e0334707)
Comment 6 PJ 2014-02-28 11:52:16 UTC

*** This bug has been marked as a duplicate of bug 18060 ***