我将xsp4从4.0复制到4.5并运行以下脚本:
exec /opt/mono/bin/mono $MONO_OPTIONS "/opt/mono/lib/mono/4.5/xsp4.exe" "$@"
给我错误:
[mono] /usr/local/src/xsp-2.10.2 @ xsp4
Could not load signature of Mono.WebServer.XSP.Server:RealMain due to: Could not load file or assembly or one of its dependencies.
Unhandled Exception:
System.TypeLoadException: A type load exception has occurred.
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: A type load exception has occurred.
MONO信息:
@ which mono
/opt/mono/bin/mono
@ mono --version
Mono JIT compiler version 3.2.6
# note I've compiled this with --with-libgdiplus=/opt/mono
任何人都知道问题是什么?
答案 0 :(得分:0)
检查是否将LD_LIBRARY_PATH环境变量设置为/ opt / mono / lib
检查gac中的Mono.WebServer2程序集
gacutil -l Mono.WebServer2
如果不是,请使用以下命令将其放在此处(您必须将目录更改为xsp源xsp/src/Mono.WebServer/4.0
)
gacutil -i -package 4.5 Mono.WebServer2.dll
如果这没有帮助,您可以使用strace命令运行xsp4以查看它尝试查找文件的位置和位置
strace -e trace=open xsp4.exe