单声道运行时错误

时间:2016-03-30 01:37:45

标签: asp.net .net mono raspberry-pi runtime-error

我有一段时间试图让Mono在我的Raspberry pi 3上托管ASPX文件。我已经按照Mono安装说明进行操作,并且似乎已经取得了一些进展,就像之前Apache不会&# 39;甚至可以识别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网站上的安装说明,因此我必须做一些我正在做的事情,或者不做我已经忽略的安装后的事情。我已经阅读了有关chmd进程的信息,以确保在aspx文件上没有读取问题,但这似乎不是问题所在。我不能将这些文件复制到www directoy并让它像我一样工作吗?我已经谷歌了解了这一点,试图提出想法,只是完全失去了想要尝试的想法。

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

1 个答案:

答案 0 :(得分:0)

好吧,我终于明白了。即使我读过的所有文档似乎都表明我可以直接将网站放到默认状态,但我还是决定尝试设置另一个,看看这是不是显而易见的问题。

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

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>