在MonoDevelop 2.6中运行XSP4

时间:2011-10-17 20:09:38

标签: asp.net monodevelop xsp

在完全安装了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兼容吗?

1 个答案:

答案 0 :(得分:6)

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

VB.NET addin似乎不支持.NET 4.0(see this stackoverflow question),但我发现只需创建符号链接(xsp2-&gt; xsp4)就足以在mono-xsp4上运行Mono / .Net 3.5