Mono Views 呈现(错误?)数字,在 IIS 中是可以的 [英] Mono Views rendering (errors?) numbers, in IIS is ok

查看:64
本文介绍了Mono Views 呈现(错误?)数字,在 IIS 中是可以的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Mono 2.10 上运行 .NET,使用 ServiceStack 3.9.55 开发

I'm running a .NET on mono 2.10, developed with ServiceStack 3.9.55

当我使用 IIS Express 运行网站时,一切正常,但是使用 mono 2.10 和 fastcgi-server4 时,页面会呈现额外的数字,例如 0 和 f7e.

When i run the website with IIS Express everything is OK, but with mono 2.10 and fastcgi-server4 the page render extra numbers like 0 and f7e.

我已经在 Ubuntu 12、Debian 6 和 7 上对此进行了测试,并且显示了相同的数字.

I've already tested this o Ubuntu 12, Debian 6 and 7 and the same numbers are displayed.

请看这里.http://aaviseu.guilhermecardoso.pt/home

你认为它可能是什么?

更新:此错误仅出现在 2.10 上,并且与压缩编码(2x)有关.我不知道这什么时候修复,但我使用 3.2.7 没有任何问题

UPDATE: This error only appears on 2.10 and it's related with chuncked encoding (on 2x). I don't know when this was fixed, but i'm using 3.2.7 without any problem

推荐答案

看来你和我遇到了类似的问题:在 Mono + FastCGI 中托管 ServiceStack 时二进制数据损坏- f7e 大概是数据大小(3966 字节).

Looks like you're having a similar problem as me: Binary data corrupted when hosting ServiceStack in Mono + FastCGI - f7e is probably the data size (3966 bytes).

这是由于分块传输(在 HTTP 1.1 中引入).我能够通过强制请求使用 HTTP 1.0 来解决我的问题.

This is due to chunked transfers (introduced in HTTP 1.1). I was able to work around my problem by forcing the request to use HTTP 1.0.

在我的问题上,knocte 建议了一个可以解决您的问题的单声道补丁:

On my question knocte suggested a patch to mono that might fix your problem:

补丁:https://bugzilla.xamarin.com/attachment.cgi?id=3356

文件:https://github.com/mono/mono/blob/master/mcs/class/System.Web/System.Web/HttpResponse.cs

这篇关于Mono Views 呈现(错误?)数字,在 IIS 中是可以的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆