Bug 17867 - remote build fails with System.Net.WebException
Summary: remote build fails with System.Net.WebException
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 1.12.x
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-02-19 02:15 UTC by Rainer Mager
Modified: 2015-08-11 12:45 UTC (History)
10 users (show)

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


Attachments
mtbserver.log (4.01 KB, application/octet-stream)
2014-02-19 21:54 UTC, Rainer Mager
Details
app log (2 bytes, application/octet-stream)
2014-02-19 21:56 UTC, Rainer Mager
Details
Windows logs (4.00 KB, application/zip)
2014-02-19 21:58 UTC, Rainer Mager
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 NOT_REPRODUCIBLE

Description Rainer Mager 2014-02-19 02:15:17 UTC
I'm trying to build remotely from VS and it fails with System.Net.WebException. The full log is shown below.

Also, at the end of this log it says, "Exception details can be found in the log file", but it isn't clear which log it is referring to.



1>Build started.
1>Project "Zoing.iOS.csproj" (_RemoteBuild target(s)):
1>Target "_CheckForInvalidConfigurationAndPlatform" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\Users\Rainer\Source\Repos\Zoing\Zoing.iOS\Zoing.iOS.csproj" (entry point):
1>Done building target "_CheckForInvalidConfigurationAndPlatform" in project "Zoing.iOS.csproj".
1>Target "_VerifyResourcesExist" in file "C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.MonoTouch.Common.targets" from project "C:\Users\Rainer\Source\Repos\Zoing\Zoing.iOS\Zoing.iOS.csproj" (target "_PrepareApplicationBundle" depends on it):
1>Done building target "_VerifyResourcesExist" in project "Zoing.iOS.csproj".
1>Target "BeforeResolveReferences" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\Users\Rainer\Source\Repos\Zoing\Zoing.iOS\Zoing.iOS.csproj" (target "ResolveReferences" depends on it):
1>Done building target "BeforeResolveReferences" in project "Zoing.iOS.csproj".
1>Target "AssignProjectConfiguration" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\Users\Rainer\Source\Repos\Zoing\Zoing.iOS\Zoing.iOS.csproj" (target "ResolveReferences" depends on it):
1>Done building target "AssignProjectConfiguration" in project "Zoing.iOS.csproj".
1>Target "_SplitProjectReferencesByFileExistence" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\Users\Rainer\Source\Repos\Zoing\Zoing.iOS\Zoing.iOS.csproj" (target "ResolveProjectReferences" depends on it):
1>Done building target "_SplitProjectReferencesByFileExistence" in project "Zoing.iOS.csproj".
1>Target "ResolveProjectReferences" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\Users\Rainer\Source\Repos\Zoing\Zoing.iOS\Zoing.iOS.csproj" (target "ResolveReferences" depends on it):
1>Project "Infrastructure.csproj" (GetTargetPath target(s)):
1>Target "_CheckForInvalidConfigurationAndPlatform" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\Users\Rainer\Source\Repos\Zoing\Infrastructure\Infrastructure.csproj" (entry point):
1>Done building target "_CheckForInvalidConfigurationAndPlatform" in project "Infrastructure.csproj".
1>Target "_CheckForInvalidTargetFrameworkProfile" in file "C:\Program Files (x86)\MSBuild\Microsoft\Portable\Microsoft.Portable.Core.targets" from project "C:\Users\Rainer\Source\Repos\Zoing\Infrastructure\Infrastructure.csproj" (entry point):
1>Done building target "_CheckForInvalidTargetFrameworkProfile" in project "Infrastructure.csproj".
1>Target "GetTargetPath" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\Users\Rainer\Source\Repos\Zoing\Infrastructure\Infrastructure.csproj" (entry point):
1>Done building target "GetTargetPath" in project "Infrastructure.csproj".
1>Done building project "Infrastructure.csproj".
1>Project "MediaFramework.csproj" (GetTargetPath target(s)):
1>Project "Zoing.csproj" (GetTargetPath target(s)):
1>Target "_CheckForInvalidConfigurationAndPlatform" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\Users\Rainer\Source\Repos\Zoing\Zoing\Zoing.csproj" (entry point):
1>Target "_CheckForInvalidConfigurationAndPlatform" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\Users\Rainer\Source\Repos\Zoing\MediaFramework\MediaFramework.csproj" (entry point):
1>Done building target "_CheckForInvalidConfigurationAndPlatform" in project "Zoing.csproj".
1>Target "_CheckForInvalidTargetFrameworkProfile" in file "C:\Program Files (x86)\MSBuild\Microsoft\Portable\Microsoft.Portable.Core.targets" from project "C:\Users\Rainer\Source\Repos\Zoing\Zoing\Zoing.csproj" (entry point):
1>Done building target "_CheckForInvalidTargetFrameworkProfile" in project "Zoing.csproj".
1>Target "GetTargetPath" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\Users\Rainer\Source\Repos\Zoing\Zoing\Zoing.csproj" (entry point):
1>Done building target "GetTargetPath" in project "Zoing.csproj".
1>Done building project "Zoing.csproj".
1>Done building target "_CheckForInvalidConfigurationAndPlatform" in project "MediaFramework.csproj".
1>Target "_CheckForInvalidTargetFrameworkProfile" in file "C:\Program Files (x86)\MSBuild\Microsoft\Portable\Microsoft.Portable.Core.targets" from project "C:\Users\Rainer\Source\Repos\Zoing\MediaFramework\MediaFramework.csproj" (entry point):
1>Done building target "_CheckForInvalidTargetFrameworkProfile" in project "MediaFramework.csproj".
1>Target "GetTargetPath" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\Users\Rainer\Source\Repos\Zoing\MediaFramework\MediaFramework.csproj" (entry point):
1>Done building target "GetTargetPath" in project "MediaFramework.csproj".
1>Done building project "MediaFramework.csproj".
1>Project "Infrastructure.csproj" (GetNativeManifest target(s)):
1>Target "GetNativeManifest" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\Users\Rainer\Source\Repos\Zoing\Infrastructure\Infrastructure.csproj" (entry point):
1>Done building target "GetNativeManifest" in project "Infrastructure.csproj".
1>Done building project "Infrastructure.csproj".
1>Project "MediaFramework.csproj" (GetNativeManifest target(s)):
1>Target "GetNativeManifest" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\Users\Rainer\Source\Repos\Zoing\MediaFramework\MediaFramework.csproj" (entry point):
1>Done building target "GetNativeManifest" in project "MediaFramework.csproj".
1>Done building project "MediaFramework.csproj".
1>Project "Zoing.csproj" (GetNativeManifest target(s)):
1>Target "GetNativeManifest" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\Users\Rainer\Source\Repos\Zoing\Zoing\Zoing.csproj" (entry point):
1>Done building target "GetNativeManifest" in project "Zoing.csproj".
1>Done building project "Zoing.csproj".
1>Done building target "ResolveProjectReferences" in project "Zoing.iOS.csproj".
1>Target "GetFrameworkPaths" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\Users\Rainer\Source\Repos\Zoing\Zoing.iOS\Zoing.iOS.csproj" (target "ResolveAssemblyReferences" depends on it):
1>Done building target "GetFrameworkPaths" in project "Zoing.iOS.csproj".
1>Target "GetReferenceAssemblyPaths" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\Users\Rainer\Source\Repos\Zoing\Zoing.iOS\Zoing.iOS.csproj" (target "ResolveAssemblyReferences" depends on it):
1>Done building target "GetReferenceAssemblyPaths" in project "Zoing.iOS.csproj".
1>Target "PrepareForBuild" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\Users\Rainer\Source\Repos\Zoing\Zoing.iOS\Zoing.iOS.csproj" (target "ResolveAssemblyReferences" depends on it):
1>Done building target "PrepareForBuild" in project "Zoing.iOS.csproj".
1>Target "GetInstalledSDKLocations" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\Users\Rainer\Source\Repos\Zoing\Zoing.iOS\Zoing.iOS.csproj" (target "ResolveSDKReferences" depends on it):
1>Done building target "GetInstalledSDKLocations" in project "Zoing.iOS.csproj".
1>Target "ResolveSDKReferences" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\Users\Rainer\Source\Repos\Zoing\Zoing.iOS\Zoing.iOS.csproj" (target "ResolveAssemblyReferences" depends on it):
1>Done building target "ResolveSDKReferences" in project "Zoing.iOS.csproj".
1>Target "ExpandSDKReferences" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\Users\Rainer\Source\Repos\Zoing\Zoing.iOS\Zoing.iOS.csproj" (target "ResolveAssemblyReferences" depends on it):
1>Done building target "ExpandSDKReferences" in project "Zoing.iOS.csproj".
1>Target "ResolveAssemblyReferences" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\Users\Rainer\Source\Repos\Zoing\Zoing.iOS\Zoing.iOS.csproj" (target "ResolveReferences" depends on it):
1>Done building target "ResolveAssemblyReferences" in project "Zoing.iOS.csproj".
1>Target "AfterResolveReferences" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\Users\Rainer\Source\Repos\Zoing\Zoing.iOS\Zoing.iOS.csproj" (target "ResolveReferences" depends on it):
1>Done building target "AfterResolveReferences" in project "Zoing.iOS.csproj".
1>Target "ImplicitlyExpandDesignTimeFacades" in file "C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.MonoTouch.Common.targets" from project "C:\Users\Rainer\Source\Repos\Zoing\Zoing.iOS\Zoing.iOS.csproj" (target "ResolveReferences" depends on it):
1>Done building target "ImplicitlyExpandDesignTimeFacades" in project "Zoing.iOS.csproj".
1>Target "ResolveReferences" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\Users\Rainer\Source\Repos\Zoing\Zoing.iOS\Zoing.iOS.csproj" (target "_ComputeReferencesToUpload" depends on it):
1>Done building target "ResolveReferences" in project "Zoing.iOS.csproj".
1>Target "_ComputeReferencesToUpload" in file "C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.MonoTouch.Common.targets" from project "C:\Users\Rainer\Source\Repos\Zoing\Zoing.iOS\Zoing.iOS.csproj" (target "_PrepareApplicationBundle" depends on it):
1>Done building target "_ComputeReferencesToUpload" in project "Zoing.iOS.csproj".
1>Target "_ComputeBundleContentPaths" in file "C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.MonoTouch.Common.targets" from project "C:\Users\Rainer\Source\Repos\Zoing\Zoing.iOS\Zoing.iOS.csproj" (target "_PrepareApplicationBundle" depends on it):
1>Done building target "_ComputeBundleContentPaths" in project "Zoing.iOS.csproj".
1>Target "_GenerateBundleContentDir" in file "C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.MonoTouch.Common.targets" from project "C:\Users\Rainer\Source\Repos\Zoing\Zoing.iOS\Zoing.iOS.csproj" (target "_PrepareApplicationBundle" depends on it):
1>Done building target "_GenerateBundleContentDir" in project "Zoing.iOS.csproj".
1>Target "_PrepareApplicationBundle" in file "C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.MonoTouch.Common.targets" from project "C:\Users\Rainer\Source\Repos\Zoing\Zoing.iOS\Zoing.iOS.csproj" (target "_RemoteBuild" depends on it):
1>Done building target "_PrepareApplicationBundle" in project "Zoing.iOS.csproj".
1>Target "_BuildNativeApplication" in file "C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.MonoTouch.Common.targets" from project "C:\Users\Rainer\Source\Repos\Zoing\Zoing.iOS\Zoing.iOS.csproj" (target "_RemoteBuild" depends on it):
1>Server command 'Build': application remote build failed
1>Command execution task ended with exception
1>Exception System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
1>Exception details can be found in the log file
1>
1>
1>Remote build step failed.
1>Done building target "_BuildNativeApplication" in project "Zoing.iOS.csproj" -- FAILED.
1>Done building project "Zoing.iOS.csproj" -- FAILED.
1>Build FAILED.
========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========
Comment 1 Prashant manu 2014-02-19 05:56:43 UTC
Using VS we are able to Build/deploy iOS application. Could you please provide
us additional details like teststeps/screenshot for the same?

Environment Details:
Win7/VS2012
XS 4.2.2 (build 2)
MTVS 1.10.39 (e0334707)

ML 10.8.5
Xam.iOS 4.10.1-68
Comment 2 PJ 2014-02-19 09:15:04 UTC
Hi Rainer, 

It's possible this is a duplicate of https://bugzilla.xamarin.com/show_bug.cgi?id=17852 but there are a few ways to get the 500 error returned.

if possible, can you add the logs from the following places?:

Mac:
- Mac Server Log, /Users/pjbeaman/Library/Logs/Xamarin/MonoTouchVS/mtbserver.log
- App log, /Users/pjbeaman/Library/Logs/Xamarin/MonoTouchVS/$APP_NAME_$HASH.log

Win:
- All logs from C:\Users\$USERNAME\AppData\Local\Xamarin\Log\*

It would also help to know if the issue is happening for you with just one particular project or with all projects. Does this happen with a template project?

If it only happens with a single solution, often the best and fastest way for us to diagnose and fix the issue is to get a copy of the solution you're working with.
Comment 3 Rainer Mager 2014-02-19 21:54:36 UTC
Created attachment 6097 [details]
mtbserver.log
Comment 4 Rainer Mager 2014-02-19 21:56:51 UTC
Created attachment 6098 [details]
app log
Comment 5 Rainer Mager 2014-02-19 21:58:26 UTC
Created attachment 6099 [details]
Windows logs
Comment 6 Rainer Mager 2014-02-19 21:59:43 UTC
I've attached the requested log files. Note, the behavior has suddenly changed. Now the build succeeds, but when I try to deploy to my device the build step in VS spins forever and the only way I can abort is to kill the VS process.
Comment 7 Justin Caldicott 2014-03-22 07:35:28 UTC
I had the same problem and managed to resolve it by looking in mtbserver.log.  The problem was two icon files that had their build action set to none, rather than BundleResource.  I guess something must have changed with the Xamarin platform there, as I haven't built this app for some time.

It would be great to pass more of the error messages to visual studio to avoid hunting in log files (which also were not identified, it just said look in the log) on a different machine.
Comment 8 Justin Caldicott 2014-03-22 16:45:45 UTC
Correction, it was the App log at Library/Logs/Xamarin/MonoTouchVS/$APP_NAME_$HASH.log that helped, not the server log.
Comment 9 Philippe Rollin 2014-04-10 20:08:55 UTC
We have the same issue and it seems to be related to the fact that we use linked content in our csproj file.

<Content Include="..\MyAppContent\iOS\Debug\Content\Images\Foo.png">
  <Link>Content\Images\Foo.png</Link>
</Content>

On the mac side, the bundle does contain the content at the proper relative location ("Content\Images\Foo.png") however the mtbserver.log file shows that it is trying to copy the content from the original location ("..\MyAppContent\iOS\Debug\Content\Images\Foo.png")

An update on this issue would be greatly appreciated.
Comment 10 PJ 2014-04-14 14:31:28 UTC
Philippe, you were seeing bug 18060. That bug is resolved and will be making it to the pre-release channels soon. I don't have an exact timeline, but it could be as early as this week. Sorry for the inconvenience.

Setting this bug back to NEW because Rainer did supply the requested logs.
Comment 11 Enzo Heredia 2015-08-07 12:08:30 UTC
not reproducible in 4.0.0.830