Bug 19850 - Exception in Xamarin.iOS 7.2.2.2 (Cannot cast from source type to destination type)
Summary: Exception in Xamarin.iOS 7.2.2.2 (Cannot cast from source type to destination...
Status: RESOLVED DUPLICATE of bug 18944
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: 7.2.2
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-05-16 09:45 UTC by George Danila
Modified: 2014-05-19 04:20 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 DUPLICATE of bug 18944

Description George Danila 2014-05-16 09:45:56 UTC
Since updating from Xamarin.iOS version 7.2.0.2 to 7.2.2.2 we've been experiencing the following exception with our app:

Cannot cast from source type to destination type
at System.Net.WebConnectionStream.WriteRequestAsyncCB (IAsyncResult ar) [0x0007] in /Developer/Monotouch/Source/mono/mcs/class/System/System.Net/WebConnectionStream.cs:721
at System.Net.WebAsyncResult.CB (System.Object unused) [0x00000] in /Developer/MonoTouch/Source/mono/mcs/class/System/System.Bet/WebAsyncResult.cs:151

This happens during a synchronisation process (sequential web service calls on a separate thread than the UI thread) or while doing web service calls at random.

We're trying to downgrade to version 7.2.0.2 as a workaround but this issue needs to be addressed.
Comment 1 narayanp 2014-05-19 02:25:34 UTC
I have tried to reproduce this issue with some applications which requires web services and using System.Net but I am not getting this type of error or exception.

Mac Lion 
X.S 4.2.5(Build 0)
X.iOS 7.2.2.2

@George, Could you please provide project for which you are getting this issue? also please provide iOS device log from View->Pads->iOS Device Log and Symbolicated log(Device log) from Xcode organizer.
Comment 2 Rolf Bjarne Kvinge [MSFT] 2014-05-19 04:20:58 UTC
This is a duplicate of #18944.

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