Mono xsp4文件未找到异常WebServer2

问题描述:

我在尝试在Debian上运行xsp4时遇到此错误。Mono xsp4文件未找到异常WebServer2

[email protected]:/opt# xsp 
Handling exception type FileNotFoundException 
Message is Could not load file or assembly 'Mono.WebServer2, Version=0.2.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its dependencies. The system cannot find the file specified. 
IsTerminating is set to True 
System.IO.FileNotFoundException: Could not load file or assembly 'Mono.WebServer2, Version=0.2.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its dependencies. The system cannot find the file specified. 
File name: 'Mono.WebServer2, Version=0.2.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' 
    at (wrapper xdomain-invoke) System.AppDomain:CreateInstanceAndUnwrap (string,string) 
    at (wrapper remoting-invoke-with-check) System.AppDomain:CreateInstanceAndUnwrap (string,string) 
    at System.Web.Hosting.ApplicationHost.CreateApplicationHost (System.Type hostType, System.String virtualDir, System.String physicalDir) [0x00000] in <filename unknown>:0 
    at Mono.WebServer.VPathToHost.CreateHost (Mono.WebServer.ApplicationServer server, Mono.WebServer.WebSource webSource) [0x00000] in <filename unknown>:0 
    at Mono.WebServer.XSP.Server.RealMain (System.String[] args, Boolean root, IApplicationHost ext_apphost, Boolean quiet) [0x00000] in <filename unknown>:0 
    at Mono.WebServer.XSP.Server.Main (System.String[] args) [0x00000] in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not load file or assembly 'Mono.WebServer2, Version=0.2.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its dependencies. The system cannot find the file specified. 
File name: 'Mono.WebServer2, Version=0.2.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' 
    at (wrapper xdomain-invoke) System.AppDomain:CreateInstanceAndUnwrap (string,string) 
    at (wrapper remoting-invoke-with-check) System.AppDomain:CreateInstanceAndUnwrap (string,string) 
    at System.Web.Hosting.ApplicationHost.CreateApplicationHost (System.Type hostType, System.String virtualDir, System.String physicalDir) [0x00000] in <filename unknown>:0 
    at Mono.WebServer.VPathToHost.CreateHost (Mono.WebServer.ApplicationServer server, Mono.WebServer.WebSource webSource) [0x00000] in <filename unknown>:0 
    at Mono.WebServer.XSP.Server.RealMain (System.String[] args, Boolean root, IApplicationHost ext_apphost, Boolean quiet) [0x00000] in <filename unknown>:0 
    at Mono.WebServer.XSP.Server.Main (System.String[] args) [0x00000] in <filename unknown>:0 

我有单3.10.0安装/opt/mono-3.10.0和我有XSP 3.0.11安装/opt/xsp-3.0.11

我加入这两个目录我的PATH:

/opt/mono-3.10.0/bin:/opt/xsp-3.0.11/bin 

做了搜索的文件系统显示DLL是在GAC(我相信):

[email protected]:/opt# find /opt -name Mono.WebServer2.dll 
/opt/xsp-3.0.11/lib/mono/2.0/Mono.WebServer2.dll 
/opt/xsp-3.0.11/lib/mono/gac/Mono.WebServer2/0.2.0.0__0738eb9f132ed756/Mono.WebServer2.dll 
/opt/xsp-3.0.11/lib/mono/gac/Mono.WebServer2/0.4.0.0__0738eb9f132ed756/Mono.WebServer2.dll 
/opt/xsp-3.0.11/lib/mono/4.5/Mono.WebServer2.dll 

我完全NE w到Linux和Mono,所以我在这里失去了一些东西?

lib路径是否必须进入一些环境变量?

XSP需要安装在与单声道相同的前缀中,而不是另一个。