[Mono-aspnet-list] mod_modo intermittent exception on postback

CS aarons at cherniaksoftware.com
Tue May 20 16:16:36 UTC 2014


I am running mod_mono 3.4.0 under Apache 2.2 on a FreeBSD 10.0 machine. My
ASP.NET 4.5 application was developed in Visual Studio on a Windows machine
and deployed to the FreeBSD server.

The application consists of an aspx page containing a form that uses the
asp:Wizard control.

When navigating forward / back between the wizard pages, I get an
intermittent exception thrown by the GetClientBlock method in 
ModMonoRequest.cs
<https://github.com/mono/xsp/blob/master/src/Mono.WebServer.Apache/ModMonoRequest.cs> 
When I inspected the postback fields using Firebug, I noticed that mod_mono
produces an exceptionally large *__VIEWSTATE* field. When testing under IIS
Express 7, the __VIEWSTATE submitted was 1.8 kB, whereas under mod_mono, it
was 22 kB.

I am wondering if the giant ViewState has something to do with my exception,
since GetClientBlock reads an input buffer.(I also asked  this Stackoverflow
question <http://stackoverflow.com/q/23747570/3271599>   regarding the giant
Viewstate.)

Exception stack trace from browser:
 at Mono.WebServer.ModMonoRequest.GetClientBlock (System.Byte[] bytes, Int32
position, Int32 size) [0x0007f] in
/var/ports/basejail/usr/ports/www/xsp/work/xsp-2.10.2/src/Mono.WebServer.Apache/ModMonoRequest.cs:587
at Mono.WebServer.ModMonoWorker.Read (System.Byte[] buffer, Int32 position,
Int32 size) [0x0000a] in
/var/ports/basejail/usr/ports/www/xsp/work/xsp-2.10.2/src/Mono.WebServer.Apache/ModMonoWorker.cs:268
at Mono.WebServer.ModMonoWorkerRequest.ReadEntityBody (System.Byte[] buffer,
Int32 size) [0x0005e] in
/var/ports/basejail/usr/ports/www/xsp/work/xsp-2.10.2/src/Mono.WebServer.Apache/ModMonoWorkerRequest.cs:583
at System.Web.HttpRequest.MakeInputStream () [0x0022f] in
/var/ports/basejail/usr/ports/lang/mono/work/mono-3.4.0/mcs/class/System.Web/System.Web/HttpRequest.cs:904
at System.Web.HttpRequest.get_InputStream () [0x0000b] in
/var/ports/basejail/usr/ports/lang/mono/work/mono-3.4.0/mcs/class/System.Web/System.Web/HttpRequest.cs:1149
at System.Web.HttpRequest.LoadWwwForm () [0x00000] in
/var/ports/basejail/usr/ports/lang/mono/work/mono-3.4.0/mcs/class/System.Web/System.Web/HttpRequest.cs:662
at System.Web.HttpRequest.get_FormUnvalidated () [0x0004e] in
/var/ports/basejail/usr/ports/lang/mono/work/mono-3.4.0/mcs/class/System.Web/System.Web/HttpRequest.cs:713
at System.Web.HttpRequest.get_Form () [0x00000] in
/var/ports/basejail/usr/ports/lang/mono/work/mono-3.4.0/mcs/class/System.Web/System.Web/HttpRequest.cs:724
at System.Web.UI.Page.DeterminePostBackMode () [0x00043] in
/var/ports/basejail/usr/ports/lang/mono/work/mono-3.4.0/mcs/class/System.Web/System.Web.UI/Page.cs:816
at System.Web.UI.Page.InternalProcessRequest () [0x00021] in
/var/ports/basejail/usr/ports/lang/mono/work/mono-3.4.0/mcs/class/System.Web/System.Web.UI/Page.cs:1396
at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context)
[0x00062] in
/var/ports/basejail/usr/ports/lang/mono/work/mono-3.4.0/mcs/class/System.Web/System.Web.UI/Page.cs:1269 




--
View this message in context: http://mono.1490590.n4.nabble.com/mod-modo-intermittent-exception-on-postback-tp4662878.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20140520/b986454a/attachment.html>


More information about the Mono-aspnet-list mailing list