ASP.NET Web服务器无法启动和Mono环境不能切换 [英] ASP.NET web server cannot be launched and Mono environment not be switched

查看:700
本文介绍了ASP.NET Web服务器无法启动和Mono环境不能切换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在<一个href=\"http://software.opensuse.org/download/package?project=home:tpokorra:mono&package=monodevelop-opt\"相对=nofollow>在Linux Mint的MonoDevelop的它用于工作之前,我格式化我的驱动器,并提出了全新安装的最新版本之一。当我建立我的项目,它建立正常,但是当我尝试运行它,我得到以下信息:

I am running one of the latest versions of Monodevelop on Linux Mint which used to work before I formatted my drive and made a fresh install. When I build my project it builds fine, but when I try to run it I get the following message:

无法运行ASP.NET的Web服务器。
  该xsp4 web服务器无法找到。请确保它被安装。

Could not launch ASP.NET web server. The xsp4 web server cannot be found. Please ensure that it is installed.

我已经安装了xsp4和xsp4基包。我发现<一个href=\"http://askubuntu.com/questions/360841/monodevelop-doesnt-find-xsp4-web-server-although-it-is-installed-running\">in问题和答案askubuntu 的,我需要切换单声道运行时,使其能够找到xsp4。

I have xsp4 and xsp4-base packages installed. I found in a question and answer on askubuntu that I need to switch the Mono runtime to make it able to find xsp4.

当我去编辑> preferences>项目> .NET运行时我看到的选项单声道3.10.0(默认)单3.10.0目录(/ usr)。不幸的是,当我切换到的/ usr 一(一个我需要和应该工作),我得到同样的错误如上Web服务器无法找到。而现在的怪异的一部分:当我在.NET运行时选择再看看我看到的是已经切换默认回原来的

When I go to Edit > Preferences > Projects > .NET Runtimes I see the options Mono 3.10.0 (Default) and Mono 3.10.0 (/usr). Unfortunately, when I switch to the /usr one (the one I need and should work) I get the same error as above that the web server cannot be found. And now the weird part: when I look again in the .NET runtimes options I see that is has switched the default back to the original one.

在切换回另一个默认只发生后,我preSS F5并尝试构建解决方案(包括与发布和调试)。

The switching back to another default only happens after I press F5 and try to build the solution (both with release and debug).

有谁知道我怎么能解决这个问题?

Does anyone know how I can fix this?

推荐答案

在情况下,我们运行的 MonoDevelop的首次单声道nofollow的> ASP.NET应用程序,我们可能会收到下面的错误:

In case we're running an ASP.NET application on Mono using Monodevelop for the first time, we may receive the below error:

无法启动ASP.NET

在某些情况下,问题是 xsp4 服务器。

In some cases, the problem is incorrect installation of xsp4 server.

使用安装它:

命令和apt-get安装单xsp4

这解决了上述错误。

可选通过搜索 xsp4

单xsp4在Ubuntu软件中心

这篇关于ASP.NET Web服务器无法启动和Mono环境不能切换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆