SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

SD5 debugger - MissingMethodException Debugger.Value

Last post 11-07-2014 8:27 AM by bussard. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 11-04-2014 10:16 AM

    SD5 debugger - MissingMethodException Debugger.Value

    Recently updated from SD4.4 to SD5 to build and debug .NET MVC web applications.

    I debug by attaching the debugger to a "CassiniDEv4.exe" web server process.

    When the application hits a break point and stops, I cannot examine objects - neither by hovering, nor by defining an watch expression. The following exception is thrown:

    SharpDevelop Version : 5.0.0.4755-c848dc28
    .NET Version         : 4.5.50938
    OS Version           : Microsoft Windows NT 6.1.7601 Service Pack 1
    Current culture      : German (Austria) (de-AT)
    Current UI language  : en
    Running under WOW6432, processor architecture: x86-64
    Working Set Memory   : 468488kb
    GC Heap Memory       : 196992kb

    Unhandled WPF exception
    Exception thrown:
    System.MissingMethodException: Method not found: 'Debugger.Value Debugger.Eval.CreateValue(Debugger.Thread, System.Object, ICSharpCode.NRefactory.TypeSystem.IType)'.
       at Debugger.AddIn.ExpressionEvaluationVisitor.Convert(ResolveResult result)
       at ICSharpCode.SharpDevelop.Services.WindowsDebugger.<>c__DisplayClass19.<HandleToolTipRequest>b__17()
       at Debugger.AddIn.TreeModel.ValueNode.GetValueAndUpdateUI()
       at Debugger.AddIn.TreeModel.ValueNode..ctor(IImage image, String name, Func`1 getValue, Action`1 setValue)
       at ICSharpCode.SharpDevelop.Services.WindowsDebugger.HandleToolTipRequest(ToolTipRequestEventArgs e)
       at ICSharpCode.SharpDevelop.Debugging.DebuggerTextAreaToolTipProvider.HandleToolTipRequest(ToolTipRequestEventArgs e)
       at ICSharpCode.SharpDevelop.Editor.ToolTipRequestService.RequestToolTip(ToolTipRequestEventArgs e)
       at ICSharpCode.AvalonEdit.AddIn.CodeEditorView.TextEditorMouseHover(Object sender, MouseEventArgs e)
       at System.Windows.Input.MouseEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
       at ICSharpCode.AvalonEdit.Rendering.TextView.RaiseHoverEventPair(MouseEventArgs e, RoutedEvent tunnelingEvent, RoutedEvent bubblingEvent)
       at ICSharpCode.AvalonEdit.Rendering.TextView.<.ctor>b__0(Object sender, MouseEventArgs e)
       at ICSharpCode.AvalonEdit.Rendering.MouseHoverLogic.OnMouseHover(MouseEventArgs e)
       at ICSharpCode.AvalonEdit.Rendering.MouseHoverLogic.OnMouseHoverTimerElapsed(Object sender, EventArgs e)
       at System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

    ---- Recent log messages:
    09:42:48.202 [1] DEBUG - [AddInManager2] AddInsViewModelBase: Changed package source to SharpDevelop AddIn Repository
    09:42:52.262 [1] DEBUG - [AddInManager2] AddInsViewModelBase: Changed package source to SharpDevelop AddIn Repository
    09:42:52.262 [1] DEBUG - [AddInManager2] AddInsViewModelBase: Changed package source to SharpDevelop AddIn Repository
    09:42:52.337 [1] INFO - Number of screens: 2
    09:42:52.337 [1] INFO - Screen {X=0,Y=0,Width=1200,Height=1920}: Validating {X=304,Y=914,Width=640,Height=480}; intersection {X=304,Y=914,Width=640,Height=480}
    09:43:01.160 [1] DEBUG - [AddInManager2.Events] Operation started.
    09:43:01.160 [1] WARN - Codon (TextEditorOptions) specified in the insertbefore of the [Codon: name = OptionPanel, id = Debugging, addIn=C:\Program Files (x86)\SharpDevelop\5.0\bin\..\AddIns\Debugger\Debugger.AddIn.addin] codon does not exist!
    09:43:11.224 [1] DEBUG - Resolved (Line 488, Col 70) to
    09:43:13.956 [1] DEBUG - Resolved (Line 434, Col 83) to
    09:43:14.601 [13] DEBUG - Resolved (Line 434, Col 83) to
    09:43:16.723 [1] INFO - Saving layout file: C:\Users\UserName\AppData\Roaming\ICSharpCode\SharpDevelop5\layouts\Debug.xml
    09:43:16.728 [1] INFO - Loading layout file: C:\Users\UserName\AppData\Roaming\ICSharpCode\SharpDevelop5\layouts\Default.xml, hideAllLostPads=False
    09:43:17.117 [1] DEBUG - ChooseLayoutCommand.LayoutChanged(object,EventArgs)
    09:43:17.117 [1] DEBUG - ChooseLayoutCommand.Run()
    09:43:17.117 [1] INFO - Saving layout file: C:\Users\UserName\AppData\Roaming\ICSharpCode\SharpDevelop5\layouts\Default.xml
    09:43:20.666 [1] INFO - Saving layout file: C:\Users\UserName\AppData\Roaming\ICSharpCode\SharpDevelop5\layouts\Default.xml
    09:43:20.669 [1] INFO - Loading layout file: C:\Users\UserName\AppData\Roaming\ICSharpCode\SharpDevelop5\layouts\Debug.xml, hideAllLostPads=False
    09:43:21.063 [1] DEBUG - ChooseLayoutCommand.LayoutChanged(object,EventArgs)
    09:43:21.063 [1] DEBUG - ChooseLayoutCommand.Run()
    09:43:21.063 [1] INFO - Saving layout file: C:\Users\UserName\AppData\Roaming\ICSharpCode\SharpDevelop5\layouts\Debug.xml
    09:43:25.050 [25] DEBUG - Resolved (Line 467, Col 1) to [ResolveResult System.Void]
    09:43:31.519 [1] INFO - Open file e:\application\Controllers\ArticlesController.cs
    09:43:32.035 [24] DEBUG - Resolved (Line 466, Col 11) to
    09:43:35.101 [1] DEBUG - Resolved (Line 464, Col 18) to [LocalResolveResult System.Collections.Generic.IList`1[[ktnat.Data.HeaderImages]] images;]
    09:43:35.102 [1] ERROR - Unhandled WPF exception
    --> Exception:
    System.MissingMethodException: Method not found: 'Debugger.Value Debugger.Eval.CreateValue(Debugger.Thread, System.Object, ICSharpCode.NRefactory.TypeSystem.IType)'.
       at Debugger.AddIn.ExpressionEvaluationVisitor.Convert(ResolveResult result)
       at ICSharpCode.SharpDevelop.Services.WindowsDebugger.<>c__DisplayClass19.<HandleToolTipRequest>b__17()
       at Debugger.AddIn.TreeModel.ValueNode.GetValueAndUpdateUI()
       at Debugger.AddIn.TreeModel.ValueNode..ctor(IImage image, String name, Func`1 getValue, Action`1 setValue)
       at ICSharpCode.SharpDevelop.Services.WindowsDebugger.HandleToolTipRequest(ToolTipRequestEventArgs e)
       at ICSharpCode.SharpDevelop.Debugging.DebuggerTextAreaToolTipProvider.HandleToolTipRequest(ToolTipRequestEventArgs e)
       at ICSharpCode.SharpDevelop.Editor.ToolTipRequestService.RequestToolTip(ToolTipRequestEventArgs e)
       at ICSharpCode.AvalonEdit.AddIn.CodeEditorView.TextEditorMouseHover(Object sender, MouseEventArgs e)
       at System.Windows.Input.MouseEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
       at ICSharpCode.AvalonEdit.Rendering.TextView.RaiseHoverEventPair(MouseEventArgs e, RoutedEvent tunnelingEvent, RoutedEvent bubblingEvent)
       at ICSharpCode.AvalonEdit.Rendering.TextView.<.ctor>b__0(Object sender, MouseEventArgs e)
       at ICSharpCode.AvalonEdit.Rendering.MouseHoverLogic.OnMouseHover(MouseEventArgs e)
       at ICSharpCode.AvalonEdit.Rendering.MouseHoverLogic.OnMouseHoverTimerElapsed(Object sender, EventArgs e)
       at System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

    ---- Post-error application state information:
    Installed 3rd party AddIns:
    ProjectService.CurrentSolution: [Solution E:\application.sln with 11 projects]
    ProjectService.CurrentProject: [CSharpProject: ktnat]
    Workbench.ActiveContent: [AvalonEditViewContent E:\application\Controllers\ArticlesController.cs]

  • 11-06-2014 12:44 AM In reply to

    • Rpinski
    • Top 25 Contributor
    • Joined on 05-27-2012
    • Germany
    • Posts 99

    Re: SD5 debugger - MissingMethodException Debugger.Value

    Hi,

    How did you update SD from 4.4 to 5.0? Could you please check the version of following file:

    <Your_SharpDevelop_Program_Dir>\AddIns\Debugger\Debugger.Core.dll

    Looks to me like some DLLs do not fit together.

  • 11-06-2014 9:16 AM In reply to

    Re: SD5 debugger - MissingMethodException Debugger.Value

    I updated via installer - SharpDevelop_5.0.0.4755.msi

    Debugger.Core.dll says to be 5.0.0.0  (2014-08-31)

  • 11-07-2014 12:47 AM In reply to

    • Rpinski
    • Top 25 Contributor
    • Joined on 05-27-2012
    • Germany
    • Posts 99

    Re: SD5 debugger - MissingMethodException Debugger.Value

    That's strange... Did you also have an installed SD 5 RC before? Because it looks to me like your Debugger.Core.dll is from RC instead of final release. To prove that theory, could you please answer following questions:

    • What is the version information and date of Debugger.AddIn.dll (is in same folder as Debugger.Core.dll)?
    • Does it help to download XCopyable release of 5.0.0.4755 (here) and copy Debugger.Core.dll from there? Actually, in both XCopyable ZIP and installer package Debugger.Core.dll has a date of 2014-10-28.
    • Did you experience anything unusual during installer run?
  • 11-07-2014 8:18 AM In reply to

    Re: SD5 debugger - MissingMethodException Debugger.Value

    Yes, I had a release candidate installed before (I don't know which one, though...).

    • Debugger.AddIn.dll is version 5.0.0.4755, and in the same folder (AddIns\Debugger\) as the Debugger.Core.dll.
    • The install went through cleanly without any questions regarding conflicts or so.

    I will try your suggestion with the XCopyable release and give you feedback then!

    Thanks for digging into this!

  • 11-07-2014 8:27 AM In reply to

    (Solved) SD5 debugger - MissingMethodException Debugger.Value

    Copying the Debugger.Core.dll solved the problem!

    Thanks again for your time!

Page 1 of 1 (6 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.