我在macbook pro上使用fast-cgi-mono-server作为本地asp.net web应用程序 .

配置是: - nginx 1.6.2 - php 5.5.14 - php-fpm 5.5.14 - mono 3.12.0

一般来说,一切正常,最多一页 . 加载页面时,服务器崩溃,我真的很难理解为什么 .

为了尽可能精确,这里是配置文件以及我认为有意义的不同日志:

  • nginx.conf:
worker_processes  1;

events {worker_connections 758; }

http {include mime.types; default_type application / octet-stream; access_log /var/www/log/nginx.access.log; error_log /var/www/log/nginx.error.log;

# Basic Settings
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;


include /usr/local/etc/nginx/sites-enabled/*;

}

  • 已启用唯一网站( /usr/local/etc/nginx/sites-enabled/mysite

`server {listen 80; server_name my.site.com; access_log /var/www/log/my.site.com.access.log; error_log /var/www/log/my.site.com.error.log;

client_header_timeout 2000;
    client_body_timeout 2000;
    send_timeout 2000;

    location / {
            root /var/www/myApp;
            index index.aspx index.html index.htm default.aspx Default.aspx;
            fastcgi_index Default.aspx;
            fastcgi_pass 127.0.0.1:9000;

            #fastcgi_pass unix:/var/run/php5-fpm.sock;
            include /usr/local/etc/nginx/fastcgi_params;
    }

}

  • my.site.com.error.log

2015/02/09 10:10:22 [错误] 1239#0:* 1上游过早关闭连接,同时从上游读取响应头,客户端:127.0.0.1,服务器:my.site.com,请求:"GET /Views/RecipeReportViewer.aspx HTTP/1.1",上游: "fastcgi://127.0.0.1:9000",主持人:"127.0.0.1",推荐人:“http://127.0.0.1/

  • 单声道错误崩溃

[2015-02-09 10:20:00Z]通知开始接收连接记录 .

2月9日10:20:01 macbook.local mono [1301]:CGContextDrawImage:无效的上下文0x0 . 这是一个严重的错误 . 该应用程序或其使用的库正在使用无效的上下文,从而导致系统稳定性和可靠性的整体降低 . 此通知是礼貌的:请解决此问题 . 它将成为即将到来的更新中的致命错误 .

2月9日10:20:01 macbook.local mono [1301]:CGContextSynchronize:无效的上下文0x0 . 这是一个严重的错误 . 该应用程序或其使用的库正在使用无效的上下文,从而导致系统稳定性和可靠性的整体降低 . 此通知是礼貌的:请解决此问题 . 它将成为即将到来的更新中的致命错误 .

2月9日10:20:01 macbook.local mono [1301]:CGContextRestoreGState:无效的上下文0x0 . 这是一个严重的错误 . 该应用程序或其使用的库正在使用无效的上下文,从而导致系统稳定性和可靠性的整体降低 . 此通知是礼貌的:请解决此问题 . 它将成为即将到来的更新中的致命错误 .

跟踪/ BPT陷阱:5

我已经尝试增加fastcgi和nginx的缓冲区和超时时间,但崩溃几乎立即发生在加载si我怀疑超时是这里的问题...我也隔离了我的代码行崩溃代码(并且工作完全正常在Debian上,相同的配置,除了我使用Mono 3.10)...

如果有用,行崩溃就是在调用DevExpress库时,即ASPXDocumentViewer . 失败的是

this.ASPxDocumentViewer1.Report = rep;

即当我以编程方式设置报表实例时 . 再一次,这在Debian上运行良好 .

降级Mono是我唯一的选择,还是我错过了一些让图书馆崩溃的明显的东西?

提前致谢!问候,N .

编辑:我刚刚在Debian上升级到Mono 3.12,它工作正常 . 所以这不是单声道版本 . 知道在哪里看?谢谢!