简体   繁体   English

无法在Monodevelop上运行asp.net应用程序

[英]Unable to run asp.net application on monodevelop

I'm on Ubuntu 11.10 , have installed Monodevelop-2.8.5 , on the first run, it said the xsp2 server was missing, I installed that. 我在Ubuntu 11.10 ,已经安装了Monodevelop-2.8.5 ,在第一次运行时,它说xsp2 server丢失了,我安装了它。

Now, the application builds successfully, but, when I run my application, it just opens google chrome (and not my application). 现在,该应用程序已成功构建,但是,当我运行我的应用程序时,它只会打开google chrome(而不是我的应用程序)。 What is the problem? 问题是什么?

The application output is, 该应用程序的输出是,

Registering application:
    Host:          any
    Port:          any
    Virtual path:  /
    Physical path: /home/tarun/MyWebsite/MyWebsite/
xsp2
Listening on address: 127.0.0.1
Root directory: /home/tarun/MyWebsite/MyWebsite
Listening on port: 8080 (non-secure)

When I try to open, 127.0.0.1:8080 on chrome, I get the following error : 当我尝试在Chrome上打开127.0.0.1:8080时,出现以下错误:

Oops! 糟糕! Google Chrome could not connect to 127.0.0.1:8080 Google Chrome无法连接到127.0.0.1:8080

But, 127.0.0.1 works just fine. 但是, 127.0.0.1可以正常工作。

If you run "netstat -tlnp" from the terminal does it confirm that xsp2 really is listening on port 8080? 如果从终端运行“ netstat -tlnp”,是否确定xsp2确实在侦听端口8080? You're looking for a line in the output something like: 您正在寻找类似以下内容的输出行:

LISTEN            8080/xsp

If it does seem to be listening, the next thing to try is one of the bundled sample applications. 如果它确实在侦听,那么接下来要尝试的是捆绑的示例应用程序之一。 If you run /usr/lib/xsp/test/xsp then you should hopefully be able to connect to 127.0.0.1:8080 from Chrome and see the sample application running. 如果您运行/ usr / lib / xsp / test / xsp,那么您应该希望能够从Chrome连接到127.0.0.1:8080并查看示例应用程序正在运行。

It looks to be a chrome-related problem, set firefox as default. 看来是与Chrome有关的问题,将firefox设置为默认值。 Working fine now 现在工作正常

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM