Mono FastCGI服务器 - 应用程序不能在root下工作

时间:2013-08-04 05:35:52

标签: mono fastcgi xsp

好的,我无法弄清楚这一点。我有一个测试MVC应用程序(razoronmono)。我今天刚刚从master编译单声道,以及xsp。我今天也编译了nginx。我正在运行Ubuntu 13.04 minimal。

这有效: http://coh2.us.to/razoronmono/

这不是: http://coh2.us.to/apps/razoronmono/

子目录中的所有代码都是相同的......

应用= “/:/ SRV /万维网,/ razoronmono:/ SRV /网络/ razoronmono,/应用/ razoronmono:/ SRV /网络/应用/ razoronmono”

nginx配置:         location / {

    }
    location /razoronmono {
            include /etc/nginx/fastcgi_params;
            fastcgi_pass 127.0.0.1:9000;
            fastcgi_index /;
    }

    location /apps/razoronmono {
            include /etc/nginx/fastcgi_params;
            fastcgi_pass 127.0.0.1:9000;
            fastcgi_index /;
    }
    location ~ \.(aspx|asmx|ashx|asax|ascx|soap|rem|axd|cs|config|dll)$ {
        fastcgi_pass   127.0.0.1:9000;
        include        /etc/nginx/fastcgi_params;
    }

我收到以下错误:

  

System.InvalidOperationException无法映射路径   '/apps/_ViewStart.cshtml'

     

描述:HTTP 500.Error处理请求。

     

详细信息:非Web异常。例外来源(申请名称或   对象):System.Web。异常堆栈跟踪:at   System.Web.HttpRequest.MapPath(System.String virtualPath,   System.String baseVirtualDir,Boolean allowCrossAppMapping)[0x001a4]   在/usr/src/mono/mcs/class/System.Web/System.Web/HttpRequest.cs:1572   在System.Web.HttpRequest.MapPath(System.String virtualPath)   [0x0000d] in   /usr/src/mono/mcs/class/System.Web/System.Web/HttpRequest.cs:1526 at   System.Web.Hosting.HostingEnvironment.MapPath(System.String   virtualPath)[0x00042] in   /usr/src/mono/mcs/class/System.Web/System.Web.Hosting/HostingEnvironment.cs:156   在System.Web.Hosting.DefaultVirtualPathProvider.FileExists中   (System.String virtualPath)[0x00016] in   /usr/src/mono/mcs/class/System.Web/System.Web.Hosting/DefaultVirtualPathProvider.cs:68   在System.Web.WebPages.FileExistenceCache.FileExists(System.String   virtualPath)[0x00000] in:0 at   System.Web.WebPages.VirtualPathFactoryManager.PageExistsInVPP   (System.String virtualPath,Boolean useCache)[0x00000] in:0 at System.Web.WebPages.VirtualPathFactoryManager.PageExists   (System.String virtualPath,Boolean useCache)[0x00000] in:0 at System.Web.WebPages.WebPageExecutingBase.FileExists   (System.String path,Boolean useCache)[0x00000] in:0 at System.Web.WebPages.StartPage.GetStartPage   (System.Web.WebPages.WebPageRenderingBase页面,System.String   fileName,IEnumerable 1 supportedExtensions) [0x00000] in <filename unknown>:0 at System.Web.Mvc.RazorView.RenderView (System.Web.Mvc.ViewContext viewContext, System.IO.TextWriter writer, System.Object instance) [0x00000] in <filename unknown>:0 at System.Web.Mvc.BuildManagerCompiledView.Render (System.Web.Mvc.ViewContext viewContext, System.IO.TextWriter writer) [0x00000] in <filename unknown>:0 at System.Web.Mvc.ViewResultBase.ExecuteResult (System.Web.Mvc.ControllerContext context) [0x00000] in <filename unknown>:0 at System.Web.Mvc.ControllerActionInvoker.InvokeActionResult (System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ActionResult actionResult) [0x00000] in <filename unknown>:0 at System.Web.Mvc.ControllerActionInvoker+<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19 () [0x00000] in <filename unknown>:0 at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter (IResultFilter filter, System.Web.Mvc.ResultExecutingContext preContext, System.Func 1 continuation)[0x00000] in:0

1 个答案:

答案 0 :(得分:1)

由于Google Summer of Code,xsp回购目前正在经历严重的重构。这些重构可能会导致回归。然后:

  1. 请编译xsp标签3.0.10而不是master,以查看问题是否消失。
  2. 如果是,请在http://bugzilla.xamarin.com/中提交一个错误(并在摘要中添加“[regression]”)并联系irc://irc.gnome.org/monodevelop中的@minibill给他一个头关于他可能引入的问题。
  3. 如果问题没有消失,请在http://bugzilla.xamarin.com/
  4. 中提交错误