Bug 41890 - Remote debug error:“MonoDevelop.AspNet.Execution.AspNetExecutionCommand”的对象强制转换为类型“MonoDevelop.Core.Execution.DotNetExecutionCommand”
Summary: Remote debug error:“MonoDevelop.AspNet.Execution.AspNetExecutionCommand”的对象强制...
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: ASP.Net ()
Version: 6.0.0 (C7)
Hardware: PC Windows
: Normal normal
Target Milestone: master
Assignee: Bugzilla
Depends on:
Reported: 2016-06-16 12:26 UTC by lijianning
Modified: 2016-06-17 09:45 UTC (History)
2 users (show)

Is this bug a regression?: No
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 41890 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description lijianning 2016-06-16 12:26:47 UTC
run command:
mono --debug --debugger-agent=transport=dt_socket,address=,server=y,suspend=
y "C:\Program Files (x86)\Mono\lib\mono\4.5\xsp4.exe"

run->run with->Custom Command Mono Soft Debugger->connection

System.InvalidCastException: 无法将类型为“MonoDevelop.AspNet.Execution.AspNetExecutionCommand”的对象强制转换为类型“MonoDevelop.Core.Execution.DotNetExecutionCommand”。
   在 MonoDevelop.Debugger.Soft.CustomSoftDebuggerEngine.CreateDebuggerStartInfo(ExecutionCommand c) 位置 C:\Users\builder\data\lanes\3343\694a75f0\source\monodevelop\main\src\addins\MonoDevelop.Debugger.Soft\MonoDevelop.Debugger.Soft\CustomSoftDebuggerEngine.cs:行号 66
   在 MonoDevelop.Debugger.DebuggingService.InternalRun(ExecutionCommand cmd, DebuggerEngine factory, OperationConsole c) 位置 C:\Users\builder\data\lanes\3343\694a75f0\source\monodevelop\main\src\addins\MonoDevelop.Debugger\MonoDevelop.Debugger\DebuggingService.cs:行号 635
   在 MonoDevelop.Debugger.InternalDebugExecutionHandler.Execute(ExecutionCommand command, OperationConsole console) 位置 C:\Users\builder\data\lanes\3343\694a75f0\source\monodevelop\main\src\addins\MonoDevelop.Debugger\MonoDevelop.Debugger\DebuggingService.cs:行号 1150
   在 MonoDevelop.AspNet.Projects.AspNetAppProjectFlavor.<OnExecute>d__17.MoveNext() 位置 C:\Users\builder\data\lanes\3343\694a75f0\source\monodevelop\main\src\addins\AspNet\Projects\AspNetAppProjectFlavor.cs:行号 213
Comment 1 Matt Ward 2016-06-17 09:45:52 UTC
This can also be reproduced in Xamarin Studio 5.10. It looks like an ASP.NET project does not support being used with the soft debugger. ASP.NET itself has its own soft debugger which you can use as an alternative.

To get the custom command Mono soft debugger menu available in the Run With menu you need to have the MONODEVELOP_SDB_TEST set before running Xamarin Studio.