2

在全新安装了 Mono 2.10 附带的 Ubuntu 11.10 之后,我发现自己陷入了困境:即使安装了 XSP4,我也无法运行 ASP.Net 4.0 项目。就好像它期望只有一个 xsp2 ......

这是错误:

Could not launch web server. The "xsp2" web server cannot be started. Please ensure that it is installed.

细节:

MonoDevelop.Core.UserException: The "xsp2" web server cannot be started. Please ensure that it is installed.
  at MonoDevelop.AspNet.AspNetExecutionHandler.GetXspPath (MonoDevelop.AspNet.AspNetExecutionCommand cmd) [0x00000] in <filename unknown>:0 
  at MonoDevelop.AspNet.AspNetExecutionHandler.Execute (MonoDevelop.Core.Execution.ExecutionCommand command, IConsole console) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Core.Execution.DefaultExecutionHandler.Execute (MonoDevelop.Core.Execution.ExecutionCommand command, IConsole console) [0x00000] in <filename unknown>:0 
  at MonoDevelop.AspNet.AspNetAppProject.DoExecute (IProgressMonitor monitor, MonoDevelop.Projects.ExecutionContext context, MonoDevelop.Projects.ConfigurationSelector config) [0x00000] in <filename unknown>:0 

知道这可能是什么问题吗?XSP4 是否只与 MonoDevelop 2.8 兼容?

4

1 回答 1

6

假设您使用的是 monodevelop,请转到项目菜单选择您的“应用程序选项”而不是解决方案选项。在出现的对话框中,在“构建”下选择“常规”,然后在右侧窗格中将“运行时版本”更改为 Mono/。净4.0

VB.NET 插件似乎不支持 .NET 4.0(参见这个 stackoverflow 问题),但我发现只需创建一个符号链接(xsp2->xsp4)就足以在 mono-xsp4 上运行 Mono/.Net 3.5

于 2011-10-24T08:43:03.807 回答