我已经在 Windows 8.1 64bit 下安装了 Mono 4.0.2
现在我正在测试它的运行方式:控制台和 WF 应用程序一切正常
但是,我无法运行任何 ASP.NET 应用程序/页面。我尝试了自己的网络应用程序和那里的简单示例,结果是一样的:
- xsp4 启动,监听端口 9000,显示根目录(webapp 目录)并等待。
- 我尝试访问 localhost:9000/, localhost:9000/hello.aspx
- 浏览器一直在等待响应,控制台中没有任何反应(我尝试了--verbose 和--loginfo)。
我尝试了不同的端口,mono.exe 和 xsp4.exe 都在防火墙例外列表中。IPv6 已禁用。Test-NetConnection 成功,但 telnet 并没有比“连接到 127.0.0.1...”更进一步
如何使其正常工作?
这是我试图访问以进行测试的页面:
<%@ Page Language="C#" %>
<html>
<head>
<title>Sample Calendar</title>
</head>
<asp:calendar showtitle="true" runat="server">
</asp:calendar>
网络统计输出:
#just launched xsp4. 2772 is mono.exe
PS C:\Users\Orif> netstat -aon | findstr 9000
TCP 0.0.0.0:9000 0.0.0.0:0 LISTENING 2772
#now tried to access a page through firefox (5008)
PS C:\Users\Orif> netstat -aon | findstr 9000
TCP 0.0.0.0:9000 0.0.0.0:0 LISTENING 2772
TCP 127.0.0.1:2199 127.0.0.1:9000 ESTABLISHED 5008
TCP 127.0.0.1:9000 127.0.0.1:2199 ESTABLISHED 2772
更新
我已经安装了 Xamarin Studio,它有自己的 xsp4 副本。该副本工作得很好。