I'm trying to create an IronPython WPF form on Visual Studio 2019. However, when I try using the XAML Designer to edit the text of my button, I get this error saying "System.ArgumentNullException Value cannot be null. Parameter name: source." It allows me to reload the designer, but then the error simply occurs again when I attempt to edit the text. You can find the full error and my .XAML file below.
Error:
System.ArgumentNullException
Value cannot be null.
Parameter name: source
at System.Linq.Enumerable.Contains[TSource](IEnumerable`1 source, TSource value, IEqualityComparer`1 comparer)
at System.Linq.Enumerable.Contains[TSource](IEnumerable`1 source, TSource value)
at Microsoft.PythonTools.XamlDesignerSupport.WpfEventBindingProvider.CreateUniqueMethodName(String objectName, EventDescription eventDescription)
at Microsoft.VisualStudio.DesignTools.XamlDesignerHost.Code.DesignerContextCodeContext.Microsoft.VisualStudio.DesignTools.DesignerContract.IHostCodeContext.CreateUniqueMethodName(String objectName, IHostCodeEvent codeEvent, Boolean shouldCapitalizeMethodName)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.RemoteHostCodeContext.<>c__DisplayClass17_0.<Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.IRemoteHostCodeContext.CreateUniqueMethodName>b__0()
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass48_0`1.<MarshalIn>b__0()
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()
System.ArgumentNullException
Value cannot be null.
Parameter name: source
Server stack trace:
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext, BlockingCall call, WaitHandle timeoutSignal)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.STAMarshaler.MarshalInSynchronous(Action action, Int32 targetApartmentId, CancellationToken cancelToken, CallModality callModality, String methodName, String filePath, Int32 lineNumber)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.STAMarshaler.MarshalIn(Action action, Int32 targetApartmentId, CancellationToken cancelToken, CallSynchronizationMode syncMode, CallModality callModality, String methodName, String filePath, Int32 lineNumber)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.ThreadMarshaler.MarshalIn(IRemoteObject targetObject, Action action, CallSynchronizationMode syncMode, CallModality callModality, ApartmentState apartmentState, String memberName, String filePath, Int32 lineNumber)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.ThreadMarshaler.MarshalIn[TResult](IRemoteObject targetObject, Func`1 func, CallModality callModality, ApartmentState apartmentState, String memberName, String filePath, Int32 lineNumber)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.RemoteHostCodeContext.Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.IRemoteHostCodeContext.CreateUniqueMethodName(String objectName, String eventName, RemoteHostParameter[] parameters, String returnType)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.IRemoteHostCodeContext.CreateUniqueMethodName(String objectName, String eventName, RemoteHostParameter[] parameters, String returnType)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.LocalHostCodeContext.<>c__DisplayClass18_0.<Microsoft.VisualStudio.DesignTools.DesignerContract.IHostCodeContext.CreateUniqueMethodName>b__0(IRemoteHostCodeContext cxt)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass32_0`2.<MarshalOut>b__0()
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()
System.ArgumentNullException
Value cannot be null.
Parameter name: source
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext, BlockingCall call, WaitHandle timeoutSignal)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.STAMarshaler.MarshalOutSynchronous(Action action, Int32 targetApartmentId, WaitHandle aborted, WaitHandle timeoutSignal, CancellationToken cancelToken, String methodName, String filePath, Int32 lineNumber)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.STAMarshaler.MarshalOut(Action action, Int32 targetApartmentId, WaitHandle aborted, CancellationToken cancelToken, CallSynchronizationMode syncMode, WaitHandle timeoutSignal, String methodName, String filePath, Int32 lineNumber)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.ThreadMarshaler.MarshalOut[TValue](RemoteHandle`1 targetObject, Action action, CallSynchronizationMode syncMode, ApartmentState apartmentState, String methodName, String filePath, Int32 lineNumber)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.ThreadMarshaler.MarshalOut[TResult,TValue](RemoteHandle`1 targetObject, Func`2 func, CallSynchronizationMode syncMode, ApartmentState apartmentState, String methodName, String filePath, Int32 lineNumber)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.LocalHostCodeContext.Microsoft.VisualStudio.DesignTools.DesignerContract.IHostCodeContext.CreateUniqueMethodName(String objectName, IHostCodeEvent codeEvent, Boolean shouldCapitalizeMethodName)
at Microsoft.VisualStudio.DesignTools.Designer.UI.PropertyInspector.CodeContext.CreateUniqueMethodName(ISourceItemContext item, String typeName, String objectName, IEvent eventKey)
at Microsoft.VisualStudio.DesignTools.Designer.UI.PropertyInspector.EventHandlerProvider.CreateUniqueMethodName(String objectName, IEvent eventKey)
at Microsoft.VisualStudio.DesignTools.Designer.UI.PropertyInspector.EventHandlerModel.GenerateMethodName()
at Microsoft.VisualStudio.DesignTools.Designer.UI.PropertyInspector.EventHandlerModel.GenerateAndCommit()
at Microsoft.VisualStudio.DesignTools.Designer.Tools.Selection.ElementEditorBehavior.ProcessDoubleClick(Boolean setDefaultHandler, SceneNode clickedElement)
at Microsoft.VisualStudio.DesignTools.XamlDesigner.Tools.XamlElementEditorBehavior.ProcessDoubleClick(Boolean setDefaultHandler, SceneNode clickedElement)
at Microsoft.VisualStudio.DesignTools.Designer.Tools.Selection.ElementEditorBehavior.OnClickEnd(Point pointerPosition, Int32 clickCount)
at Microsoft.VisualStudio.DesignTools.Designer.Tools.EventRouter.ScopeElement_MouseUp(Object sender, MouseButtonEventArgs args)
at System.Windows.Input.MouseButtonEventArgs.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.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run(Window window)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.DesignerProcess.RunApplication()
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.DesignerProcess.<>c__DisplayClass3_0.<Main>b__0()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
My XAML File:
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Closest Neighbor" Height="300" Width="300">
<Grid>
<TextBox HorizontalAlignment="Left" Height="23" Margin="85,102,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="120"/>
<Button Content="Button" HorizontalAlignment="Left" Margin="110,150,0,0" VerticalAlignment="Top" Width="75"/>
</Grid>
</Window>
You're missing the reference to the partial class associated with that window which is 'x:Class=[ClassName]' in the Window header.
<Window x:Class="MyClass"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Closest Neighbor" Height="300" Width="300">
<Grid>
<TextBox HorizontalAlignment="Left" Height="23" Margin="85,102,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="120"/>
<Button Content="Button" HorizontalAlignment="Left" Margin="110,150,0,0" VerticalAlignment="Top" Width="75"/>
</Grid>
I have an application in WPF The application closes periodically in client computer, in development it never happens. The following is the error in the windows event viewer
Fault bucket , type 0
Event Name: CLR20r3
Response: No disponible
Cab Id: 0
Problem signature:
P1: App.exe
P2: 1.0.0.0
P3: d2b32ca9
P4: mscorlib
P5: 4.7.3416.0
P6: 5cabfaa3
P7: 3ae2
P8: 0
P9: System.AccessViolationException
P10:
Any ideas, this error doesn't happen every day
Thanks
UPDATE
More info from event log Source .Net Runtime
Versión de Framework: v4.0.30319
Descripción: el proceso terminó debido a una excepción no controlada.
Información de la excepción: System.AccessViolationException
en System.Collections.Hashtable.GetHash(System.Object)
en System.Collections.Hashtable.InitHash(System.Object, Int32, UInt32 ByRef, UInt32 ByRef)
en System.Collections.Hashtable.ContainsKey(System.Object)
en System.Windows.Automation.Peers.AutomationPeer.UpdateChildrenInternal(Int32)
en System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
en System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
en System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
en System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
en System.Windows.ContextLayoutManager.fireAutomationEvents()
en System.Windows.ContextLayoutManager.UpdateLayout()
en System.Windows.ContextLayoutManager.UpdateLayoutCallback(System.Object)
en System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
en System.Windows.Media.MediaContext.RenderMessageHandlerCore(System.Object)
en System.Windows.Media.MediaContext.AnimatedRenderMessageHandler(System.Object)
en System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
en System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
en System.Windows.Threading.DispatcherOperation.InvokeImpl()
en MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(System.Object)
en System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
en System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
en System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
en MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object)
en System.Windows.Threading.DispatcherOperation.Invoke()
en System.Windows.Threading.Dispatcher.ProcessQueue()
en System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
en MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
en MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
en System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
en System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
en System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
en MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
en MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
en System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
en System.Windows.Application.RunDispatcher(System.Object)
en System.Windows.Application.RunInternal(System.Windows.Window)
en MyApp.App.Main()
Hi I am trying to UPDATE an access database with VB.net and am getting a Syntax Error. Everything else in my program works except this!
Error:
System.Data.OleDb.OleDbException was unhandled ErrorCode=-2147217900
HResult=-2147217900 Message=Syntax error in UPDATE statement.
Source=Microsoft Office Access Database Engine StackTrace: at
System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(OleDbHResult
hr) at
System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS
dbParams, Object& executeResult) at
System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object&
executeResult) at
System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior
behavior, Object& executeResult) at
System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior
behavior, String method) at
System.Data.OleDb.OleDbCommand.ExecuteNonQuery() at
WindowsApplication3.Form2.AddAddButton_Click(Object sender, EventArgs
e) in C:\Users\Andrew\Documents\Visual Studio
2013\Projects\WindowsApplication3\WindowsApplication3\Form2.vb:line 83
at System.Windows.Forms.Control.OnClick(EventArgs e) at
System.Windows.Forms.Button.OnClick(EventArgs e) at
System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at
System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks) at
System.Windows.Forms.Control.WndProc(Message& m) at
System.Windows.Forms.ButtonBase.WndProc(Message& m) at
System.Windows.Forms.Button.WndProc(Message& m) at
System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&
m) at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr
hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) at
System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at
System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr
dwComponentID, Int32 reason, Int32 pvLoopData) at
System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32
reason, ApplicationContext context) at
System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32
reason, ApplicationContext context) at
System.Windows.Forms.Application.Run(ApplicationContext context) at
Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
at
Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
at
Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[]
commandLine) at WindowsApplication3.My.MyApplication.Main(String[]
Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81 at
System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[]
args) at System.AppDomain.ExecuteAssembly(String assemblyFile,
Evidence assemblySecurity, String[] args) at
Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext
executionContext, ContextCallback callback, Object state, Boolean
preserveSyncCtx) at
System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state, Boolean
preserveSyncCtx) at
System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state) at
System.Threading.ThreadHelper.ThreadStart() InnerException:
Code:
Private Sub AddAddButton_Click(sender As Object, e As EventArgs) Handles AddAddButton.Click
Dim conn As New OleDb.OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\*****************************;Jet OLEDB:Database Password=*********;")
Dim insertsql As String
Try
insertsql = "UPDATE RepairOrders SET ROOther = #Other, ROJobType = #Type, SET ROJobTime = #Time, SET RODelPicDate = #DelPic WHERE RONo = #JobNo"
Dim cmd As OleDb.OleDbCommand = New OleDb.OleDbCommand(insertsql, conn)
cmd.Parameters.AddWithValue("#Other", AddOtherText.Text)
cmd.Parameters.AddWithValue("#Type", AddTypeCombo.SelectedValue)
If AddTimeCombo.Text = "AM" Then
cmd.Parameters.AddWithValue("#Time", Convert.ToInt32("1"))
Else
cmd.Parameters.AddWithValue("#Time", Convert.ToInt32("2"))
End If
cmd.Parameters.AddWithValue("#Time", Convert.ToInt32(AddTimeCombo.SelectedValue))
cmd.Parameters.AddWithValue("#DelPic", AddDatePick.Value.Date.ToString)
cmd.Parameters.AddWithValue("#JobNo", Convert.ToInt32(AddJobText.Text))
conn.Open()
cmd.ExecuteNonQuery()
MessageBox.Show("Booking Added!")
conn.Close()
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
I have hidden some sensitive information in the code. Please help me identify this issue. Thankyou :)
You have multiple SET in your query. Change it to
insertsql = "UPDATE RepairOrders SET ROOther = #Other,
ROJobType = #Type, ROJobTime = #Time, RODelPicDate = #DelPic WHERE RONo = #JobNo"
Can somebody explain what exception bellow means? It occurs when InitializeComponents is executed in my WPF user control constructor. I'm using .net4, in case it's version specific. I realy don't have a clue what should I search for.
Edit:
As you can see XAML code does nothing and exception occurs when I add xmlns:Converters="clr-namespace:ICSharpCode.ShortcutsManagement.Converters" or any other namespace from my project
XAML
<UserControl x:Class="ICSharpCode.ShortcutsManagement.Dialogs.ShortcutsManagementOptionsPanel"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:Converters="clr-namespace:ICSharpCode.ShortcutsManagement.Converters"
x:Name="_this">
<Grid>
</Grid>
</UserControl>
Code behind
namespace ICSharpCode.ShortcutsManagement.Dialogs
{
public partial class ShortcutsManagementOptionsPanel : UserControl, IOptionPanel
{
public ShortcutsManagementOptionsPanel()
{
InitializeComponent();
}
public void LoadOptions()
{
}
public bool SaveOptions()
{
return true;
}
public object Owner {
get; set;
}
public object Control {
get
{
return null;
}
}
}
}
Exception thrown:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Windows.Markup.XamlParseException: Cannot assign root instance of type 'ShortcutsManagementOptionsPanel' to type 'ShortcutsManagementOptionsPanel'. ---> System.Xaml.XamlParseException: Cannot assign root instance of type 'ShortcutsManagementOptionsPanel' to type 'ShortcutsManagementOptionsPanel'.
at System.Xaml.XamlObjectWriter.WriteStartObject(XamlType xamlType)
at System.Xaml.XamlWriter.WriteNode(XamlReader reader)
at System.Windows.Markup.XamlReader.WpfXamlLoader.LoadOneNode(XamlReader xamlReader, XamlObjectWriter xamlWriter, Boolean skipJournaledProperties, Boolean shouldPassLineNumberInfo, IXamlLineInfo xamlLineInfo, IXamlLineInfoConsumer xamlLineInfoConsumer, Stack`1 stack, IStyleConnector styleConnector)
at System.Windows.Markup.XamlReader.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings)
--- End of inner exception stack trace ---
at System.Windows.Markup.XamlReader.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings)
at System.Windows.Markup.XamlReader.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel)
at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
at ICSharpCode.ShortcutsManagement.Dialogs.ShortcutsManagementOptionsPanel.InitializeComponent() in c:\VSC\SharpDevelop40\SharpDevelop\src\AddIns\Misc\ShortcutsManagement\Src\Dialogs\ShortcutsManagementOptionsPanel.xaml:line 1
at ICSharpCode.ShortcutsManagement.Dialogs.ShortcutsManagementOptionsPanel..ctor() in c:\VSC\SharpDevelop40\SharpDevelop\src\AddIns\Misc\ShortcutsManagement\Src\Dialogs\ShortcutsManagementOptionsPanel.xaml.cs:line 30
--- End of inner exception stack trace ---
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)
at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at ICSharpCode.Core.AddIn.CreateObject(String className) in c:\VSC\SharpDevelop40\SharpDevelop\src\Main\Core\Project\Src\AddInTree\AddIn\AddIn.cs:line 34
at ICSharpCode.SharpDevelop.DefaultOptionPanelDescriptor.get_OptionPanel() in c:\VSC\SharpDevelop40\SharpDevelop\src\Main\Base\Project\Src\Internal\Doozers\DefaultOptionPanelDescriptor.cs:line 42
at ICSharpCode.SharpDevelop.Gui.TreeViewOptionsDialog.OptionPanelNode.get_Content() in c:\VSC\SharpDevelop40\SharpDevelop\src\Main\Base\Project\Src\Gui\Dialogs\TreeViewOptionsDialog.xaml.cs:line 121
at ICSharpCode.SharpDevelop.Gui.TreeViewOptionsDialog.SelectNode(OptionPanelNode node) in c:\VSC\SharpDevelop40\SharpDevelop\src\Main\Base\Project\Src\Gui\Dialogs\TreeViewOptionsDialog.xaml.cs:line 80
at ICSharpCode.SharpDevelop.Gui.TreeViewOptionsDialog.OptionPanelNode.set_IsSelected(Boolean value) in c:\VSC\SharpDevelop40\SharpDevelop\src\Main\Base\Project\Src\Gui\Dialogs\TreeViewOptionsDialog.xaml.cs:line 199
---- Recent log messages:
22:36:19.046 [9] DEBUG - SVN: SingleStatus.callback(C:\VSC\SharpDevelop40\SharpDevelop\src\AddIns\Misc\ShortcutsManagement\Src\Dialogs\ShortcutsTreeView.xaml.cs,Normal)
22:36:19.046 [9] DEBUG - SVN: SingleStatus(C:\VSC\SharpDevelop40\SharpDevelop\src\AddIns\Misc\ShortcutsManagement\Src\Extensions\TextBlockBehavior.cs)
22:36:19.046 [9] DEBUG - SVN: SingleStatus.callback(C:\VSC\SharpDevelop40\SharpDevelop\src\AddIns\Misc\ShortcutsManagement\Src\Extensions\TextBlockBehavior.cs,Normal)
22:36:19.046 [9] DEBUG - SVN: SingleStatus(C:\VSC\SharpDevelop40\SharpDevelop\src\AddIns\Misc\ShortcutsManagement\Src\Extensions\TreeViewExtensions.cs)
22:36:19.046 [9] DEBUG - SVN: SingleStatus.callback(C:\VSC\SharpDevelop40\SharpDevelop\src\AddIns\Misc\ShortcutsManagement\Src\Extensions\TreeViewExtensions.cs,Normal)
22:36:19.046 [9] DEBUG - SVN: SingleStatus(C:\VSC\SharpDevelop40\SharpDevelop\src\Main\Core\Project)
22:36:19.046 [9] DEBUG - SVN: SingleStatus.callback(C:\VSC\SharpDevelop40\SharpDevelop\src\Main\Core\Project,Normal)
22:36:19.046 [9] DEBUG - SVN: SingleStatus(C:\VSC\SharpDevelop40\SharpDevelop\src\Main\ICSharpCode.Core.Presentation)
22:36:19.062 [9] DEBUG - SVN: SingleStatus.callback(C:\VSC\SharpDevelop40\SharpDevelop\src\Main\ICSharpCode.Core.Presentation,Normal)
22:36:19.062 [9] DEBUG - SVN: SingleStatus(C:\VSC\SharpDevelop40\SharpDevelop\src\Main\ICSharpCode.Core.WinForms)
22:36:19.062 [9] DEBUG - SVN: SingleStatus.callback(C:\VSC\SharpDevelop40\SharpDevelop\src\Main\ICSharpCode.Core.WinForms,Normal)
22:36:19.062 [9] DEBUG - SVN: SingleStatus(C:\VSC\SharpDevelop40\SharpDevelop\src\Main\ICSharpCode.SharpDevelop.Dom\Project)
22:36:19.062 [9] DEBUG - SVN: SingleStatus.callback(C:\VSC\SharpDevelop40\SharpDevelop\src\Main\ICSharpCode.SharpDevelop.Dom\Project,Normal)
22:36:19.062 [9] DEBUG - SVN: SingleStatus(C:\VSC\SharpDevelop40\SharpDevelop\src\Main\ICSharpCode.SharpDevelop.Sda)
22:36:19.062 [9] DEBUG - SVN: SingleStatus.callback(C:\VSC\SharpDevelop40\SharpDevelop\src\Main\ICSharpCode.SharpDevelop.Sda,Normal)
22:36:19.062 [9] DEBUG - SVN: SingleStatus(C:\VSC\SharpDevelop40\SharpDevelop\src\Main\Base\Project)
22:36:19.062 [9] DEBUG - SVN: SingleStatus.callback(C:\VSC\SharpDevelop40\SharpDevelop\src\Main\Base\Project,Normal)
22:36:19.062 [9] DEBUG - SVN: SingleStatus(C:\VSC\SharpDevelop40\SharpDevelop\src\Main\ICSharpCode.SharpDevelop.Widgets\Project)
22:36:19.062 [9] DEBUG - SVN: SingleStatus.callback(C:\VSC\SharpDevelop40\SharpDevelop\src\Main\ICSharpCode.SharpDevelop.Widgets\Project,Normal)
22:36:19.062 [9] DEBUG - SVN: SingleStatus(C:\VSC\SharpDevelop40\SharpDevelop\src\Main\StartUp\Project)
22:36:19.062 [9] DEBUG - SVN: SingleStatus.callback(C:\VSC\SharpDevelop40\SharpDevelop\src\Main\StartUp\Project,Normal)
22:36:19.062 [9] DEBUG - SVN: OverlayIconManager Thread finished
22:36:19.171 [1] INFO - Loading addin ICSharpCode.ShortcutsManagement.exe
22:36:19.359 [1] ERROR -
--> Exception:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Windows.Markup.XamlParseException: Cannot assign root instance of type 'ShortcutsManagementOptionsPanel' to type 'ShortcutsManagementOptionsPanel'. ---> System.Xaml.XamlParseException: Cannot assign root instance of type 'ShortcutsManagementOptionsPanel' to type 'ShortcutsManagementOptionsPanel'.
at System.Xaml.XamlObjectWriter.WriteStartObject(XamlType xamlType)
at System.Xaml.XamlWriter.WriteNode(XamlReader reader)
at System.Windows.Markup.XamlReader.WpfXamlLoader.LoadOneNode(XamlReader xamlReader, XamlObjectWriter xamlWriter, Boolean skipJournaledProperties, Boolean shouldPassLineNumberInfo, IXamlLineInfo xamlLineInfo, IXamlLineInfoConsumer xamlLineInfoConsumer, Stack`1 stack, IStyleConnector styleConnector)
at System.Windows.Markup.XamlReader.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings)
--- End of inner exception stack trace ---
at System.Windows.Markup.XamlReader.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings)
at System.Windows.Markup.XamlReader.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel)
at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
at ICSharpCode.ShortcutsManagement.Dialogs.ShortcutsManagementOptionsPanel.InitializeComponent() in c:\VSC\SharpDevelop40\SharpDevelop\src\AddIns\Misc\ShortcutsManagement\Src\Dialogs\ShortcutsManagementOptionsPanel.xaml:line 1
at ICSharpCode.ShortcutsManagement.Dialogs.ShortcutsManagementOptionsPanel..ctor() in c:\VSC\SharpDevelop40\SharpDevelop\src\AddIns\Misc\ShortcutsManagement\Src\Dialogs\ShortcutsManagementOptionsPanel.xaml.cs:line 30
--- End of inner exception stack trace ---
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)
at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at ICSharpCode.Core.AddIn.CreateObject(String className) in c:\VSC\SharpDevelop40\SharpDevelop\src\Main\Core\Project\Src\AddInTree\AddIn\AddIn.cs:line 34
at ICSharpCode.SharpDevelop.DefaultOptionPanelDescriptor.get_OptionPanel() in c:\VSC\SharpDevelop40\SharpDevelop\src\Main\Base\Project\Src\Internal\Doozers\DefaultOptionPanelDescriptor.cs:line 42
at ICSharpCode.SharpDevelop.Gui.TreeViewOptionsDialog.OptionPanelNode.get_Content() in c:\VSC\SharpDevelop40\SharpDevelop\src\Main\Base\Project\Src\Gui\Dialogs\TreeViewOptionsDialog.xaml.cs:line 121
at ICSharpCode.SharpDevelop.Gui.TreeViewOptionsDialog.SelectNode(OptionPanelNode node) in c:\VSC\SharpDevelop40\SharpDevelop\src\Main\Base\Project\Src\Gui\Dialogs\TreeViewOptionsDialog.xaml.cs:line 80
at ICSharpCode.SharpDevelop.Gui.TreeViewOptionsDialog.OptionPanelNode.set_IsSelected(Boolean value) in c:\VSC\SharpDevelop40\SharpDevelop\src\Main\Base\Project\Src\Gui\Dialogs\TreeViewOptionsDialog.xaml.cs:line 199
22:36:19.562 [1] WARN - Stack trace of last error log:
at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at ICSharpCode.Core.MessageService.ShowError(Exception ex, String message) in c:\VSC\SharpDevelop40\SharpDevelop\src\Main\Core\Project\Src\Services\MessageService\MessageService.cs:line 72
at ICSharpCode.Core.MessageService.ShowError(Exception ex) in c:\VSC\SharpDevelop40\SharpDevelop\src\Main\Core\Project\Src\Services\MessageService\MessageService.cs:line 37
at ICSharpCode.SharpDevelop.Gui.TreeViewOptionsDialog.OptionPanelNode.set_IsSelected(Boolean value) in c:\VSC\SharpDevelop40\SharpDevelop\src\Main\Base\Project\Src\Gui\Dialogs\TreeViewOptionsDialog.xaml.cs:line 201
at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)
at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, Object[] index)
at MS.Internal.Data.PropertyPathWorker.SetValue(Object item, Object value)
at MS.Internal.Data.ClrBindingWorker.UpdateValue(Object value)
at System.Windows.Data.BindingExpression.UpdateSource(Object value)
at System.Windows.Data.BindingExpressionBase.UpdateValue()
at System.Windows.Data.BindingExpression.Update(Boolean synchronous)
at System.Windows.Data.BindingExpressionBase.Dirty()
at System.Windows.Data.BindingExpression.SetValue(DependencyObject d, DependencyProperty dp, Object value)
at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
at System.Windows.Controls.TreeView.ChangeSelection(Object data, TreeViewItem container, Boolean selected)
at System.Windows.Controls.TreeViewItem.Select(Boolean selected)
at System.Windows.Controls.TreeViewItem.OnGotFocus(RoutedEventArgs e)
at System.Windows.UIElement.IsFocused_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
at System.Windows.DependencyObject.SetValue(DependencyPropertyKey key, Object value)
at System.Windows.Input.FocusManager.OnFocusedElementChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
at System.Windows.Input.FocusManager.SetFocusedElement(DependencyObject element, IInputElement value)
at System.Windows.Input.KeyboardNavigation.UpdateFocusedElement(DependencyObject focusTarget)
at System.Windows.FrameworkElement.OnGotKeyboardFocus(Object sender, KeyboardFocusChangedEventArgs e)
at System.Windows.Input.KeyboardFocusChangedEventArgs.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 args, Boolean trusted)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
at System.Windows.Input.KeyboardDevice.ChangeFocus(DependencyObject focus, Int32 timestamp)
at System.Windows.Input.KeyboardDevice.TryChangeFocus(DependencyObject newFocus, IKeyboardInputProvider keyboardInputProvider, Boolean askOld, Boolean askNew, Boolean forceToNullIfFailed)
at System.Windows.Input.KeyboardDevice.Focus(DependencyObject focus, Boolean askOld, Boolean askNew)
at System.Windows.Input.KeyboardDevice.Focus(IInputElement element)
at System.Windows.UIElement.Focus()
at System.Windows.Controls.TreeViewItem.OnMouseLeftButtonDown(MouseButtonEventArgs e)
at System.Windows.UIElement.OnMouseLeftButtonDownThunk(Object sender, MouseButtonEventArgs e)
at System.Windows.Input.MouseButtonEventArgs.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.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
at System.Windows.UIElement.OnMouseDownThunk(Object sender, MouseButtonEventArgs e)
at System.Windows.Input.MouseButtonEventArgs.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 args, Boolean trusted)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Boolean isSingleParameter, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.NativeWindow.DefWndProc(Message& m)
at System.Windows.Forms.Integration.WindowsFormsHost.ActivateWindowListener.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Window.ShowHelper(Object booleanBox)
at System.Windows.Window.Show()
at System.Windows.Window.ShowDialog()
at ICSharpCode.SharpDevelop.Commands.OptionsCommand.ShowTreeOptions(String dialogTitle, AddInTreeNode node) in c:\VSC\SharpDevelop40\SharpDevelop\src\Main\Base\Project\Src\Commands\ToolsCommands.cs:line 54
at ICSharpCode.SharpDevelop.Commands.OptionsCommand.Run() in c:\VSC\SharpDevelop40\SharpDevelop\src\Main\Base\Project\Src\Commands\ToolsCommands.cs:line 59
at ICSharpCode.Core.Presentation.CommandWrapper.Execute(Object parameter) in c:\VSC\SharpDevelop40\SharpDevelop\src\Main\ICSharpCode.Core.Presentation\Menu\MenuCommand.cs:line 97
at ICSharpCode.Core.Presentation.CommandBindingInfo.GenerateExecutedEventHandler(Object sender, ExecutedRoutedEventArgs e) in c:\VSC\SharpDevelop40\SharpDevelop\src\Main\ICSharpCode.Core.Presentation\CommandsService\CommandBindingInfo.cs:line 364
at System.Windows.Input.CommandBinding.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
at System.Windows.Input.CommandManager.ExecuteCommandBinding(Object sender, ExecutedRoutedEventArgs e, CommandBinding commandBinding)
at System.Windows.Input.CommandManager.FindCommandBinding(CommandBindingCollection commandBindings, Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
at System.Windows.Input.CommandManager.FindCommandBinding(Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
at System.Windows.Input.CommandManager.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
at System.Windows.UIElement.OnExecutedThunk(Object sender, ExecutedRoutedEventArgs e)
at System.Windows.Input.ExecutedRoutedEventArgs.InvokeEventHandler(Delegate genericHandler, Object target)
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 args, Boolean trusted)
at System.Windows.Input.RoutedCommand.ExecuteImpl(Object parameter, IInputElement target, Boolean userInitiated)
at System.Windows.Input.RoutedCommand.ExecuteCore(Object parameter, IInputElement target, Boolean userInitiated)
at System.Windows.Input.CommandManager.TransferEvent(IInputElement newSource, ExecutedRoutedEventArgs e)
at System.Windows.Input.CommandManager.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
at System.Windows.UIElement.OnExecutedThunk(Object sender, ExecutedRoutedEventArgs e)
at System.Windows.Input.ExecutedRoutedEventArgs.InvokeEventHandler(Delegate genericHandler, Object target)
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 args, Boolean trusted)
at System.Windows.Input.RoutedCommand.ExecuteImpl(Object parameter, IInputElement target, Boolean userInitiated)
at System.Windows.Input.RoutedCommand.ExecuteCore(Object parameter, IInputElement target, Boolean userInitiated)
at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
at System.Windows.Controls.MenuItem.InvokeClickAfterRender(Object arg)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Boolean isSingleParameter, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Boolean isSingleParameter, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run(Window window)
at ICSharpCode.SharpDevelop.Commands.StartWorkbenchCommand.Run(IList`1 fileList) in c:\VSC\SharpDevelop40\SharpDevelop\src\Main\Base\Project\Src\Commands\AutostartCommands.cs:line 145
at ICSharpCode.SharpDevelop.Sda.CallHelper.RunWorkbenchInternal(Object settings) in c:\VSC\SharpDevelop40\SharpDevelop\src\Main\ICSharpCode.SharpDevelop.Sda\Src\CallHelper.cs:line 136
at ICSharpCode.SharpDevelop.Sda.CallHelper.RunWorkbench(WorkbenchSettings settings) in c:\VSC\SharpDevelop40\SharpDevelop\src\Main\ICSharpCode.SharpDevelop.Sda\Src\CallHelper.cs:line 114
at ICSharpCode.SharpDevelop.Sda.SharpDevelopHost.RunWorkbench(WorkbenchSettings settings) in c:\VSC\SharpDevelop40\SharpDevelop\src\Main\ICSharpCode.SharpDevelop.Sda\Src\SharpDevelopHost.cs:line 117
at ICSharpCode.SharpDevelop.SharpDevelopMain.RunApplication() in c:\VSC\SharpDevelop40\SharpDevelop\src\Main\StartUp\Project\SharpDevelopMain.cs:line 178
at ICSharpCode.SharpDevelop.SharpDevelopMain.Run() in c:\VSC\SharpDevelop40\SharpDevelop\src\Main\StartUp\Project\SharpDevelopMain.cs:line 108
at ICSharpCode.SharpDevelop.SharpDevelopMain.Main(String[] args) in c:\VSC\SharpDevelop40\SharpDevelop\src\Main\StartUp\Project\SharpDevelopMain.cs:line 58
---- Post-error application state information:
Installed 3rd party AddIns: [Workflow Foundation Designer, Enabled=True, Action=Enable], [ShortcutsManagement, Enabled=True, Action=Enable]
Workbench.ActiveContent: ICSharpCode.SharpDevelop.Gui.ErrorListPad
ProjectService.OpenSolution: [Solution: FileName=C:\VSC\SharpDevelop40\SharpDevelop\SharpDevelop.sln, HasProjects=True, ReadOnly=False]
ProjectService.CurrentProject: [CSharpProject: ICSharpCode.Core]
Without reading through all 2 thousand lines.
When you see System.Reflection.TargetInvocationException it means that a function that is being called from a delegate threw an exception.
It looks like you are assigning an invalid a root instance to the ShortcutsManagementOptionsPanel.
Cannot assign root instance of type 'ShortcutsManagementOptionsPanel' to type 'ShortcutsManagementOptionsPanel'.
In Visual Studio make sure to set Debug > Exceptions > Break on CLR exceptions "Thrown"
You will likely get a more meaningful exception this way.
-dk