2015-06-24 148 views
0

我克隆了monoxsp項目:https://github.com/mono/xsp.git並在單聲道開發中構建了xsp,但我無法運行它。我在IDE或命令行中遇到同樣的錯誤。我的最終目標是在調試xsp時運行我的網站。我該如何解決這個錯誤?如何在使用我的MVC應用程序進行monodevelop時調試XSP?

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站點。

相關問題