Bug 2500 - Exception when opening .sln
Summary: Exception when opening .sln
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: 2.9.x
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2011-12-14 12:25 UTC by Clay Fowler
Modified: 2011-12-15 02:01 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 Clay Fowler 2011-12-14 12:25:53 UTC
When first opening a solution sometimes on 2.9.1:

System.InvalidCastException: Cannot cast from source type to destination type.
  at MonoDevelop.CSharp.CSharpAmbience.GetTypeReferenceString (IType reference, MonoDevelop.TypeSystem.OutputSettings settings) [0x0001a] in /private/tmp/source/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp/CSharpAmbience.cs:352 
  at MonoDevelop.CSharp.CSharpAmbience.GetParameterString (IParameterizedMember member, IParameter parameter, MonoDevelop.TypeSystem.OutputSettings settings) [0x000f6] in /private/tmp/source/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp/CSharpAmbience.cs:702 
  at MonoDevelop.CSharp.CSharpAmbience.AppendParameter (MonoDevelop.TypeSystem.OutputSettings settings, System.Text.StringBuilder result, IParameter parameter) [0x0009e] in /private/tmp/source/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp/CSharpAmbience.cs:745 
  at MonoDevelop.CSharp.CSharpAmbience.AppendParameterList (System.Text.StringBuilder result, MonoDevelop.TypeSystem.OutputSettings settings, IEnumerable`1 parameterList) [0x00034] in /private/tmp/source/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp/CSharpAmbience.cs:726 
  at MonoDevelop.CSharp.CSharpAmbience.InternalGetMethodString (IMethod method, MonoDevelop.TypeSystem.OutputSettings settings, System.String methodName, Boolean getReturnType) [0x0017f] in /private/tmp/source/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp/CSharpAmbience.cs:530 
  at MonoDevelop.CSharp.CSharpAmbience.GetMethodString (IMethod method, MonoDevelop.TypeSystem.OutputSettings settings) [0x00000] in /private/tmp/source/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp/CSharpAmbience.cs:546 
  at MonoDevelop.TypeSystem.Ambience.GetString (IEntity entity, MonoDevelop.TypeSystem.OutputSettings settings) [0x000e0] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.TypeSystem/Ambience.cs:126 
  at MonoDevelop.TypeSystem.Ambience.GetString (IEntity entity, OutputFlags flags) [0x00000] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.TypeSystem/Ambience.cs:158 
  at MonoDevelop.CSharp.PathedDocumentTextEditorExtension.UpdatePath (System.Object sender, Mono.TextEditor.DocumentLocationEventArgs e) [0x00160] in /private/tmp/source/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp/PathedDocumentTextEditorExtension.cs:270 
  at (wrapper delegate-invoke) <Module>:invoke_void__this___object_DocumentLocationEventArgs (object,Mono.TextEditor.DocumentLocationEventArgs)
  at (wrapper delegate-invoke) <Module>:invoke_void__this___object_DocumentLocationEventArgs (object,Mono.TextEditor.DocumentLocationEventArgs)
  at (wrapper delegate-invoke) <Module>:invoke_void__this___object_DocumentLocationEventArgs (object,Mono.TextEditor.DocumentLocationEventArgs)
  at Mono.TextEditor.Caret.OnPositionChanged (Mono.TextEditor.DocumentLocationEventArgs args) [0x00021] in /private/tmp/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Caret.cs:266 
  at Mono.TextEditor.Caret.set_AutoScrollToCaret (Boolean value) [0x0001e] in /private/tmp/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Caret.cs:144 
  at Mono.TextEditor.TextEditor+SetCaret.Run (System.Object sender, System.EventArgs e) [0x000cd] in /private/tmp/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/TextEditor.cs:2804 
  at Mono.TextEditor.TextEditor.SetCaretTo (Int32 line, Int32 column, Boolean highlight) [0x00050] in /private/tmp/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/TextEditor.cs:2829 
  at MonoDevelop.SourceEditor.SourceEditorView+<SetCaretTo>c__AnonStoreyB.<>m__42 () [0x00000] in /private/tmp/source/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs:1114 
  at Mono.TextEditor.Document.RunWhenLoaded (System.Action action) [0x0000b] in /private/tmp/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Document.cs:1663 
  at MonoDevelop.SourceEditor.SourceEditorView.SetCaretTo (Int32 line, Int32 column, Boolean highlight) [0x00022] in /private/tmp/source/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs:1114 
  at MonoDevelop.Ide.Gui.LoadFileWrapper.JumpToLine () [0x0000c] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs:1092 
  at MonoDevelop.Ide.Gui.LoadFileWrapper.Invoke (System.String fileName) [0x00250] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs:1085 
  at MonoDevelop.Ide.Gui.Workbench.RealOpenFile (MonoDevelop.Ide.Gui.FileOpenInformation openFileInfo) [0x00387] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs:754
Comment 1 Sebastien Pouliot 2011-12-14 13:30:07 UTC
-> monodevelop
Comment 2 Mike Krüger 2011-12-15 02:01:53 UTC
already fixed.