单声道运行时错误

Mono Runtime error

我有一段时间试图让 Mono 在我的 Raspberry pi 上托管 ASPX 文件 3. 我已经按照 Mono 安装说明进行操作,并且似乎已经取得了一些进展,就像 Apache 之前一样' 甚至识别 aspx 文件。现在可以了,但会返回一个 运行 时间错误。我没有对 ASPX 文件做任何花哨的事情,只是创建了一个 MonoDevelop 项目,然后将其复制到 /var/www 目录中。当我尝试转到 http://localhost/default.aspx

时,我没有让页面加载,而是得到以下信息
System.Web.HttpException
The resource cannot be found.

描述:

HTTP 404.The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Details: Requested URL: /default.aspx

异常堆栈跟踪:

  at System.Web.Compilation.BuildManager.AssertVirtualPathExists (System.Web.VirtualPath virtualPath) [0x00000] in <filename unknown>:0 
  at System.Web.Compilation.BuildManager.Build (System.Web.VirtualPath vp) [0x00000] in <filename unknown>:0 
  at System.Web.Compilation.BuildManager.GetCompiledType (System.Web.VirtualPath virtualPath) [0x00000] in <filename unknown>:0 
  at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath (System.Web.VirtualPath virtualPath, System.Type requiredBaseType) [0x00000] in <filename unknown>:0 
  at System.Web.UI.PageParser.GetCompiledPageInstance (System.String virtualPath, System.String inputFile, System.Web.HttpContext context) [0x00000] in <filename unknown>:0 
  at System.Web.UI.PageHandlerFactory.GetHandler (System.Web.HttpContext context, System.String requestType, System.String url, System.String path) [0x00000] in <filename unknown>:0 
  at System.Web.HttpApplication.GetHandler (System.Web.HttpContext context, System.String url, Boolean ignoreContextHandler) [0x00000] in <filename unknown>:0 
  at System.Web.HttpApplication.GetHandler (System.Web.HttpContext context, System.String url) [0x00000] in <filename unknown>:0 
  at System.Web.HttpApplication+<Pipeline>c__Iterator1.MoveNext () [0x00000] in <filename unknown>:0 
Version Information: 3.2.8 (Debian 3.2.8+dfsg-10); ASP.NET Version: 4.0.30319.17020

我完全按照 Mono 网站上的安装说明进行了安装,所以一定有一些我正在做或没有做的事情 post 安装被我忽略了。我已经阅读了有关 chmd 进程的信息,以确保 aspx 文件上没有读取问题,但这似乎不是问题所在。我不能将文件复制到 www directoy 并让它像我一样工作吗?我一直在 google 尝试并提出想法,但完全不知道该尝试什么。

感谢任何人愿意提供的任何建议。

好吧,我终于明白了。尽管我读过的所有文档似乎都表明我可以直接将该网站设置为默认设置,但我还是决定尝试设置另一个网站,看看它是否确实是问题所在。

这是解决方案,然后我将我的网站移到那里:

http://www.mono-project.com/docs/web/mod_mono/

Alias /test "/usr/share/doc/xsp/test"
Alias /personal "/home/user/mypages"
AddMonoApplications default "/test:/usr/share/doc/xsp/test,/personal:/home/user/mypages"
<Location /test>
  SetHandler mono
</Location>
<Location /personal>
  SetHandler mono
</Location>