Hello,
I was editing a xaml file in SD5 Beta5 when I got an exception.
Action:
Opened SharpDevelopCompletionWindow.xaml from SD solution, added a attribute to the root tag (<cc:CompletionWindow), marked an deleted it after running the solution.
Exception:
SharpDevelop Version : 5.0.0.4516-Beta 5-3e5b969d
.NET Version : 4.0.30319.18449
OS Version : Microsoft Windows NT 6.2.9200.0
Current culture : Invariant Language (Invariant Country) ()
Current UI language : de
Running under WOW6432, processor architecture: x86-64
Working Set Memory : 805364kb
GC Heap Memory : 430607kb
Unhandled WPF exception
Exception thrown:
System.Windows.Markup.XamlParseException: Durch das Festlegen von connectionId wurde eine Ausnahme ausgelöst. ---> System.InvalidCastException: [A]ICSharpCode.AvalonEdit.TextEditor kann nicht in [B]ICSharpCode.AvalonEdit.TextEditor umgewandelt werden. Der Typ "A" stammt von der "ICSharpCode.AvalonEdit, Version=5.0.1.0, Culture=neutral, PublicKeyToken=d4bfe873e7598c49" im Kontext "LoadNeither" in einem Bytearray.. Der Typ "B" stammt von der "ICSharpCode.AvalonEdit, Version=5.0.1.0, Culture=neutral, PublicKeyToken=d4bfe873e7598c49" im Kontext "Default" am Speicherort "C:\Program Files (x86)\SharpDevelop\5.0\bin\ICSharpCode.AvalonEdit.dll"..
bei ICSharpCode.AvalonEdit.AddIn.DiffControl.System.Windows.Markup.IComponentConnector.Connect(Int32 connectionId, Object target)
bei MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetConnectionId(Object root, Int32 connectionId, Object instance)
--- Ende der internen Ausnahmestapelüberwachung ---
bei System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
bei System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
bei System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
bei System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
bei ICSharpCode.AvalonEdit.AddIn.DiffControl.InitializeComponent()
bei ICSharpCode.AvalonEdit.AddIn.DiffControl..ctor()
bei ICSharpCode.AvalonEdit.AddIn.ChangeMarkerMargin.DisplayTooltip(MouseEventArgs e)
bei ICSharpCode.AvalonEdit.AddIn.ChangeMarkerMargin.<.ctor>b__1(Object sender, MouseEventArgs e)
bei ICSharpCode.AvalonEdit.Rendering.MouseHoverLogic.OnMouseHover(MouseEventArgs e)
bei ICSharpCode.AvalonEdit.Rendering.MouseHoverLogic.OnMouseHoverTimerElapsed(Object sender, EventArgs e)
bei System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
bei MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
---- Recent log messages:
01:39:45.958 [1] DEBUG - ActiveViewContentChanged to [AvalonEditViewContent C:\Users\A\Documents\GitHub\SharpDevelop\src\AddIns\DisplayBindings\AvalonEdit.AddIn\Src\SharpDevelopCompletionWindow.xaml]
01:39:48.705 [1] INFO - Debugger Command: Stop
01:39:48.760 [1] INFO - Saving layout file: C:\Users\A\AppData\Roaming\ICSharpCode\SharpDevelop5\layouts\Debug.xml
01:39:48.761 [1] INFO - Loading layout file: C:\Users\A\AppData\Roaming\ICSharpCode\SharpDevelop5\layouts\Default.xml, hideAllLostPads=False
01:39:48.953 [1] DEBUG - Creating text for search result (341, 37)
01:39:49.102 [1] DEBUG - ChooseLayoutCommand.LayoutChanged(object,EventArgs)
01:39:49.102 [1] DEBUG - ChooseLayoutCommand.Run()
01:39:49.103 [1] INFO - Saving layout file: C:\Users\A\AppData\Roaming\ICSharpCode\SharpDevelop5\layouts\Default.xml
01:39:49.104 [1] DEBUG - [Task:File=C:\Users\A\Documents\GitHub\SharpDevelop\src\AddIns\BackendBindings\CSharpBinding\Project\Src\OutlinePad\CSharpOutlineContentHost.xaml.cs, Line=88, Column=5, Type=Warning, Description=Unreachable code detected (CS0162)
01:39:49.104 [1] DEBUG - [Task:File=C:\Users\A\Documents\GitHub\SharpDevelop\src\AddIns\BackendBindings\CSharpBinding\Project\Src\OutlinePad\CSharpOutlineContentHost.xaml.cs, Line=313, Column=5, Type=Warning, Description=Unreachable code detected (CS0162)
01:39:49.104 [1] DEBUG - [Task:File=C:\Users\A\Documents\GitHub\SharpDevelop\src\AddIns\BackendBindings\CSharpBinding\Project\Src\OutlinePad\CSharpOutlineContentHost.xaml.cs, Line=88, Column=5, Type=Warning, Description=Unreachable code detected (CS0162)
01:39:49.104 [1] DEBUG - [Task:File=C:\Users\A\Documents\GitHub\SharpDevelop\src\AddIns\BackendBindings\CSharpBinding\Project\Src\OutlinePad\CSharpOutlineContentHost.xaml.cs, Line=313, Column=5, Type=Warning, Description=Unreachable code detected (CS0162)
01:39:49.286 [1] DEBUG - Creating text for search result (136, 34)
01:39:49.288 [1] DEBUG - Creating text for search result (104, 22)
01:39:49.289 [1] DEBUG - Creating text for search result (75, 10)
01:39:49.291 [1] DEBUG - Creating text for search result (73, 21)
01:39:49.293 [1] DEBUG - Creating text for search result (63, 86)
01:39:49.294 [1] DEBUG - Creating text for search result (62, 56)
01:39:49.296 [1] DEBUG - Creating text for search result (57, 86)
01:39:49.298 [1] DEBUG - Creating text for search result (375, 29)
01:39:49.299 [1] DEBUG - Creating text for search result (376, 29)
01:39:49.301 [1] DEBUG - Creating text for search result (385, 49)
01:39:49.303 [1] DEBUG - Creating text for search result (386, 60)
01:39:49.304 [1] DEBUG - Creating text for search result (31, 38)
01:39:52.419 [1] ERROR - Unhandled WPF exception
--> Exception:
System.Windows.Markup.XamlParseException: Durch das Festlegen von connectionId wurde eine Ausnahme ausgelöst. ---> System.InvalidCastException: [A]ICSharpCode.AvalonEdit.TextEditor kann nicht in [B]ICSharpCode.AvalonEdit.TextEditor umgewandelt werden. Der Typ "A" stammt von der "ICSharpCode.AvalonEdit, Version=5.0.1.0, Culture=neutral, PublicKeyToken=d4bfe873e7598c49" im Kontext "LoadNeither" in einem Bytearray.. Der Typ "B" stammt von der "ICSharpCode.AvalonEdit, Version=5.0.1.0, Culture=neutral, PublicKeyToken=d4bfe873e7598c49" im Kontext "Default" am Speicherort "C:\Program Files (x86)\SharpDevelop\5.0\bin\ICSharpCode.AvalonEdit.dll"..
bei ICSharpCode.AvalonEdit.AddIn.DiffControl.System.Windows.Markup.IComponentConnector.Connect(Int32 connectionId, Object target)
bei MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetConnectionId(Object root, Int32 connectionId, Object instance)
--- Ende der internen Ausnahmestapelüberwachung ---
bei System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
bei System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
bei System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
bei System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
bei ICSharpCode.AvalonEdit.AddIn.DiffControl.InitializeComponent()
bei ICSharpCode.AvalonEdit.AddIn.DiffControl..ctor()
bei ICSharpCode.AvalonEdit.AddIn.ChangeMarkerMargin.DisplayTooltip(MouseEventArgs e)
bei ICSharpCode.AvalonEdit.AddIn.ChangeMarkerMargin.<.ctor>b__1(Object sender, MouseEventArgs e)
bei ICSharpCode.AvalonEdit.Rendering.MouseHoverLogic.OnMouseHover(MouseEventArgs e)
bei ICSharpCode.AvalonEdit.Rendering.MouseHoverLogic.OnMouseHoverTimerElapsed(Object sender, EventArgs e)
bei System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
bei MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
---- Post-error application state information:
Installed 3rd party AddIns: [ThemeTool 0.0.0.0, Enabled=False, Action=Disable]
ProjectService.CurrentSolution: [Solution C:\Users\A\Documents\GitHub\SharpDevelop\SharpDevelop.sln with 77 projects]
ProjectService.CurrentProject: [CSharpProject: AvalonEdit.AddIn]
Workbench.ActiveContent: [AvalonEditViewContent C:\Users\A\Documents\GitHub\SharpDevelop\src\AddIns\DisplayBindings\AvalonEdit.AddIn\Src\SharpDevelopCompletionWindow.xaml]