Opensuse Leap 42.1:xsp 和 fast-mono-server 问题

Opensuse Leap 42.1:xsp 和 fast-mono-server 问题

我最近将我的 openSUSE 机器从 12.2 升级到了 Leap 42.1 (x86_64)。基本一切顺利。但是,我通过 yast (KDE) 安装了 mono 和 xsp,发现 xsp 和 fastcgi-mono-server4 都不太好。

如果我向这些模块(mono、xsp 和 fastcgi-mono-server4)询问它们的版本号,我会得到以下返回结果:-

 #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

我注意到 mono 架构是 amd64,而我期望的是 x86_64。

当然,xsp 和 fastcgi-mono-server4 都会抱怨未处理的异常。

有人知道我该怎么做才能解决这个问题吗?

提前致谢

彼得

答案1

我已经解决了这个问题。

我多次通过 yast 和 zypper 安装 xsp,但效果不理想。最后,我尝试直接从

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

这对我来说产生了重大影响 - fastcgi-mono-server4 不再抱怨未处理的异常。然而,xsp 仍然如此。但考虑到我并不真正想要 xsp,所以我并不担心。

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

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

相关内容