vb.net syntax error in UPDATE statement. Code attached - database

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"

Related

"System.ArgumentNullException Value cannot be null. Parameter name: source" - Visual Studio IronPython WPF

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>

XAML Designer stopped working - BadImageFormatException

I am having the following exception in visual studio xaml designer when trying to open a xaml file.
System.BadImageFormatException
Index not found. (Exception from HRESULT: 0x80131124)
at Microsoft.MetadataReader.IMetadataAssemblyImport.GetAssemblyRefProps(Token token, EmbeddedBlobPointer& pPublicKey, Int32& cbPublicKey, StringBuilder szName, Int32 cchName, Int32& pchName, AssemblyMetaData& pMetaData, UnusedIntPtr& ppbHashValue, UInt32& pcbHashValue, AssemblyNameFlags& dwAssemblyRefFlags)
at Microsoft.MetadataReader.AssemblyNameHelper.AssemblyNameFromRefBuilder.Fetch()
at Microsoft.MetadataReader.AssemblyNameHelper.AssemblyNameBuilder.CalculateName()
at Microsoft.MetadataReader.AssemblyNameHelper.GetAssemblyNameFromRef(Token assemblyRefToken, MetadataOnlyModule module, IMetadataAssemblyImport assemblyImport)
at Microsoft.MetadataReader.MetadataOnlyAssembly.GetReferencedAssemblies()
at Microsoft.VisualStudio.DesignTools.Designer.Assemblies.AssemblyService.BuildCurrentReachableAssemblies(Assembly assembly, HashSet`1 reachableAssemblyNames, Assembly[] appDomainAssemblies)
at Microsoft.VisualStudio.DesignTools.Designer.Assemblies.AssemblyService.DetermineReachableImplicitAssemblyReferences(IEnumerable`1 referencedAssemblies)
at Microsoft.VisualStudio.DesignTools.Designer.Assemblies.ProjectAssemblyResolver.UpdateImplicitReferencesInternal(Boolean ensureMetadataLoaded)
at Microsoft.VisualStudio.DesignTools.Designer.Assemblies.ProjectAssemblyResolver.Initialize()
at Microsoft.VisualStudio.DesignTools.Designer.Assemblies.ProjectAssemblyService.GetProjectAssemblyResolver(IHostProject project)
at Microsoft.VisualStudio.DesignTools.Designer.Assemblies.ProjectAssemblyService.CreatePlatformReferenceAssemblyResolver(IHostProject project)
at Microsoft.VisualStudio.DesignTools.Designer.Project.ProjectContextManager.GetProjectContext(IHostProject project, IPlatform platform, Boolean create)
at Microsoft.VisualStudio.DesignTools.Designer.Project.ProjectContextManager.GetSourceItemContext(IHostSourceItem sourceItem)
at Microsoft.VisualStudio.DesignTools.Designer.DesignerService.CreateDesigner(IHostSourceItem item, IHostTextEditor editor, CancellationToken cancelToken)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.RemoteDesignerService.<>c__DisplayClass12_0.<Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.IRemoteDesignerService.CreateDesigner>b__0(CancellationToken cancelToken)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.RemoteDesignerService.<>c__DisplayClass6_0`1.<MarshalInWithCancellation>b__0()
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()
System.BadImageFormatException
Index not found. (Exception from HRESULT: 0x80131124)
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, CancellationToken cancelToken, CallSynchronizationMode syncMode, CallModality callModality, ApartmentState apartmentState, String memberName, String filePath, Int32 lineNumber)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.RemoteDesignerService.MarshalInWithCancellation[TResult](IRemoteCancellationToken remoteToken, Func`2 func, ApartmentState apartmentState)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.RemoteDesignerService.Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.IRemoteDesignerService.CreateDesigner(IRemoteHostProject remoteProject, IRemoteHostSourceItem remoteItem, IRemoteHostTextEditor remoteEditor, IRemoteCancellationToken remoteToken)
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.IRemoteDesignerService.CreateDesigner(IRemoteHostProject remoteProject, IRemoteHostSourceItem remoteItem, IRemoteHostTextEditor remoteEditor, IRemoteCancellationToken cancelToken)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.LocalDesignerService.CreateDesignerImpl(IRemoteDesignerService ds, IHostSourceItem item, IHostTextEditor editor, RemoteCancellationToken remoteCancelToken)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.LocalDesignerService.<>c__DisplayClass14_0.<Microsoft.VisualStudio.DesignTools.DesignerContract.IDesignerService.CreateDesigner>b__0(IRemoteDesignerService ds, RemoteCancellationToken remoteToken)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.LocalDesignerService.<>c__DisplayClass5_0`1.<MarshalOutWithCancellation>b__0(IRemoteDesignerService ds)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass29_0`1.<MarshalOut>b__0()
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()
System.BadImageFormatException
Index not found. (Exception from HRESULT: 0x80131124)
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, CancellationToken cancelToken, CallSynchronizationMode syncMode, ApartmentState apartmentState, String methodName, String filePath, Int32 lineNumber)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.ThreadMarshaler.MarshalOut[TValue](RemoteHandle`1 targetObject, Action`1 action, CancellationToken cancelToken, CallSynchronizationMode syncMode, ApartmentState apartmentState, String methodName, String filePath, Int32 lineNumber)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.LocalDesignerService.MarshalOutWithCancellation[TResult](CancellationToken cancelToken, Func`3 func, ApartmentState apartmentState)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.LocalDesignerService.Microsoft.VisualStudio.DesignTools.DesignerContract.IDesignerService.CreateDesigner(IHostSourceItem item, IHostTextEditor editor, CancellationToken cancelToken)
at Microsoft.VisualStudio.DesignTools.DesignerContract.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(CancellationToken cancelToken)
Iam not even able to open the xaml file in blend, the exception is the same.
The thing is that the application is buildable, it even runs with no problem. I checked and all the referenced assemblies are build either as MSIL or x86 -> iam building my wpf app in x86.
I also tried to debug the xdesproc but not moved further, just this exception.
Anyone could help with this? There is nothing I can build on to investigate further. I would really appreciate just a tiny hint on this.
Many thanks.

Import obj in Blend fails

When I try to import a obj 3D object in Blend for Visual Studio 2012 it fail with this message:
Application: Blend.exe
Frameworkversion: v4.0.30319
Description: The process exited caused by an unhandled exception
Exceptioninformationen: System.ArgumentException
Stack:
at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)
at System.IO.Path.Combine(String path1, String path2)
at Microsoft.Expression.DesignSurface.ViewModel.WavefrontObjDocumentElementCreator.WavefrontObjLoader.LoadObjFile(StreamReader streamReader, String rootPath, String filename)
at Microsoft.Expression.DesignSurface.ViewModel.WavefrontObjDocumentElementCreator.CreateElement(SceneViewModel viewModel, ISceneInsertionPoint insertionPoint, String url)
at Microsoft.Expression.DesignSurface.ViewModel.DocumentElementCreator.CreateInstance(ISceneInsertionPoint insertionPoint, Rect rect)
at Microsoft.Expression.DesignSurface.Tools.FileDropToolBehavior.AddToDocument(DocumentReference documentReference, Point dropPoint, ISceneInsertionPoint insertionPoint)
at Microsoft.Expression.DesignSurface.Tools.FileDropToolBehavior.OnDrop(DragEventArgs args)
at Microsoft.Expression.DesignSurface.Tools.EventRouter.ScopeElement_Drop(Object sender, DragEventArgs args)
at System.Windows.DragEventArgs.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 System.Windows.OleDropTarget.RaiseDragEvent(RoutedEvent dragEvent, Int32 dragDropKeyStates, Int32& effects, DependencyObject target, Point targetPoint)
at System.Windows.OleDropTarget.MS.Win32.UnsafeNativeMethods.IOleDropTarget.OleDrop(Object data, Int32 dragDropKeyStates, Int64 point, Int32& effects)
at MS.Win32.UnsafeNativeMethods.DoDragDrop(System.Runtime.InteropServices.ComTypes.IDataObject, IOleDropSource, Int32, Int32[])
at System.Windows.OleServicesContext.OleDoDragDrop(System.Runtime.InteropServices.ComTypes.IDataObject, IOleDropSource, Int32, Int32[])
at System.Windows.DragDrop.OleDoDragDrop(System.Windows.DependencyObject, System.Windows.DataObject, System.Windows.DragDropEffects)
at System.Windows.DragDrop.DoDragDrop(System.Windows.DependencyObject, System.Object, System.Windows.DragDropEffects)
at Microsoft.Expression.Project.UserInterface.SourceItemNode.OnDragBegin(Microsoft.Expression.Utility.Controls.DragBeginEventArgs)
at Microsoft.Expression.Utility.Controls.DragBeginHelper.TryBeginDragDrop(System.Windows.Point, System.Windows.UIElement)
at Microsoft.Expression.Utility.Controls.DragBeginHelper.DragSourceControl_MouseMove(System.Object, System.Windows.Input.MouseEventArgs)
at System.Windows.Input.MouseEventArgs.InvokeEventHandler(System.Delegate, System.Object)
at System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
at System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)
at System.Windows.UIElement.RaiseTrustedEvent(System.Windows.RoutedEventArgs)
at System.Windows.UIElement.RaiseEvent(System.Windows.RoutedEventArgs, Boolean)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(System.Windows.Input.InputEventArgs)
at System.Windows.Input.InputProviderSite.ReportInput(System.Windows.Input.InputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr, System.Windows.Input.InputMode, Int32, System.Windows.Input.RawMouseActions, Int32, Int32, Int32)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr, MS.Internal.Interop.WindowMessage, IntPtr, IntPtr, Boolean ByRef)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
at System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)
at System.Windows.Threading.Dispatcher.Run()
at System.Windows.Application.RunDispatcher(System.Object)
at System.Windows.Application.RunInternal(System.Windows.Window)
at System.Windows.Application.Run(System.Windows.Window)
at System.Windows.Application.Run()
at Microsoft.Expression.Framework.ExpressionApplication.RunApplication()
at Microsoft.Expression.Blend.BlendApplication.Start()
at Microsoft.Expression.Application.Main(System.String[])
Here u can download the project: http://sdrv.ms/1463KFl
http://www.codeproject.com/Articles/603954/Inserting-3D-Models-in-Expression-Blend
This is the solution for me :)

NotImplementedException in Silverlight and IronPython

i'm hosting IronPython Scripts in one Silverlight Application and i want to run the script and get one System.Windows.Controls.TextBlock object.
so i use this ironPython code:
import clr
clr.AddReferenceByName("System.Windows.Controls, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")
from System.Windows.Controls import *
tb = TextBlock()
i'm being able to add the reference, but, when i import System.Windows.Controls i get a System.NotImplementedException.
The same happens if i try with "import wpf"
i'm using Silverlight 4 and IronPython 2.7.1 beta2
and this is the code to run the script:
Dim engine = IronPython.Hosting.Python.CreateEngine
Dim scope = engine.CreateScope()
Dim source = engine.CreateScriptSourceFromString(CodeTB.Text)
source.Execute(scope)
ResultLB.Items.Add(scope.GetVariable("hello"))
If scope.ContainsVariable("tb") Then
GuiStack.Children.Add(scope.GetVariable("tb"))
End If
Here is the Stack Trace of the exception:
en Microsoft.Scripting.PlatformAdaptationLayer.FileExists(String path)
en IronPython.Runtime.Importer.LoadModuleFromSource(CodeContext context, String name, String path)
en IronPython.Runtime.Importer.LoadPackageFromSource(CodeContext context, String name, String path)
en IronPython.Runtime.Importer.LoadFromDisk(CodeContext context, String name, String fullName, String str)
en IronPython.Runtime.Importer.ImportFromPathHook(CodeContext context, String name, String fullName, List path, Func`5 defaultLoader)
en IronPython.Runtime.Importer.ImportFromPath(CodeContext context, String name, String fullName, List path)
en IronPython.Runtime.Importer.ImportTopAbsolute(CodeContext context, String name)
en IronPython.Runtime.Importer.ImportModule(CodeContext context, Object globals, String modName, Boolean bottom, Int32 level)
en IronPython.Modules.Builtin.__import__(CodeContext context, String name, Object globals, Object locals, Object fromlist, Int32 level)
en Microsoft.Scripting.Interpreter.FuncCallInstruction`7.Run(InterpretedFrame frame)
en Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
en Microsoft.Scripting.Interpreter.LightLambda.Run7[T0,T1,T2,T3,T4,T5,T6,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6)
en IronPython.Runtime.Importer.ImportLightThrow(CodeContext context, String fullName, PythonTuple from, Int32 level)
en IronPython.Runtime.Importer.Import(CodeContext context, String fullName, PythonTuple from, Int32 level)
en IronPython.Runtime.Operations.PythonOps.ImportStar(CodeContext context, String fullName, Int32 level)
en Microsoft.Scripting.Interpreter.ActionCallInstruction`3.Run(InterpretedFrame frame)
en Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
en Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1)
en IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx)
en IronPython.Compiler.PythonScriptCode.Run(Scope scope)
en IronPython.Compiler.RuntimeScriptCode.InvokeTarget(Scope scope)
en IronPython.Compiler.RuntimeScriptCode.Run(Scope scope)
en Microsoft.Scripting.SourceUnit.Execute(Scope scope, ErrorSink errorSink)
en Microsoft.Scripting.SourceUnit.Execute(Scope scope)
en Microsoft.Scripting.Hosting.ScriptSource.Execute(ScriptScope scope)
en TestApp2.MainPage.ExecuteButton_Click(Object sender, RoutedEventArgs e)
en System.Windows.Controls.Primitives.ButtonBase.OnClick()
en System.Windows.Controls.Button.OnClick()
en System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
en System.Windows.Controls.Control.OnMouseLeftButtonUp(Control ctrl, EventArgs e)
en MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)
And here is the all the source code
Thankyou for everything :)
It should work without any AddReference:
import clr
from System.Windows.Controls import TextBlock
tb = TextBlock()
Thank You, Lukas, the article was very helpful, now the problem is fixed.
Here's my new source code
Dim setup As ScriptRuntimeSetup = Python.CreateRuntimeSetup(Nothing)
setup.HostType = GetType(Microsoft.Scripting.Silverlight.BrowserScriptHost)
Dim runtime As New ScriptRuntime(setup)
Dim engine = IronPython.Hosting.Python.GetEngine(runtime)
Dim scope = engine.CreateScope()
Dim uri As New Uri("System.Windows.Controls.dll", UriKind.Relative)
Dim sri As StreamResourceInfo = Application.GetResourceStream(uri)
Dim ap As New AssemblyPart
Dim asm As Assembly = ap.Load(sri.Stream)
runtime.LoadAssembly(asm)
Dim assamblies As String() = {"mscorlib", "System", "System.Windows", "System.Windows.Browser", "System.Net"}
For Each item In assamblies
runtime.LoadAssembly(runtime.Host.PlatformAdaptationLayer.LoadAssembly(item))
Next
Dim source = engine.CreateScriptSourceFromString(CodeTB.Text, Microsoft.Scripting.SourceCodeKind.Statements)
source.Execute(scope)
ResultLB.Items.Add(scope.GetVariable("hello"))
If scope.ContainsVariable("tb") Then
GuiStack.Children.Add(scope.GetVariable("tb"))
End If

What do these exceptions mean?

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

Resources