Bug 21205 - Cannot cast from source type to destination type when choose Run With Mono Soft Debugger
Summary: Cannot cast from source type to destination type when choose Run With Mono So...
Status: VERIFIED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Android Add-in ()
Version: 5.1
Hardware: PC Mac OS
: Normal normal
Target Milestone: master
Assignee: Greg Munn
URL:
: 21012 21508 21674 ()
Depends on:
Blocks:
 
Reported: 2014-07-09 13:56 UTC by John Miller [MSFT]
Modified: 2014-09-15 12:43 UTC (History)
6 users (show)

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


Attachments
IDE Log File (2.04 KB, application/zip)
2014-07-10 11:28 UTC, John Miller [MSFT]
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 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:
VERIFIED FIXED

Description John Miller [MSFT] 2014-07-09 13:56:10 UTC
### Overview: 

    Right clicking on an Android project and choosing Run With -> Mono Soft Debugger causes an error:

    "Execution Failed: Cannot cast from source type to destination type"

### Steps to Reproduce: 

    1. Create a new Xamarin.Forms Shared Project
    2. Right click on the .Android project and choose Run With -> Mono Soft Debugger

    http://screencast.com/t/kjiTMmz4xlE

### Actual Results: 

    XS Shows an error message: "Execution Failed: Cannot cast from source type to destination type"

### Expected Results: 

    No error, launch project to emulator/device. 

### Build Date & Platform: 

    XS 5.1

### Additional Information: 

    This does not happen in XS 5.0.1. Maybe it has something to do with change in the device selection. Here are the same steps with XS 5.0.1: http://screencast.com/t/MwqTfpVEBA9f
Comment 1 Mikayla Hutchinson [MSFT] 2014-07-10 02:59:03 UTC
Log files?
Comment 2 John Miller [MSFT] 2014-07-10 11:28:41 UTC
Created attachment 7325 [details]
IDE Log File

Logs, as requested.
Comment 3 John Miller [MSFT] 2014-07-10 11:29:06 UTC
Added Logs
Comment 4 Shruti 2014-07-11 01:55:33 UTC
I have tried this issue with following same steps as given in above description section and able to reproduce error :  "Execution Failed. Cannot cast from source type to destination type."

Screencast : https://gist.github.com/Shruti360/171563ef2f665febf2ef
Build Output : https://gist.github.com/Shruti360/171563ef2f665febf2ef

Environment Info :
=== Xamarin Studio ===

Version 5.1.2 (build 0)
Installation UUID: 1a096c6f-0678-402e-89b2-a2c10f7e80e4
Runtime:
	Mono 3.4.0 ((no/954ed3c)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 304000214

=== Xamarin.Android ===

Version: 4.12.6 (Enterprise Edition)
Android SDK: /Users/360_macmini/Desktop/android-sdk-macosx
	Supported Android versions:
		2.1   (API level 7)
		2.2   (API level 8)
		2.3   (API level 10)
		3.1   (API level 12)
		3.2   (API level 13)
		4.0   (API level 14)
		4.0.3 (API level 15)
		4.1   (API level 16)
		4.2   (API level 17)
		4.3   (API level 18)
		4.4   (API level 19)
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.1.1 (5085)
Build 5B1008

=== Xamarin.iOS ===

Version: 7.2.5.5 (Enterprise Edition)
Hash: 87026b6
Branch: 
Build date: 2014-07-02 19:39:08-0400

=== Xamarin.Mac ===

Version:

=== Build Information ===

Release ID: 501020000
Git revision: 4574b1e5cf09f2e95e486c259bd9267a68c77cb3
Build date: 2014-07-02 20:50:40-04
Xamarin addins: fdea6fe3e36cda39291b39c81133e409c6d6f092

=== Operating System ===

Mac OS X 10.9.4
Darwin ShrutiMac.local 13.3.0 Darwin Kernel Version 13.3.0
    Tue Jun  3 21:27:35 PDT 2014
    root:xnu-2422.110.17~1/RELEASE_X86_64 x86_64
Comment 5 Greg Munn 2014-07-14 11:45:49 UTC
Fixed in md-addins/bd891d38f1cff82ba43a9d21112837f3902c647a
Comment 6 Greg Munn 2014-07-30 10:39:26 UTC
*** Bug 21508 has been marked as a duplicate of this bug. ***
Comment 7 Greg Munn 2014-07-30 11:25:57 UTC
*** Bug 21674 has been marked as a duplicate of this bug. ***
Comment 8 Rajneesh Kumar 2014-08-05 11:27:19 UTC
I have checked this issue now. we are not getting this Issue. Now we are observing  a different Issue for which we have reported another Issue Bug 21824 

=== Xamarin Studio ===

Version 5.3 (build 412)
Installation UUID: 952292e8-1484-4c56-b664-6ff701bef591
Runtime:
 Mono 3.8.0 ((no/9ffca33)
 GTK+ 2.24.23 (Raleigh theme)

 Package version: 308000002

=== Apple Developer Tools ===

Xcode 5.1.1 (5085)
Build 5B1008

=== Xamarin.Android ===

Version: 4.16.0 (Trial Edition)
Android SDK: /Users/xamarin76/Desktop/android-sdk-macosx
 Supported Android versions:
  2.1    (API level 7)
  2.2    (API level 8)
  2.3    (API level 10)
  3.1    (API level 12)
  3.2    (API level 13)
  4.0    (API level 14)
  4.0.3  (API level 15)
  4.1    (API level 16)
  4.2    (API level 17)
  4.3    (API level 18)
  4.4    (API level 19)
  4.4.87 (API level 20)
  4.5    (API level 21)
Java SDK: /usr
java version "1.7.0_60"
Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)

=== Xamarin.iOS ===

Version: 7.4.0.87 (Trial Edition)
Hash: 15e098c
Branch: 
Build date: 2014-08-04 08:20:20-0400

=== Xamarin.Mac ===

Version: 1.10.0.4 (Starter Edition)

=== Build Information ===

Release ID: 503000412
Git revision: 77e042831804079a649ee83092ed36c7c10773a2
Build date: 2014-08-01 06:32:22-04
Xamarin addins: 57e379e6a9454a1c0d97aa3f770e7ae7cc16c522

=== Operating System ===

Mac OS X 10.9.3
Darwin Xamarin76s-Mac-mini.local 13.2.0 Darwin Kernel Version 13.2.0
    Thu Apr 17 23:03:13 PDT 2014
    root:xnu-2422.100.13~1/RELEASE_X86_64 x86_64

Closing this Issue.
Comment 9 Greg Munn 2014-09-15 12:43:20 UTC
*** Bug 21012 has been marked as a duplicate of this bug. ***