我正在尝试在Mac OS上的Monodevelop中调试ASP.Net应用程序。
应用程序调试正常,但现在Monodevelop将无法运行它。当我右键单击该应用程序并单击“调试项目”时,它会尝试构建并开始调试但是没有任何反应。在左下角,它显示“构建成功。”。
如果我右键单击该应用程序并选择Monodevelop左下角的“运行项目”,则说:
执行失败。对象引用未设置为对象的实例。
如何修复Monodevelop /我的应用程序以正确调试?
我在Mono和Monodevelop上使用最新版本。
以下是尝试调试时Monodevelop日志中出现的错误。
例外:
Error - 11:36:32 p.m. - Execution failed
System.NullReferenceException: Object reference not set to an instance of an object
at MonoDevelop.Projects.CustomCommand.ParseCommand (MonoDevelop.Core.StringParsing.StringTagModel tagSource, System.String& cmd, System.String& args) [0x00000] in /Users/builder/data/lanes/monodevelop-mac-2.8.6.4/ca00645c/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/CustomCommand.cs:150
at MonoDevelop.Projects.CustomCommand.CreateExecutionCommand (IWorkspaceObject entry, MonoDevelop.Projects.ConfigurationSelector configuration) [0x00009] in /Users/builder/data/lanes/monodevelop-mac-2.8.6.4/ca00645c/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/CustomCommand.cs:179
at MonoDevelop.Projects.CustomCommand.Execute (IProgressMonitor monitor, IWorkspaceObject entry, MonoDevelop.Projects.ExecutionContext context, MonoDevelop.Projects.ConfigurationSelector configuration) [0x00000] in /Users/builder/data/lanes/monodevelop-mac-2.8.6.4/ca00645c/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/CustomCommand.cs:230
at MonoDevelop.Projects.CustomCommandCollection.ExecuteCommand (IProgressMonitor monitor, IWorkspaceObject entry, CustomCommandType type, MonoDevelop.Projects.ExecutionContext context, MonoDevelop.Projects.ConfigurationSelector configuration) [0x00020] in /Users/builder/data/lanes/monodevelop-mac-2.8.6.4/ca00645c/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/CustomCommandCollection.cs:60
at MonoDevelop.Projects.CustomCommandExtension.Execute (IProgressMonitor monitor, MonoDevelop.Projects.SolutionEntityItem entry, MonoDevelop.Projects.ExecutionContext context, MonoDevelop.Projects.ConfigurationSelector configuration) [0x00025] in /Users/builder/data/lanes/monodevelop-mac-2.8.6.4/ca00645c/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/CustomCommandExtension.cs:75
at MonoDevelop.Projects.ProjectServiceExtension.Execute (IProgressMonitor monitor, IBuildTarget item, MonoDevelop.Projects.ExecutionContext context, MonoDevelop.Projects.ConfigurationSelector configuration) [0x0000b] in /Users/builder/data/lanes/monodevelop-mac-2.8.6.4/ca00645c/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:179
at MonoDevelop.Projects.SolutionItem.Execute (IProgressMonitor monitor, MonoDevelop.Projects.ExecutionContext context, MonoDevelop.Projects.ConfigurationSelector configuration) [0x00000] in /Users/builder/data/lanes/monodevelop-mac-2.8.6.4/ca00645c/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/SolutionItem.cs:609
at MonoDevelop.Ide.ProjectOperations.ExecuteSolutionItemAsync (IProgressMonitor monitor, IBuildTarget entry, MonoDevelop.Projects.ExecutionContext context) [0x00006] in /Users/builder/data/lanes/monodevelop-mac-2.8.6.4/ca00645c/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/ProjectOperations.cs:917
命令:
Info - 11:40:14 p.m. - /Library/Frameworks/Mono.framework/Versions/2.10.8/bin/dmcs "/out:/Users/liam/Projects/techcertain/techcertaincsharp/bin/Migration.dll"
"/r:/Library/Frameworks/Mono.framework/Versions/2.10.8/lib/mono/4.0/System.dll"
"/r:/Library/Frameworks/Mono.framework/Versions/2.10.8/lib/mono/4.0/System.Web.dll"
"/r:/Library/Frameworks/Mono.framework/Versions/2.10.8/lib/mono/4.0/System.Xml.dll"
"/r:/Library/Frameworks/Mono.framework/Versions/2.10.8/lib/mono/4.0/System.Web.Services.dll"
"/r:/Users/liam/Projects/techcertain/techcertaincsharp/bin/Npgsql.dll"
"/r:/Library/Frameworks/Mono.framework/Versions/2.10.8/lib/mono/4.0/System.Data.dll"
"/r:/Library/Frameworks/Mono.framework/Versions/2.10.8/lib/mono/4.0/System.Data.Linq.dll"
"/r:/Library/Frameworks/Mono.framework/Versions/2.10.8/lib/mono/4.0/System.Data.DataSetExtensions.dll"
"/r:/Library/Frameworks/Mono.framework/Versions/2.10.8/lib/mono/4.0/Microsoft.VisualBasic.dll"
"/r:/Users/liam/Projects/techcertain/techcertaincsharp/bin/TCShared.dll"
"/r:/Users/liam/Projects/techcertain/techcertaincsharp/bin/TCLDAP.dll"
"/r:/Library/Frameworks/Mono.framework/Versions/2.10.8/lib/mono/4.0/System.Core.dll"
/nologo
/warn:4
/debug:+
/debug:full
/optimize-
/codepage:utf8
"/define:DEBUG"
/t:library
"/Users/liam/Projects/techcertain/techcertaincsharp/Migration/Default.aspx.cs"
"/Users/liam/Projects/techcertain/techcertaincsharp/Migration/Default.aspx.designer.cs"
"/Users/liam/Projects/techcertain/techcertaincsharp/Migration/TC_Migrator.cs"
"/Users/liam/Projects/techcertain/techcertaincsharp/Migration/TCMappable.cs"
"/Users/liam/Projects/techcertain/techcertaincsharp/Migration/TCUserMigrator.cs"
"/Users/liam/Projects/techcertain/techcertaincsharp/Migration/TCSchemeMigrator.cs"
"/Users/liam/Projects/techcertain/techcertaincsharp/Migration/TCUserPermissionsMigrator.cs"
"/Users/liam/Projects/techcertain/techcertaincsharp/Migration/TCFileMigrator.cs"
"/Users/liam/Projects/techcertain/techcertaincsharp/Migration/TCBaseClass.cs"
"/Users/liam/Projects/techcertain/techcertaincsharp/Migration/QueryTester.aspx.cs"
"/Users/liam/Projects/techcertain/techcertaincsharp/Migration/QueryTester.aspx.designer.cs"
"/Users/liam/Projects/techcertain/techcertaincsharp/Migration/MigEvents.aspx.cs"
"/Users/liam/Projects/techcertain/techcertaincsharp/Migration/MigEvents.aspx.designer.cs"
"/Users/liam/Projects/techcertain/techcertaincsharp/Migration/SysEvents.aspx.cs"
"/Users/liam/Projects/techcertain/techcertaincsharp/Migration/SysEvents.aspx.designer.cs"