Bug 7474 - Projects using dashes - causes Deployment failed. Internal error
Summary: Projects using dashes - causes Deployment failed. Internal error
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Android Add-in ()
Version: 3.0.x
Hardware: Macintosh Mac OS
: High critical
Target Milestone: ---
Assignee: Mikayla Hutchinson [MSFT]
URL:
: 7076 ()
Depends on:
Blocks:
 
Reported: 2012-09-26 12:02 UTC by Chris Hardy [MSFT]
Modified: 2012-11-07 00:25 UTC (History)
3 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 or GitHub 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 FIXED

Description Chris Hardy [MSFT] 2012-09-26 12:02:02 UTC
Project is "sms-test" and the resulting file is something like sms_test.sms_test-Signed.apk hence not being able to find the apk.

Error message:

[2012-09-26 15:42:29.4] DEBUG: RunShellCommand: 303301E05BF900EC am broadcast -a mono.android.intent.action.PACKAGE_VERSIONS -e "packages" "Mono.Android.DebugRuntime,Mono.Android.Platform.ApiLevel_15,sms-test.sms-test" Mono.Android.DebugRuntime/com.xamarin.mono.android.PackageVersions
[2012-09-26 15:42:30.5] DEBUG: RunShellCommand: 303301E05BF900EC rm "/data/local/tmp/sms-test.sms-test-Signed.apk"
[2012-09-26 15:42:30.5] ERROR: Deployment failed
System.IO.FileNotFoundException: Could not find file "/Users/chrisntr/Downloads/sms-test/bin/Debug/sms-test.sms-test-Signed.apk".
File name: '/Users/chrisntr/Downloads/sms-test/bin/Debug/sms-test.sms-test-Signed.apk'
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00337] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.10/_build/mono-2.10.10.git/mcs/class/corlib/System.IO/FileStream.cs:343 
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
  at System.IO.File.OpenRead (System.String path) [0x00000] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.10/_build/mono-2.10.10.git/mcs/class/corlib/System.IO/File.cs:337 
  at Mono.AndroidTools.Adb.AdbSyncClient.BeginPush (System.String localFilePath, System.String remoteFilePath, Mono.AndroidTools.Adb.AdbProgressReporter notifyProgress, System.AsyncCallback callback, System.Object state) [0x0000d] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-3.0.4-branch/ea010826/source/md-addins/MonoDevelop.MonoDroid/external/androidtools/Mono.AndroidTools/Adb/AdbSyncClient.cs:718 
  at System.Threading.Tasks.TaskFactory`1[System.Int64].FromAsyncBeginEnd[String,String,AdbProgressReporter] (System.Func`6 beginMethod, System.Func`2 endMethod, System.String arg1, System.String arg2, Mono.AndroidTools.Adb.AdbProgressReporter arg3, System.Object state, TaskCreationOptions creationOptions) [0x00057] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.10/_build/mono-2.10.10.git/mcs/class/corlib/System.Threading.Tasks/TaskFactory_T.cs:434 
  at System.Threading.Tasks.TaskFactory.FromAsync[String,String,AdbProgressReporter,Int64] (System.Func`6 beginMethod, System.Func`2 endMethod, System.String arg1, System.String arg2, Mono.AndroidTools.Adb.AdbProgressReporter arg3, System.Object state, TaskCreationOptions creationOptions) [0x00000] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.10/_build/mono-2.10.10.git/mcs/class/corlib/System.Threading.Tasks/TaskFactory.cs:616 
  at System.Threading.Tasks.TaskFactory.FromAsync[String,String,AdbProgressReporter,Int64] (System.Func`6 beginMethod, System.Func`2 endMethod, System.String arg1, System.String arg2, Mono.AndroidTools.Adb.AdbProgressReporter arg3, System.Object state) [0x00000] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.10/_build/mono-2.10.10.git/mcs/class/corlib/System.Threading.Tasks/TaskFactory.cs:610 
  at Mono.AndroidTools.Internal.AdbClientTaskExtensions.PushAsync (Mono.AndroidTools.Adb.AdbSyncClient client, System.String localFilePath, System.String remoteFilePath, Mono.AndroidTools.Adb.AdbProgressReporter notifyProgress, TaskCreationOptions options) [0x00000] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-3.0.4-branch/ea010826/source/md-addins/MonoDevelop.MonoDroid/external/androidtools/Mono.AndroidTools/Internal/AdbClientTaskExtensions.cs:132 
  at Mono.AndroidTools.AndroidDevice+<Push>c__AnonStorey1C.<>m__21 (System.Threading.Tasks.Task t) [0x00012] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-3.0.4-branch/ea010826/source/md-addins/MonoDevelop.MonoDroid/external/androidtools/Mono.AndroidTools/AndroidDevice.cs:644 
  at System.Threading.Tasks.TaskActionInvoker+FuncTaskInvoke`1[System.Threading.Tasks.Task`1[System.Int64]].Invoke (System.Threading.Tasks.Task owner, System.Object state, System.Threading.Tasks.Task context) [0x00000] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.10/_build/mono-2.10.10.git/mcs/class/corlib/System.Threading.Tasks/TaskActionInvoker.cs:261 
  at System.Threading.Tasks.Task.InnerInvoke () [0x0000b] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.10/_build/mono-2.10.10.git/mcs/class/corlib/System.Threading.Tasks/Task.cs:476 
  at System.Threading.Tasks.Task.ThreadStart () [0x0007b] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.10/_build/mono-2.10.10.git/mcs/class/corlib/System.Threading.Tasks/Task.cs:390 
[2012-09-26 15:46:17.8] DEBUG: RunShellCommand: 303301E05BF900EC am broadcast -a mono.android.intent.action.PACKAGE_VERSIONS -e "packages" "Mono.Android.DebugRuntime,Mono.Android.Platform.ApiLevel_15,sms-test.sms-test" Mono.Android.DebugRuntime/com.xamarin.mono.android.PackageVersions
[2012-09-26 15:46:18.6] DEBUG: RunShellCommand: 303301E05BF900EC rm "/data/local/tmp/sms-test.sms-test-Signed.apk"
[2012-09-26 15:46:18.6] ERROR: Deployment failed
System.IO.FileNotFoundException: Could not find file "/Users/chrisntr/Downloads/sms-test/bin/Debug/sms-test.sms-test-Signed.apk".
File name: '/Users/chrisntr/Downloads/sms-test/bin/Debug/sms-test.sms-test-Signed.apk'
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00337] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.10/_build/mono-2.10.10.git/mcs/class/corlib/System.IO/FileStream.cs:343 
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
  at System.IO.File.OpenRead (System.String path) [0x00000] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.10/_build/mono-2.10.10.git/mcs/class/corlib/System.IO/File.cs:337 
  at Mono.AndroidTools.Adb.AdbSyncClient.BeginPush (System.String localFilePath, System.String remoteFilePath, Mono.AndroidTools.Adb.AdbProgressReporter notifyProgress, System.AsyncCallback callback, System.Object state) [0x0000d] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-3.0.4-branch/ea010826/source/md-addins/MonoDevelop.MonoDroid/external/androidtools/Mono.AndroidTools/Adb/AdbSyncClient.cs:718 
  at System.Threading.Tasks.TaskFactory`1[System.Int64].FromAsyncBeginEnd[String,String,AdbProgressReporter] (System.Func`6 beginMethod, System.Func`2 endMethod, System.String arg1, System.String arg2, Mono.AndroidTools.Adb.AdbProgressReporter arg3, System.Object state, TaskCreationOptions creationOptions) [0x00057] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.10/_build/mono-2.10.10.git/mcs/class/corlib/System.Threading.Tasks/TaskFactory_T.cs:434 
  at System.Threading.Tasks.TaskFactory.FromAsync[String,String,AdbProgressReporter,Int64] (System.Func`6 beginMethod, System.Func`2 endMethod, System.String arg1, System.String arg2, Mono.AndroidTools.Adb.AdbProgressReporter arg3, System.Object state, TaskCreationOptions creationOptions) [0x00000] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.10/_build/mono-2.10.10.git/mcs/class/corlib/System.Threading.Tasks/TaskFactory.cs:616 
  at System.Threading.Tasks.TaskFactory.FromAsync[String,String,AdbProgressReporter,Int64] (System.Func`6 beginMethod, System.Func`2 endMethod, System.String arg1, System.String arg2, Mono.AndroidTools.Adb.AdbProgressReporter arg3, System.Object state) [0x00000] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.10/_build/mono-2.10.10.git/mcs/class/corlib/System.Threading.Tasks/TaskFactory.cs:610 
  at Mono.AndroidTools.Internal.AdbClientTaskExtensions.PushAsync (Mono.AndroidTools.Adb.AdbSyncClient client, System.String localFilePath, System.String remoteFilePath, Mono.AndroidTools.Adb.AdbProgressReporter notifyProgress, TaskCreationOptions options) [0x00000] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-3.0.4-branch/ea010826/source/md-addins/MonoDevelop.MonoDroid/external/androidtools/Mono.AndroidTools/Internal/AdbClientTaskExtensions.cs:132 
  at Mono.AndroidTools.AndroidDevice+<Push>c__AnonStorey1C.<>m__21 (System.Threading.Tasks.Task t) [0x00012] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-3.0.4-branch/ea010826/source/md-addins/MonoDevelop.MonoDroid/external/androidtools/Mono.AndroidTools/AndroidDevice.cs:644 
  at System.Threading.Tasks.TaskActionInvoker+FuncTaskInvoke`1[System.Threading.Tasks.Task`1[System.Int64]].Invoke (System.Threading.Tasks.Task owner, System.Object state, System.Threading.Tasks.Task context) [0x00000] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.10/_build/mono-2.10.10.git/mcs/class/corlib/System.Threading.Tasks/TaskActionInvoker.cs:261 
  at System.Threading.Tasks.Task.InnerInvoke () [0x0000b] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.10/_build/mono-2.10.10.git/mcs/class/corlib/System.Threading.Tasks/Task.cs:476 
  at System.Threading.Tasks.Task.ThreadStart () [0x0007b] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.10/_build/mono-2.10.10.git/mcs/class/corlib/System.Threading.Tasks/Task.cs:390 
[2012-09-26 15:46:44.1] DEBUG: RunShellCommand: 303301E05BF900EC am broadcast -a mono.android.intent.action.PACKAGE_VERSIONS -e "packages" "Mono.Android.DebugRuntime,Mono.Android.Platform.ApiLevel_15,sms-test.sms-test" Mono.Android.DebugRuntime/com.xamarin.mono.android.PackageVersions
[2012-09-26 15:46:44.8] DEBUG: RunShellCommand: 303301E05BF900EC rm "/data/local/tmp/sms-test.sms-test-Signed.apk"
[2012-09-26 15:46:44.8] ERROR: Deployment failed
System.IO.FileNotFoundException: Could not find file "/Users/chrisntr/Downloads/sms-test/bin/Debug/sms-test.sms-test-Signed.apk".
File name: '/Users/chrisntr/Downloads/sms-test/bin/Debug/sms-test.sms-test-Signed.apk'
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00337] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.10/_build/mono-2.10.10.git/mcs/class/corlib/System.IO/FileStream.cs:343 
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
  at System.IO.File.OpenRead (System.String path) [0x00000] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.10/_build/mono-2.10.10.git/mcs/class/corlib/System.IO/File.cs:337 
  at Mono.AndroidTools.Adb.AdbSyncClient.BeginPush (System.String localFilePath, System.String remoteFilePath, Mono.AndroidTools.Adb.AdbProgressReporter notifyProgress, System.AsyncCallback callback, System.Object state) [0x0000d] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-3.0.4-branch/ea010826/source/md-addins/MonoDevelop.MonoDroid/external/androidtools/Mono.AndroidTools/Adb/AdbSyncClient.cs:718 
  at System.Threading.Tasks.TaskFactory`1[System.Int64].FromAsyncBeginEnd[String,String,AdbProgressReporter] (System.Func`6 beginMethod, System.Func`2 endMethod, System.String arg1, System.String arg2, Mono.AndroidTools.Adb.AdbProgressReporter arg3, System.Object state, TaskCreationOptions creationOptions) [0x00057] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.10/_build/mono-2.10.10.git/mcs/class/corlib/System.Threading.Tasks/TaskFactory_T.cs:434 
  at System.Threading.Tasks.TaskFactory.FromAsync[String,String,AdbProgressReporter,Int64] (System.Func`6 beginMethod, System.Func`2 endMethod, System.String arg1, System.String arg2, Mono.AndroidTools.Adb.AdbProgressReporter arg3, System.Object state, TaskCreationOptions creationOptions) [0x00000] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.10/_build/mono-2.10.10.git/mcs/class/corlib/System.Threading.Tasks/TaskFactory.cs:616 
  at System.Threading.Tasks.TaskFactory.FromAsync[String,String,AdbProgressReporter,Int64] (System.Func`6 beginMethod, System.Func`2 endMethod, System.String arg1, System.String arg2, Mono.AndroidTools.Adb.AdbProgressReporter arg3, System.Object state) [0x00000] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.10/_build/mono-2.10.10.git/mcs/class/corlib/System.Threading.Tasks/TaskFactory.cs:610 
  at Mono.AndroidTools.Internal.AdbClientTaskExtensions.PushAsync (Mono.AndroidTools.Adb.AdbSyncClient client, System.String localFilePath, System.String remoteFilePath, Mono.AndroidTools.Adb.AdbProgressReporter notifyProgress, TaskCreationOptions options) [0x00000] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-3.0.4-branch/ea010826/source/md-addins/MonoDevelop.MonoDroid/external/androidtools/Mono.AndroidTools/Internal/AdbClientTaskExtensions.cs:132 
  at Mono.AndroidTools.AndroidDevice+<Push>c__AnonStorey1C.<>m__21 (System.Threading.Tasks.Task t) [0x00012] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-3.0.4-branch/ea010826/source/md-addins/MonoDevelop.MonoDroid/external/androidtools/Mono.AndroidTools/AndroidDevice.cs:644 
  at System.Threading.Tasks.TaskActionInvoker+FuncTaskInvoke`1[System.Threading.Tasks.Task`1[System.Int64]].Invoke (System.Threading.Tasks.Task owner, System.Object state, System.Threading.Tasks.Task context) [0x00000] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.10/_build/mono-2.10.10.git/mcs/class/corlib/System.Threading.Tasks/TaskActionInvoker.cs:261 
  at System.Threading.Tasks.Task.InnerInvoke () [0x0000b] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.10/_build/mono-2.10.10.git/mcs/class/corlib/System.Threading.Tasks/Task.cs:476 
  at System.Threading.Tasks.Task.ThreadStart () [0x0007b] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.10/_build/mono-2.10.10.git/mcs/class/corlib/System.Threading.Tasks/Task.cs:390
Comment 7 Mikayla Hutchinson [MSFT] 2012-10-22 18:20:51 UTC
Fixed in master and 3.0-series.
Comment 8 Jonathan Pryor 2012-11-07 00:25:11 UTC
*** Bug 7076 has been marked as a duplicate of this bug. ***