2014-12-03 71 views
0

我在嘗試在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路徑是否必須進入一些環境變量?

回答

1

XSP需要安裝在與單聲道相同的前綴中,而不是另一個。