Bug 6120 - System.InvalidCastException: Cannot cast from source type to destination type
Summary: System.InvalidCastException: Cannot cast from source type to destination type
Status: RESOLVED DUPLICATE of bug 1588
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: 3.0.x
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-07-13 18:32 UTC by Marek Safar
Modified: 2015-08-21 06:03 UTC (History)
2 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 1588

Description Marek Safar 2012-07-13 18:32:15 UTC
oading solution: /Developer/MonoTouch/Source/activation/client/XamarinActivation.sln
   Loading solution: /Developer/MonoTouch/Source/activation/client/XamarinActivation.sln
      Loading projects ..
ERROR [2012-07-13 23:08:54Z]: Error loading policy file 'Default.mdpolicy.xml' file '/Users/marek/Library/MonoDevelop-3.0/Policies/Default.mdpolicy.xml':
System.InvalidOperationException: Could not set property 'Text' in type 'StandardHeader' ---> System.InvalidCastException: Cannot cast from source type to destination type.
  at MonoDevelop.Core.Serialization.PrimitiveDataType.OnDeserialize (MonoDevelop.Core.Serialization.SerializationContext serCtx, System.Object mapData, MonoDevelop.Core.Serialization.DataNode data) [0x00000] in /Users/builder/data/lanes/monodevelop-mac-monodevelop-3.0.3-branch/43da787a/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Serialization/PrimitiveDataType.cs:55 
  at MonoDevelop.Core.Serialization.DataSerializer.OnDeserialize (MonoDevelop.Core.Serialization.DataType dataType, MonoDevelop.Core.Serialization.SerializationContext serCtx, System.Object mapData, MonoDevelop.Core.Serialization.DataNode data) [0x00000] in /Users/builder/data/lanes/monodevelop-mac-monodevelop-3.0.3-branch/43da787a/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Serialization/DataSerializer.cs:101 
  at MonoDevelop.Core.Serialization.DataType.Deserialize (MonoDevelop.Core.Serialization.SerializationContext serCtx, System.Object mapData, MonoDevelop.Core.Serialization.DataNode data) [0x00000] in /Users/builder/data/lanes/monodevelop-mac-monodevelop-3.0.3-branch/43da787a/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Serialization/DataType.cs:106 
  at MonoDevelop.Core.Serialization.ItemProperty.OnDeserialize (MonoDevelop.Core.Serialization.SerializationContext serCtx, MonoDevelop.Core.Serialization.DataNode data) [0x00000] in /Users/builder/data/lanes/monodevelop-mac-monodevelop-3.0.3-branch/43da787a/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Serialization/ItemProperty.cs:290 
  at MonoDevelop.Core.Serialization.DataSerializer.OnDeserializeProperty (MonoDevelop.Core.Serialization.ItemProperty prop, MonoDevelop.Core.Serialization.SerializationContext serCtx, System.Object instance, MonoDevelop.Core.Serialization.DataNode data) [0x00000] in /Users/builder/data/lanes/monodevelop-mac-monodevelop-3.0.3-branch/43da787a/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Serialization/DataSerializer.cs:121 
  at MonoDevelop.Core.Serialization.ItemProperty.Deserialize (MonoDevelop.Core.Serialization.SerializationContext serCtx, System.Object instance, MonoDevelop.Core.Serialization.DataNode data) [0x00000] in /Users/builder/data/lanes/monodevelop-mac-monodevelop-3.0.3-branch/43da787a/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Serialization/ItemProperty.cs:285 
  at MonoDevelop.Core.Serialization.ClassDataType.Deserialize (MonoDevelop.Core.Serialization.SerializationContext serCtx, System.Object obj, MonoDevelop.Core.Serialization.DataCollection itemData, MonoDevelop.Core.Serialization.DataItem ukwnDataRoot, System.String baseName) [0x001c1] in /Users/builder/data/lanes/monodevelop-mac-monodevelop-3.0.3-branch/43da787a/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Serialization/ClassDataType.cs:523
Comment 1 Lluis Sanchez 2015-08-21 06:03:19 UTC

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