如何使用MVC应用程序在monodevelop中调试XSP?

如何使用MVC应用程序在monodevelop中调试XSP?,mono,monodevelop,mod-mono,xsp,Mono,Monodevelop,Mod Mono,Xsp,我在:https://github.com/mono/xsp.git并在mono develop中构建了xsp,但在运行时遇到了问题。我在IDE或命令行中遇到相同的错误。我的最终目标是在调试xsp时运行我的站点。我如何修复错误 Handling exception type FileNotFoundException Message is Could not load file or assembly 'Mono.WebServer.XSP, Version=3.0.0.0, Culture=n

我在:
https://github.com/mono/xsp.git
并在mono develop中构建了xsp,但在运行时遇到了问题。我在IDE或命令行中遇到相同的错误。我的最终目标是在调试
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 
处理异常类型FileNotFoundException
消息是无法加载文件或程序集“Mono.WebServer.XSP,Version=3.0.0.0,Culture=neutral,PublicKeyToken=0738eb9f132ed756”或其依赖项之一。系统找不到指定的文件。
IsTerminating设置为True
无法加载文件或程序集“Mono.WebServer.XSP,版本=3.0.0.0,区域性=中性,PublicKeyToken=0738eb9f132ed756”或其依赖项之一。系统找不到指定的文件。
在(包装器xdomain invoke)System.AppDomain:CreateInstanceAndUnwrap(字符串,字符串)
在(带检查的包装器远程调用)System.AppDomain:CreateInstanceAndUnwrap(字符串,字符串)
在/builddir/build/build/mono-4.0.1/mcs/class/System.Web/System.Web.host/ApplicationHost.cs:242中的System.Web.hostType、System.String virtualDir、System.String physicalDir[0x0031f]处
位于:0中的Mono.WebServer.vpathtoost.CreateHost(Mono.WebServer.ApplicationServer服务器,Mono.WebServer.WebSource WebSource)[0x00000]
在/home/myuser/Downloads/git/XSP/src/Mono.WebServer.XSP.DebugMain(System.String[]args,Boolean root,iaapplicationhost ext_apphost,Boolean quiet)[0x0020e]中的/home/myuser/Downloads/git/XSP/src/Mono.WebServer.XSP/main.cs:166
在/home/myuser/Downloads/git/XSP/src/Mono.WebServer.XSP/Server.DebugMain(System.String[]args)[0x00036]中
在/home/myuser/Downloads/git/XSP/src/Mono.WebServer.XSP/Main(System.String[]args)[0x00002]中
[错误]致命的未处理异常:System.IO.FileNotFoundException:无法加载文件或程序集“Mono.WebServer.XSP,Version=3.0.0.0,Culture=neutral,PublicKeyToken=0738eb9f132ed756”或其依赖项之一。系统找不到指定的文件。
文件名:“Mono.WebServer.XSP,版本=3.0.0.0,区域性=中性,PublicKeyToken=0738eb9f132ed756”
在(包装器xdomain invoke)System.AppDomain:CreateInstanceAndUnwrap(字符串,字符串)
在(带检查的包装器远程调用)System.AppDomain:CreateInstanceAndUnwrap(字符串,字符串)
在/builddir/build/build/mono-4.0.1/mcs/class/System.Web/System.Web.host/ApplicationHost.cs:242中的System.Web.hostType、System.String virtualDir、System.String physicalDir[0x0031f]处
位于:0中的Mono.WebServer.vpathtoost.CreateHost(Mono.WebServer.ApplicationServer服务器,Mono.WebServer.WebSource WebSource)[0x00000]
在/home/myuser/Downloads/git/XSP/src/Mono.WebServer.XSP.DebugMain(System.String[]args,Boolean root,iaapplicationhost ext_apphost,Boolean quiet)[0x0020e]中的/home/myuser/Downloads/git/XSP/src/Mono.WebServer.XSP/main.cs:166
在/home/myuser/Downloads/git/XSP/src/Mono.WebServer.XSP/Server.DebugMain(System.String[]args)[0x00036]中
在/home/myuser/Downloads/git/XSP/src/Mono.WebServer.XSP/Main(System.String[]args)[0x00002]中

问题的关键是
mono
找不到程序集,
mono.WebServer.XSP
。我在项目的环境变量中添加了
MONO_PATH
,值为
/home/myuser/Downloads/git/xsp/src/MONO.WebServer.xsp/bin/Debug
。通过添加一些命令行参数,我可以运行我的ASP.net站点