Search code examples
c#monoservicestackfastcgi-mono-server

Mono Views rendering (errors?) numbers, in IIS is ok


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

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.

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

See it here. http://aaviseu.guilhermecardoso.pt/home

What you think it may be?

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


Solution

  • 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).

    Edit:

    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.

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

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

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