0

我开始在 ubuntu 12.04 上使用 MonoDevelop 5.0.1 和 XSP4,当我尝试运行 XSP4 时出现此错误,我从 ubuntu 软件中心安装 Monodevelop。它正在运行,但我想运行 ASP.Net MVC3 应用程序。有人知道这个错误吗?

Handling exception type FileNotFoundException
Message is Could not load file or assembly 'xsp4, 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 'xsp4, 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) [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.DebugMain (System.String[] args, Boolean root, IApplicationHost ext_apphost, Boolean quiet) [0x00000] in <filename unknown>:0 
 at Mono.WebServer.XSP.Server.DebugMain (System.String[] args) [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 'xsp4, Version=3.0.0.0, Culture=neutral,                                              PublicKeyToken=0738eb9f132ed756' or one of its dependencies. The system cannot find the file specified.
 File name: 'xsp4, 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) [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.DebugMain (System.String[] args, Boolean root, IApplicationHost ext_apphost, Boolean quiet) [0x00000] in <filename unknown>:0 
 at Mono.WebServer.XSP.Server.DebugMain (System.String[] args) [0x00000] in <filename unknown>:0 
at Mono.WebServer.XSP.Server.Main (System.String[] args) [0x00000] in <filename unknown>:0 
4

1 回答 1

0

是的,我有同样的信息(在使用 Monodevelop 5.0.1 计算 Linux 上)。
你应该帮助它找到程序集。
使用“ gacutil -i”将程序集放入 GAC 或使用

ln -s . ./bin

在 xsp4 二进制文件的目录中(如果你刚刚构建它,它在 ./bin/Debug 下)。

要更深入地理解它,您可以代替使用 fuslogvw这样做:
1) 使用环境变量 MONO_LOG_LEVEL=info 和 MONO_LOG_MASK=asm 设置运行,例如

MONO_LOG_LEVEL=info MONO_LOG_MASK=asm mono yourapp.exe

组装探测和相关逻辑将打印到标准输出。
2) 有关更多信息,请参见 mono(1) 手册页。

于 2014-10-19T12:34:07.370 回答