2014-12-03 2 views
0

Я получаю эту ошибку при попытке запустить xsp4 на Debian.Mono xsp4 file not found exception 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

я добавил обе эти каталоги мой ПУТЬ:

/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 

Я полностью пе w как для Linux, так и для Mono, поэтому я здесь что-то не хватает?

Должны ли пути lib идти в какой-либо переменной среды?

ответ

1

XSP необходимо установить в том же префиксе, что и моно, а не в другом.