Quantcast
Channel: SharpDevelop Community
Viewing all articles
Browse latest Browse all 1764

Exception while debugging

$
0
0

SharpDevelop Version : 5.0.0.4516-Beta 5-3e5b969d

.NET Version         : 4.0.30319.34209

OS Version           : Microsoft Windows NT 6.1.7601 Service Pack 1

Current culture      : Czech (Czech Republic) (cs-CZ)

Current UI language  : cz

Running under WOW6432, processor architecture: x86-64

Working Set Memory   : 217012kb

GC Heap Memory       : 62224kb

 

Steps to reproduce:

- in SD4 no problem occurs, I have tried SD5 (beta4 or beta5)

- create web service reference

- debug code (F11)

- at line with var ws = newwebservicename(); unhandled exception occurs during debugging

 

Exception thrown:

System.InvalidOperationException: Could not find class for token 33554453

   v Debugger.TypeSystemExtensions.Import(ICompilation compilation, ICorDebugFunction corFunction)

   v Debugger.TypeSystemExtensions.Import(ICompilation compilation, ICorDebugFunction corFunction, List`1 typeArgs)

   v Debugger.StackFrame..ctor(Thread thread, ICorDebugILFrame corILFrame, UInt32 chainIndex, UInt32 frameIndex)

   v Debugger.Thread.<get_Callstack>d__0.MoveNext()

   v Debugger.Thread.get_MostRecentStackFrame()

   v Debugger.ManagedCallback.StepComplete(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread, ICorDebugStepper pStepper, CorDebugStepReason reason)

   v Debugger.ManagedCallbackProxy.<>c__DisplayClass1.<StepComplete>b__0()

   v Debugger.MTA2STA.<>c__DisplayClass4.<EnqueueCall>b__1()

   v Debugger.MTA2STA.PerformCall()

   v Debugger.MTA2STA.PerformAllCalls()

   v System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)

   v System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)

   v System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   v System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   v System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

   v System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)

   v System.Windows.Forms.Control.InvokeMarshaledCallbacks()

 

---- Recent log messages:

12:43:56.229 [1] INFO - Loading layout file: C:\Users\CEHolyJ\AppData\Roaming\ICSharpCode\SharpDevelop5\layouts\Debug.xml, hideAllLostPads=False

12:43:56.339 [1] DEBUG - Creating pad ICSharpCode.SharpDevelop.Gui.Pads.CallStackPad...

12:43:56.359 [1] DEBUG - ChooseLayoutCommand.LayoutChanged(object,EventArgs)

12:43:56.359 [1] DEBUG - ChooseLayoutCommand.Run()

12:43:56.359 [1] INFO - Saving layout file: C:\Users\CEHolyJ\AppData\Roaming\ICSharpCode\SharpDevelop5\layouts\Debug.xml

12:43:57.098 [1] DEBUG - Resolved (Line 28, Col 32) to 

12:43:59.393 [1] INFO - Open file c:\Users\CEHolyJ\Documents\SharpDevelop Projects\slnWebServiceShell\slnWebServiceShell\Program.cs

12:44:00.061 [1] INFO - Debugger Command: StepInto

12:44:00.098 [1] INFO - Open file c:\Users\CEHolyJ\Documents\SharpDevelop Projects\slnWebServiceShell\slnWebServiceShell\Program.cs

12:44:00.327 [1] DEBUG - Resolved (Line 39, Col 43) to [CSharpInvocationResolveResult [Method cz.pns.zeshop.ZpxEshopIfStorageLocation(ZpxEshopIfStorageLocation1:cz.pns.ZpxEshopIfStorageLocation):cz.pns.ZpxEshopIfStorageLocationResponse]]

12:44:00.438 [1] WARN - System.InvalidOperationException: Method invocation not allowed in the current context!

   v Debugger.AddIn.ExpressionEvaluationVisitor.Visit(InvocationResolveResult result)

   v System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)

   v Debugger.AddIn.ExpressionEvaluationVisitor.Convert(ResolveResult result)

   v ICSharpCode.SharpDevelop.Services.WindowsDebugger.<>c__DisplayClass19.<HandleToolTipRequest>b__17()

   v Debugger.AddIn.TreeModel.ValueNode.GetValueAndUpdateUI()

   v Debugger.AddIn.TreeModel.ValueNode..ctor(IImage image, String name, Func`1 getValue, Action`1 setValue)

   v ICSharpCode.SharpDevelop.Services.WindowsDebugger.HandleToolTipRequest(ToolTipRequestEventArgs e)

12:44:00.473 [1] DEBUG - Resolved (Line 39, Col 43) to [CSharpInvocationResolveResult [Method cz.pns.zeshop.ZpxEshopIfStorageLocation(ZpxEshopIfStorageLocation1:cz.pns.ZpxEshopIfStorageLocation):cz.pns.ZpxEshopIfStorageLocationResponse]]

12:44:00.606 [1] INFO - Debugger Command: StepInto

12:44:00.634 [15] DEBUG - Resolved (Line 22, Col 4) to [TypeResolveResult cz.pns.zeshop]

12:44:06.097 [1] DEBUG - Resolved (Line 39, Col 45) to [CSharpInvocationResolveResult [Method cz.pns.zeshop.ZpxEshopIfStorageLocation(ZpxEshopIfStorageLocation1:cz.pns.ZpxEshopIfStorageLocation):cz.pns.ZpxEshopIfStorageLocationResponse]]

12:44:06.177 [5] DEBUG - Telling worker process to exit

12:44:06.177 [5] DEBUG - Waiting for thread-join

12:44:06.177 [14] DEBUG - Cannot read from WorkerProcess 4908: end of stream

12:44:06.177 [14] DEBUG - Stopped reading from WorkerProcess 4908.

12:44:06.177 [14] DEBUG - Telling worker process to exit

12:44:06.177 [14] DEBUG - End of reader thread on WorkerProcess 4908.

12:44:06.177 [5] DEBUG - Joined!

12:44:07.487 [1] DEBUG - Resolved (Line 22, Col 26) to 

12:44:10.776 [1] DEBUG - Resolved (Line 22, Col 26) to 

12:44:17.109 [1] ERROR - ThreadException caught

--> Exception:

System.InvalidOperationException: Could not find class for token 33554453

   v Debugger.TypeSystemExtensions.Import(ICompilation compilation, ICorDebugFunction corFunction)

   v Debugger.TypeSystemExtensions.Import(ICompilation compilation, ICorDebugFunction corFunction, List`1 typeArgs)

   v Debugger.StackFrame..ctor(Thread thread, ICorDebugILFrame corILFrame, UInt32 chainIndex, UInt32 frameIndex)

   v Debugger.Thread.<get_Callstack>d__0.MoveNext()

   v Debugger.Thread.get_MostRecentStackFrame()

   v Debugger.ManagedCallback.StepComplete(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread, ICorDebugStepper pStepper, CorDebugStepReason reason)

   v Debugger.ManagedCallbackProxy.<>c__DisplayClass1.<StepComplete>b__0()

   v Debugger.MTA2STA.<>c__DisplayClass4.<EnqueueCall>b__1()

   v Debugger.MTA2STA.PerformCall()

   v Debugger.MTA2STA.PerformAllCalls()

   v System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)

   v System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)

   v System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   v System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   v System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

   v System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)

   v System.Windows.Forms.Control.InvokeMarshaledCallbacks()

 

---- Post-error application state information:

Installed 3rd party AddIns: 

ProjectService.CurrentSolution: [Solution C:\Users\CEHolyJ\Documents\SharpDevelop Projects\slnWebServiceShell\slnWebServiceShell.sln with 1 projects]

ProjectService.CurrentProject: [CSharpProject: PnsWebServiceShell]

Workbench.ActiveContent: [AvalonEditViewContent C:\Users\CEHolyJ\Documents\SharpDevelop Projects\slnWebServiceShell\slnWebServiceShell\Program.cs]


Viewing all articles
Browse latest Browse all 1764

Trending Articles