使用一个 XSP4 子进程从 2 个不同的根目录在 Ubuntu 16.04 上提供 ASP.NET Webforms 内容?

使用一个 XSP4 子进程从 2 个不同的根目录在 Ubuntu 16.04 上提供 ASP.NET Webforms 内容?

我们希望使用一个 XSP4 子进程从 2 个不同的根目录在 Ubuntu 16.04 上提供 ASP.NET Webforms 内容。

在 中/etc/mono-server4,我创建了debian.webapp指定根目录/var/www/firstaspnetseconddebian.webapp指定根目录/var/www/secondaspnet。我想这就足够了。但我得到了这个运行时异常:

 System.Web.HttpException
    The resource cannot be found.

    Description: 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: /hello.aspx
    Exception stack trace:
      at System.Web.Compilation.BuildManager.AssertVirtualPathExists (System.Web.VirtualPath virtualPath) <0x40e88650 + 0x00197> in <filename unknown>:0 
      at System.Web.Compilation.BuildManager.Build (System.Web.VirtualPath vp) <0x40e883f0 + 0x00033> in <filename unknown>:0 
      at System.Web.Compilation.BuildManager.GetCompiledType (System.Web.VirtualPath virtualPath) <0x40e880a0 + 0x00093> in <filename unknown>:0 
      at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath (System.Web.VirtualPath virtualPath, System.Type requiredBaseType) <0x40e87f50 + 0x00033> in <filename unknown>:0 
      at System.Web.UI.PageParser.GetCompiledPageInstance (System.String virtualPath, System.String inputFile, System.Web.HttpContext context) <0x40e87bb0 + 0x000bb> in <filename unknown>:0 
      at System.Web.UI.PageHandlerFactory.GetHandler (System.Web.HttpContext context, System.String requestType, System.String url, System.String path) <0x40e87b70 + 0x00027> in <filename unknown>:0 
      at System.Web.HttpApplication.GetHandler (System.Web.HttpContext context, System.String url, Boolean ignoreContextHandler) <0x40e7ccb0 + 0x002de> in <filename unknown>:0 
      at System.Web.HttpApplication.GetHandler (System.Web.HttpContext context, System.String url) <0x40e7cc80 + 0x0001b> in <filename unknown>:0 
      at System.Web.HttpApplication+<Pipeline>c__Iterator1.MoveNext () <0x40e65a50 + 0x02aab> in <filename unknown>:0

在系统重新引导期间,我仅运行由我的 systemd apache2.service 生成的 mod-mono-server4.exe 的一个实例,如下 ps -ef 所示:

  148:www-data  1090     1  0 16:42 ?        00:00:00 /usr/bin/mono /usr/lib/mono/4.5/mod-mono-server4.exe --filename /tmp/.mod_mono_server4 --nonstop --appconfigdir /etc/mono-server4

有人可以大胆假设我遗漏了什么或做错了什么吗?

任何帮助是极大的赞赏。

相关内容