0

我最近将我的opensuse 12.2 机器升级到了leap 42.1。

我想让 Web 服务器采用以下形式:- 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 
4

1 回答 1

0

我已经解决了这个问题。

我通过 yast & zypper 安装了 xsp 几次,没有改进。最后,我尝试直接从

https://software.opensuse.org/package/xsp

这对我来说至关重要——fastcgi-mono-server4 不再抱怨未处理的异常。但是,xsp 仍然可以。但考虑到我真的不想要 xsp,我并不担心。

我的 nginx <> fast-mono-server4 <> asp.net 网络服务器正在工作!

现在用它做一些聪明的事情......

感谢大家的帮助。

于 2016-06-03T07:20:01.100 回答