Developping using SQL Server and SQLite
It happens sometimes after a while even a clean and a rebuild dose not fix it.
We don't understand what is causing this and the error message dose not give enough info to find where it is comming from
Happens especialy when we start having uncaught exceptions then start to debug that section of code
SharpDevelop Version : 5.1.0.5216-0e58df71
.NET Version : 4.5.50709
OS Version : Microsoft Windows NT 6.1.7601 Service Pack 1
Current culture : English (Canada) (en-CA)
Running under WOW6432, processor architecture: x86-64
Working Set Memory : 181712kb
GC Heap Memory : 52792kb
Exception thrown:
System.InvalidOperationException: Both arguments to IsDerivedFrom() must be from the same compilation.
at ICSharpCode.NRefactory.TypeSystem.TypeSystemExtensions.IsDerivedFrom(ITypeDefinition type, ITypeDefinition baseType)
at Debugger.Value.CheckObject(Value objectInstance, IMember memberInfo)
at Debugger.Value.GetFieldValue(Thread evalThread, Value objectInstance, IField fieldInfo)
at Debugger.Value.GetFieldValue(Thread evalThread, IField fieldInfo)
at Debugger.MetaData.LocalVariable.<>c__DisplayClass37_1.<AddCapturedLocalVariables>b__0(StackFrame context)
at Debugger.MetaData.LocalVariable.GetValue(StackFrame context)
at Debugger.AddIn.TreeModel.ValueNode.<>c__DisplayClass14_3.<GetLocalVariables>b__4()
at Debugger.AddIn.TreeModel.ValueNode.GetValueAndUpdateUI()
at Debugger.AddIn.TreeModel.ValueNode..ctor(IImage image, String name, Func`1 getValue, Action`1 setValue)
at Debugger.AddIn.TreeModel.ValueNode.<GetLocalVariables>d__14.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at ICSharpCode.SharpDevelop.Gui.Pads.LocalVarPad.RefreshPad()
at System.Action.Invoke()
at ICSharpCode.SharpDevelop.Services.WindowsDebugger.RefreshPads()
at ICSharpCode.SharpDevelop.Services.WindowsDebugger.<>c.<debugger_ProcessStarted>b__69_1(Object s, ModuleEventArgs e)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at Debugger.Process.OnModuleLoaded(Module module)
at Debugger.ManagedCallback.LoadModule(ICorDebugAppDomain pAppDomain, ICorDebugModule pModule)
at Debugger.ManagedCallbackSwitch.LoadModule(ICorDebugAppDomain pAppDomain, ICorDebugModule pModule)
at Debugger.ManagedCallbackProxy.<>c__DisplayClass15_0.<LoadModule>b__0()
at Debugger.MTA2STA.<>c__DisplayClass6_1.<EnqueueCall>b__0()
at Debugger.MTA2STA.PerformCall()
at Debugger.Process.WaitForPause(TimeSpan timeout)
at Debugger.Eval.WaitForResult()
at Debugger.Eval.InvokeMethod(Thread evalThread, IMethod method, Value thisValue, Value[ args)
at Debugger.Value.InvokeToString(Thread evalThread, Int32 maxLength)
at Debugger.AddIn.TreeModel.ValueNode.GetValueAndUpdateUI()
at Debugger.AddIn.TreeModel.ValueNode..ctor(IImage image, String name, Func`1 getValue, Action`1 setValue)
at Debugger.AddIn.TreeModel.ValueNode.<GetLocalVariables>d__14.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at ICSharpCode.SharpDevelop.Gui.Pads.LocalVarPad.RefreshPad()
at System.Action.Invoke()
at ICSharpCode.SharpDevelop.Services.WindowsDebugger.RefreshPads()
at ICSharpCode.SharpDevelop.Services.WindowsDebugger.debuggedProcess_DebuggingPaused(Object sender, DebuggerPausedEventArgs e)
at Debugger.Process.OnPaused(DebuggerPausedEventArgs e)
at Debugger.ManagedCallback.<>c__DisplayClass13_0.<ExitCallback>b__0()
at Debugger.MTA2STA.<>c__DisplayClass6_1.<EnqueueCall>b__0()
at Debugger.MTA2STA.PerformCall()
at Debugger.MTA2STA.PerformAllCalls()
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
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.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
---- Recent log messages:
16:05:39.934 [14] DEBUG - Received command ReportEvent
16:05:39.935 [14] DEBUG - Received command ReportEvent
16:05:39.935 [14] DEBUG - Received command ReportEvent
16:05:39.968 [14] DEBUG - Received command ReportEvent
16:05:39.969 [14] DEBUG - Received command ReportEvent
16:05:39.969 [14] DEBUG - Received command ReportEvent
16:05:39.970 [14] DEBUG - Received command ReportEvent
16:05:40.027 [14] DEBUG - Received command ReportEvent
16:05:40.028 [14] DEBUG - Received command ReportEvent
16:05:40.028 [14] DEBUG - Received command BuildDone
16:05:40.028 [14] INFO - Finished building WinPAKTransfer, success=True
16:05:40.028 [14] INFO - Start building
16:05:40.028 [7] INFO - Finished building , success=True
16:05:40.028 [1] INFO - Debugger Command: Start (withDebugger=True)
16:05:40.029 [1] INFO - Saving layout file: C:\Users\user\AppData\Roaming\ICSharpCode\SharpDevelop5\layouts\Default.xml
16:05:40.030 [1] INFO - Loading layout file: C:\Users\user\AppData\Roaming\ICSharpCode\SharpDevelop5\layouts\Debug.xml, hideAllLostPads=False
16:05:40.105 [1] DEBUG - ChooseLayoutCommand.LayoutChanged(object,EventArgs)
16:05:40.105 [1] DEBUG - ChooseLayoutCommand.Run()
16:05:40.105 [1] INFO - Saving layout file: C:\Users\user\AppData\Roaming\ICSharpCode\SharpDevelop5\layouts\Debug.xml
16:05:41.700 [1] INFO - Open file c:\Development\Bitbucket\winpaktransfer\WinpakTransfer\WinPAKTransfer.cs
16:05:41.731 [1] INFO - Evaluated node 'winpakCardList' in 2 ms
16:05:41.734 [1] INFO - Evaluated node 'localData' in 2 ms
16:05:41.737 [1] INFO - Evaluated node 'lastCard' in 2 ms
16:05:41.739 [1] INFO - Evaluated node 'winpakData' in 2 ms
16:05:41.815 [1] ERROR - ThreadException caught
--> Exception:
System.InvalidOperationException: Both arguments to IsDerivedFrom() must be from the same compilation.
at ICSharpCode.NRefactory.TypeSystem.TypeSystemExtensions.IsDerivedFrom(ITypeDefinition type, ITypeDefinition baseType)
at Debugger.Value.CheckObject(Value objectInstance, IMember memberInfo)
at Debugger.Value.GetFieldValue(Thread evalThread, Value objectInstance, IField fieldInfo)
at Debugger.Value.GetFieldValue(Thread evalThread, IField fieldInfo)
at Debugger.MetaData.LocalVariable.<>c__DisplayClass37_1.<AddCapturedLocalVariables>b__0(StackFrame context)
at Debugger.MetaData.LocalVariable.GetValue(StackFrame context)
at Debugger.AddIn.TreeModel.ValueNode.<>c__DisplayClass14_3.<GetLocalVariables>b__4()
at Debugger.AddIn.TreeModel.ValueNode.GetValueAndUpdateUI()
at Debugger.AddIn.TreeModel.ValueNode..ctor(IImage image, String name, Func`1 getValue, Action`1 setValue)
at Debugger.AddIn.TreeModel.ValueNode.<GetLocalVariables>d__14.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at ICSharpCode.SharpDevelop.Gui.Pads.LocalVarPad.RefreshPad()
at System.Action.Invoke()
at ICSharpCode.SharpDevelop.Services.WindowsDebugger.RefreshPads()
at ICSharpCode.SharpDevelop.Services.WindowsDebugger.<>c.<debugger_ProcessStarted>b__69_1(Object s, ModuleEventArgs e)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at Debugger.Process.OnModuleLoaded(Module module)
at Debugger.ManagedCallback.LoadModule(ICorDebugAppDomain pAppDomain, ICorDebugModule pModule)
at Debugger.ManagedCallbackSwitch.LoadModule(ICorDebugAppDomain pAppDomain, ICorDebugModule pModule)
at Debugger.ManagedCallbackProxy.<>c__DisplayClass15_0.<LoadModule>b__0()
at Debugger.MTA2STA.<>c__DisplayClass6_1.<EnqueueCall>b__0()
at Debugger.MTA2STA.PerformCall()
at Debugger.Process.WaitForPause(TimeSpan timeout)
at Debugger.Eval.WaitForResult()
at Debugger.Eval.InvokeMethod(Thread evalThread, IMethod method, Value thisValue, Value[ args)
at Debugger.Value.InvokeToString(Thread evalThread, Int32 maxLength)
at Debugger.AddIn.TreeModel.ValueNode.GetValueAndUpdateUI()
at Debugger.AddIn.TreeModel.ValueNode..ctor(IImage image, String name, Func`1 getValue, Action`1 setValue)
at Debugger.AddIn.TreeModel.ValueNode.<GetLocalVariables>d__14.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at ICSharpCode.SharpDevelop.Gui.Pads.LocalVarPad.RefreshPad()
at System.Action.Invoke()
at ICSharpCode.SharpDevelop.Services.WindowsDebugger.RefreshPads()
at ICSharpCode.SharpDevelop.Services.WindowsDebugger.debuggedProcess_DebuggingPaused(Object sender, DebuggerPausedEventArgs e)
at Debugger.Process.OnPaused(DebuggerPausedEventArgs e)
at Debugger.ManagedCallback.<>c__DisplayClass13_0.<ExitCallback>b__0()
at Debugger.MTA2STA.<>c__DisplayClass6_1.<EnqueueCall>b__0()
at Debugger.MTA2STA.PerformCall()
at Debugger.MTA2STA.PerformAllCalls()
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
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.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
---- Post-error application state information:
Installed 3rd party AddIns:
ProjectService.CurrentSolution: [Solution C:\Development\Bitbucket\winpaktransfer\WinpakTransfer.sln with 3 projects]
ProjectService.CurrentProject: [CSharpProject: WinPAKTransfer]
Workbench.ActiveContent: [AvalonEditViewContent c:\Development\Bitbucket\winpaktransfer\WinpakTransfer\WinPAKTransfer.cs]