我最近将opensuse 12.2机器升级到了飞跃42.1。
我想让网络服务器以下列形式运行: - nginx<> fastcgi-mono-server4<> asp.net
我已经安装并配置了nginx - 它似乎工作正常(在html级别测试)。
我已经安装了mono和xsp,并为fastcgi重新配置了nginx,但它不起作用。我的浏览器报告了一个无用的asp.net类型错误列表。
当我使用调试日志启动fastcgi-mono-server4时,这就是我得到的: -
Mono: Config attempting to parse: '/etc/mono/config'.
Mono: Config attempting to parse: '/root/.mono/config'.
Mono: Assembly Loader probing location: '/usr/lib/mono/4.5/mscorlib.dll'.
Mono: Image addref mscorlib[0x17a3f00] -> /usr/lib/mono/4.5/mscorlib.dll[0x17a2fa0]: 2
**Mono: AOT: module /usr/lib/mono/4.5/mscorlib.dll.so is unusable: compiled with unsupported SIMD extensions.
Mono: Assembly Loader loaded assembly from location: '/usr/lib/mono/4.5/mscorlib.dll'.**
Mono: Config attempting to parse: '/usr/lib/mono/4.5/mscorlib.dll.config'.
Mono: Config attempting to parse: '/etc/mono/assemblies/mscorlib/mscorlib.config'.
Mono: Assembly mscorlib[0x17a3f00] added to domain fastcgi-mono-server4.exe, ref_count=1
Mono: Assembly Loader probing location: '/usr/lib/mono/4.5/fastcgi-mono-server4.exe'.
Mono: Unloading image /usr/lib/mono/gac/fastcgi-mono-server4/3.0.0.0__0738eb9f132ed756/fastcgi-mono-server4.exe [0x180e890].
Mono: Image addref fastcgi-mono-server4[0x180efe0] -> /usr/lib/mono/gac/fastcgi-mono-server4/3.0.0.0__0738eb9f132ed756/fastcgi-mono-server4.exe[0x17a1bf0]: 3
Mono: Assembly fastcgi-mono-server4[0x180efe0] added to domain fastcgi-mono-server4.exe, ref_count=1
**Mono: AOT module '/usr/lib/mono/gac/fastcgi-mono-server4/3.0.0.0__0738eb9f132ed756/fastcgi-mono-server4.exe.so' not found: /usr/lib/mono/gac/fastcgi-mono-server4/3.0.0.0__0738eb9f132ed756/fastcgi-mono-server4.exe.so: cannot open shared object file: No such file or directory
Mono: AOT module '/usr/lib/mono/aot-cache/amd64/fastcgi-mono-server4.exe.so' not found: /usr/lib/mono/aot-cache/amd64/fastcgi-mono-server4.exe.so: cannot open shared object file: No such file or directory**
Mono: Assembly Loader loaded assembly from location: '/usr/lib/mono/4.5/fastcgi-mono-server4.exe'.
Mono: Config attempting to parse: '/usr/lib/mono/gac/fastcgi-mono-server4/3.0.0.0__0738eb9f132ed756/fastcgi-mono-server4.exe.config'.
Mono: Config attempting to parse: '/etc/mono/assemblies/fastcgi-mono-server4/fastcgi-mono-server4.config'.
Mono: Assembly Loader probing location: '/usr/lib/mono/4.5/fastcgi-mono-server4.exe'.
Mono: Unloading image /usr/lib/mono/gac/fastcgi-mono-server4/3.0.0.0__0738eb9f132ed756/fastcgi-mono-server4.exe [0x180f070].
**Mono: AOT module '/usr/lib/mono/gac/fastcgi-mono-server4/3.0.0.0__0738eb9f132ed756/fastcgi-mono-server4.exe.so' not found: /usr/lib/mono/gac/fastcgi-mono-server4/3.0.0.0__0738eb9f132ed756/fastcgi-mono-server4.exe.so: cannot open shared object file: No such file or directory
Mono: AOT module '/usr/lib/mono/aot-cache/amd64/fastcgi-mono-server4.exe.so' not found: /usr/lib/mono/aot-cache/amd64/fastcgi-mono-server4.exe.so: cannot open shared object file: No such file or directory**
Mono: Assembly Ref addref fastcgi-mono-server4[0x180efe0] -> mscorlib[0x17a3f00]: 2
Mono: Config attempting to parse: '/usr/lib/mono/gac/fastcgi-mono-server4/3.0.0.0__0738eb9f132ed756/fastcgi-mono-server4.exe.config'.
Mono: Assembly Loader probing location: '/usr/lib/mono/4.5/Mono.WebServer2.dll'.
Mono: Image addref Mono.WebServer2[0x1816b10] -> /usr/lib/mono/gac/Mono.WebServer2/0.4.0.0__0738eb9f132ed756/Mono.WebServer2.dll[0x1813c00]: 2
Mono: Assembly Mono.WebServer2[0x1816b10] added to domain fastcgi-mono-server4.exe, ref_count=1
**Mono: AOT module '/usr/lib/mono/gac/Mono.WebServer2/0.4.0.0__0738eb9f132ed756/Mono.WebServer2.dll.so' not found: /usr/lib/mono/gac/Mono.WebServer2/0.4.0.0__0738eb9f132ed756/Mono.WebServer2.dll.so: cannot open shared object file: No such file or directory
Mono: AOT module '/usr/lib/mono/aot-cache/amd64/Mono.WebServer2.dll.so' not found: /usr/lib/mono/aot-cache/amd64/Mono.WebServer2.dll.so: cannot open shared object file: No such file or directory**
Mono: Assembly Loader loaded assembly from location: '/usr/lib/mono/4.5/Mono.WebServer2.dll'.
Mono: Config attempting to parse: '/usr/lib/mono/gac/Mono.WebServer2/0.4.0.0__0738eb9f132ed756/Mono.WebServer2.dll.config'.
Mono: Config attempting to parse: '/etc/mono/assemblies/Mono.WebServer2/Mono.WebServer2.config'.
Mono: Assembly Ref addref fastcgi-mono-server4[0x180efe0] -> Mono.WebServer2[0x1816b10]: 2
Mono: Assembly Ref addref Mono.WebServer2[0x1816b10] -> mscorlib[0x17a3f00]: 3
Mono: Assembly Loader probing location: '/usr/lib/mono/4.5/System.Xml.dll'.
Mono: Image addref System.Xml[0x18190d0] -> /usr/lib/mono/gac/System.Xml/4.0.0.0__b77a5c561934e089/System.Xml.dll[0x1818390]: 2
Mono: Assembly System.Xml[0x18190d0] added to domain fastcgi-mono-server4.exe, ref_count=1
**Mono: AOT module '/usr/lib/mono/gac/System.Xml/4.0.0.0__b77a5c561934e089/System.Xml.dll.so' not found: /usr/lib/mono/gac/System.Xml/4.0.0.0__b77a5c561934e089/System.Xml.dll.so: cannot open shared object file: No such file or directory
Mono: AOT module '/usr/lib/mono/aot-cache/amd64/System.Xml.dll.so' not found: /usr/lib/mono/aot-cache/amd64/System.Xml.dll.so: cannot open shared object file: No such file or directory**
Mono: Assembly Loader loaded assembly from location: '/usr/lib/mono/4.5/System.Xml.dll'.
Mono: Config attempting to parse: '/usr/lib/mono/gac/System.Xml/4.0.0.0__b77a5c561934e089/System.Xml.dll.config'.
Mono: Config attempting to parse: '/etc/mono/assemblies/System.Xml/System.Xml.config'.
Mono: Assembly Ref addref fastcgi-mono-server4[0x180efe0] -> System.Xml[0x18190d0]: 2
Mono: Assembly Ref addref System.Xml[0x18190d0] -> mscorlib[0x17a3f00]: 4
Mono: Assembly Loader probing location: '/usr/lib/mono/4.5/System.dll'.
Mono: Image addref System[0x1821ab0] -> /usr/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll[0x1820c70]: 2
Mono: Assembly System[0x1821ab0] added to domain fastcgi-mono-server4.exe, ref_count=1
**Mono: AOT module '/usr/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll.so' not found: /usr/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll.so: cannot open shared object file: No such file or directory
Mono: AOT module '/usr/lib/mono/aot-cache/amd64/System.dll.so' not found: /usr/lib/mono/aot-cache/amd64/System.dll.so: cannot open shared object file: No such file or directory**
Mono: Assembly Loader loaded assembly from location: '/usr/lib/mono/4.5/System.dll'.
Mono: Config attempting to parse: '/usr/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll.config'.
Mono: Config attempting to parse: '/etc/mono/assemblies/System/System.config'.
Mono: Assembly Ref addref fastcgi-mono-server4[0x180efe0] -> System[0x1821ab0]: 2
Mono: Assembly Ref addref System[0x1821ab0] -> mscorlib[0x17a3f00]: 5
Mono: Assembly Ref addref Mono.WebServer2[0x1816b10] -> System[0x1821ab0]: 3
Mono: Assembly Ref addref System.Xml[0x18190d0] -> System[0x1821ab0]: 4
Mono: Assembly Loader probing location: '/usr/lib/mono/4.5/Mono.Security.dll'.
Mono: Image addref Mono.Security[0x1ba7920] -> /usr/lib/mono/gac/Mono.Security/4.0.0.0__0738eb9f132ed756/Mono.Security.dll[0x1ba4c60]: 2
Mono: Assembly Mono.Security[0x1ba7920] added to domain fastcgi-mono-server4.exe, ref_count=1
**Mono: AOT module '/usr/lib/mono/gac/Mono.Security/4.0.0.0__0738eb9f132ed756/Mono.Security.dll.so' not found: /usr/lib/mono/gac/Mono.Security/4.0.0.0__0738eb9f132ed756/Mono.Security.dll.so: cannot open shared object file: No such file or directory
Mono: AOT module '/usr/lib/mono/aot-cache/amd64/Mono.Security.dll.so' not found: /usr/lib/mono/aot-cache/amd64/Mono.Security.dll.so: cannot open shared object file: No such file or directory**
Mono: Assembly Loader loaded assembly from location: '/usr/lib/mono/4.5/Mono.Security.dll'.
Mono: Config attempting to parse: '/usr/lib/mono/gac/Mono.Security/4.0.0.0__0738eb9f132ed756/Mono.Security.dll.config'.
Mono: Config attempting to parse: '/etc/mono/assemblies/Mono.Security/Mono.Security.config'.
Mono: Assembly Ref addref Mono.Security[0x1ba7920] -> mscorlib[0x17a3f00]: 6
Mono: Assembly Loader probing location: '/usr/lib/mono/4.5/System.Configuration.dll'.
Mono: Image addref System.Configuration[0x198bca0] -> /usr/lib/mono/gac/System.Configuration/4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll[0x19b1f90]: 2
Mono: Assembly System.Configuration[0x198bca0] added to domain fastcgi-mono-server4.exe, ref_count=1
**Mono: AOT module '/usr/lib/mono/gac/System.Configuration/4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll.so' not found: /usr/li[2016-06-02 12:33:42Z] Debug fastcgi-mono-server4***
单声道对安装似乎不满意。或者至少是AOT模块。有人可以帮忙吗?
提前致谢。 彼得
更多信息: -
#mono -V
Mono JIT compiler version 4.0.4 (Stable 4.0.4.1/5ab4c0d Sun Oct 25 12:51:49 UTC 2015)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: altstack
Notifications: epoll
Architecture: amd64
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: sgen
#xsp -V
Exception caught during reading the configuration file:
System.InvalidProgramException: Invalid IL code in System.Configuration.ConfigurationManager:get_AppSettings (): IL_0000: ret
at Mono.WebServer.XSP.Server.get_AppSettings () [0x00000] in <filename unknown>:0
at Mono.WebServer.XSP.Server+ApplicationSettings..ctor () [0x00000] in <filename unknown>:0
XSP server is a sample server that hosts the ASP.NET runtime in a
minimalistic HTTP server
#fastcgi-mono-server --version
Unhandled Exception:
System.InvalidProgramException: Invalid IL code in System.Xml.XmlDocument:GetElementsByTagName (string): IL_0000: ret
at Mono.WebServer.ConfigurationManager.ImportSettings (System.Xml.XmlDocument doc, System.Collections.Specialized.NameValueCollection collection, Boolean allowDuplicates, Boolean insertEmptyValue) [0x00000] in <filename unknown>:0
at Mono.WebServer.ConfigurationManager..ctor (System.Reflection.Assembly asm, System.String resource) [0x00000] in <filename unknown>:0
at Mono.WebServer.FastCgi.Server.Main (System.String[] args) [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidProgramException: Invalid IL code in System.Xml.XmlDocument:GetElementsByTagName (string): IL_0000: ret
at Mono.WebServer.ConfigurationManager.ImportSettings (System.Xml.XmlDocument doc, System.Collections.Specialized.NameValueCollection collection, Boolean allowDuplicates, Boolean insertEmptyValue) [0x00000] in <filename unknown>:0
at Mono.WebServer.ConfigurationManager..ctor (System.Reflection.Assembly asm, System.String resource) [0x00000] in <filename unknown>:0
at Mono.WebServer.FastCgi.Server.Main (System.String[] args) [0x00000] in <filename unknown>:0
答案 0 :(得分:0)
我已经解决了这个问题。
我通过yast&amp; amp;安装了xsp zypper几次没有改进。最后,我尝试直接从
安装https://software.opensuse.org/package/xsp
这对我来说是一个重要的区别 - fastcgi-mono-server4不再抱怨未处理的异常。但是,xsp仍然如此。但鉴于我并不真的需要xsp,它并不担心我。
我的nginx&lt;&gt; fast-mono-server4&lt;&gt; asp.net web服务器正在运行!
现在用它做一些聪明的事......
感谢大家的帮助。