linux - mod-mono-server4 和 FileNotFoundException

标签 linux apache mono monodevelop

我一直试图让 Mono 和 apache 模块运行,但没有成功。当我尝试从命令行运行 mod-mono-server4 时,我得到一个 FileNotFoundException:

实际错误是:

slackKingServer:/# mod-mono-server4
Handling exception type FileNotFoundException
Message is Could not load file or assembly 'mod-mono-server4, 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 'mod-mono-server4, 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.Apache.Server.RealMain (System.String[] args, Boolean root, IApplicationHost ext_apphost, Boolean v_quiet) [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) Mono.WebServer.Apache.Server:RealMain (string[],bool,Mono.WebServer.IApplicationHost,bool)
  at Mono.WebServer.Apache.Server.Main (System.String[] args) [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not load file or assembly 'mod-mono-server4, Version=3.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its dependencies. The system cannot find the file specified.
File name: 'mod-mono-server4, 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.Apache.Server.RealMain (System.String[] args, Boolean root, IApplicationHost ext_apphost, Boolean v_quiet) [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) Mono.WebServer.Apache.Server:RealMain (string[],bool,Mono.WebServer.IApplicationHost,bool)
  at Mono.WebServer.Apache.Server.Main (System.String[] args) [0x00000] in <filename unknown>:0

我知道它说它无法加载 mod-mono-server4,但我不确定它在何处查找文件。

非常感谢任何帮助。

最佳答案

如果其他人遇到上述错误。我通过执行以下操作进行了修复。现在请记住,我在 Slackware 14.1 环境中从源代码构建了所有内容。

我必须将 xsp gac 目录的内容复制到 mono gac 目录。

我运行了 diff -r/xsp/gac/mono/gac

然后将丢失的文件复制到 mono GAC 目录中

关于linux - mod-mono-server4 和 FileNotFoundException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23503845/

相关文章:

php - 系统时间不同于 apache 时间戳——?

php - 无法连接到 phpMyAdmin 或 localhost

php - UTF-8贯穿始终

c# - 在 Xamarin.Mac 应用程序中填充 SourceList

c# - XamarinStudio 中的 System.Globalization.SortVersion 异常

linux - 在 awk 脚本中获取用户输入并在文件中更新它

c - 查询服务是否正在运行

linux - 如何移植在2.6内核中编译的linux驱动程序,而不用在其他新版本内核中编译

c# - 使用 visual studio 和 MONO 为 Linux 环境编程

windows - 在 Windows 上编译基于 Qt 的 NPAPI 浏览器插件