2015-06-24 3 views
0

Я клонировал проект xsp по адресу: https://github.com/mono/xsp.git и построил xsp в моно, но у меня проблемы с его запуском. Я получаю ту же ошибку в среде IDE или в командной строке. Моя конечная цель - запустить мой сайт во время отладки xsp. Как я могу исправить ошибку?Как отлаживать XSP в monodevelop с помощью моего приложения MVC?

Handling exception type FileNotFoundException 
Message is Could not load file or assembly 'Mono.WebServer.XSP, Version=3.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its dependencies. The system cannot find the file specified. 
IsTerminating is set to True 
Could not load file or assembly 'Mono.WebServer.XSP, Version=3.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its dependencies. The system cannot find the file specified. 
    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) [0x0031f] in /builddir/build/BUILD/mono-4.0.1/mcs/class/System.Web/System.Web.Hosting/ApplicationHost.cs:242 
    at Mono.WebServer.VPathToHost.CreateHost (Mono.WebServer.ApplicationServer server, Mono.WebServer.WebSource webSource) [0x00000] in <filename unknown>:0 
    at Mono.WebServer.XSP.Server.DebugMain (System.String[] args, Boolean root, IApplicationHost ext_apphost, Boolean quiet) [0x0020e] in /home/myuser/Downloads/git/xsp/src/Mono.WebServer.XSP/main.cs:166 
    at Mono.WebServer.XSP.Server.DebugMain (System.String[] args) [0x00036] in /home/myuser/Downloads/git/xsp/src/Mono.WebServer.XSP/main.cs:75 
    at Mono.WebServer.XSP.Server.Main (System.String[] args) [0x00002] in /home/myuser/Downloads/git/xsp/src/Mono.WebServer.XSP/main.cs:66 
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not load file or assembly 'Mono.WebServer.XSP, Version=3.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its dependencies. The system cannot find the file specified. 
File name: 'Mono.WebServer.XSP, Version=3.0.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) [0x0031f] in /builddir/build/BUILD/mono-4.0.1/mcs/class/System.Web/System.Web.Hosting/ApplicationHost.cs:242 
    at Mono.WebServer.VPathToHost.CreateHost (Mono.WebServer.ApplicationServer server, Mono.WebServer.WebSource webSource) [0x00000] in <filename unknown>:0 
    at Mono.WebServer.XSP.Server.DebugMain (System.String[] args, Boolean root, IApplicationHost ext_apphost, Boolean quiet) [0x0020e] in /home/myuser/Downloads/git/xsp/src/Mono.WebServer.XSP/main.cs:166 
    at Mono.WebServer.XSP.Server.DebugMain (System.String[] args) [0x00036] in /home/myuser/Downloads/git/xsp/src/Mono.WebServer.XSP/main.cs:75 
    at Mono.WebServer.XSP.Server.Main (System.String[] args) [0x00002] in /home/myuser/Downloads/git/xsp/src/Mono.WebServer.XSP/main.cs:66 

ответ

0

Ключ к проблеме является то, что mono не может найти сборку, Mono.WebServer.XSP. Я добавил MONO_PATH со значением /home/myuser/Downloads/git/xsp/src/Mono.WebServer.XSP/bin/Debug переменным среды проекта. С добавлением некоторых параметров командной строки я смог запустить мой сайт ASP.net.

Смежные вопросы