[Mono-list] Re: XSP page rendering problem

Nate Chadwick nate.chadwick at gmail.com
Fri Apr 21 16:07:31 EDT 2006


Further research and debugging turned up this:  I was using a copy and
pasted for SMTP class that did this after a QUIT (where s is a socket)
:

byte[] bytes = new byte[1024];
while (s.Available==0)
{
   System.Threading.Thread.Sleep(100);
}

After one post to the ASPX, xsp would become completely unstable
pushing out garbled pages on all subsequent requests as described
below. Previously I had used System.Net.Mail but I was trying to
rollback to 1.1 so that I could use VS 2003 and the vsprj2make add-in.

The attached error also popped up at some point but was behind my
other windows so went unnoticed.  It seems like the bug in the code
caused an infinite loop condition.

At any rate I guess the lesson learned is that when the XSP served
pages come out garbled with gobleygook in them - check your loops.

-nate

On 4/20/06, Nate Chadwick <nate.chadwick at gmail.com> wrote:
> I scp'd the c:\inetpub\wwwroot\ folder straight up, with no changes
> whatsoever,  to a RH linux box  into a directory configured with mono
> 1.1.4, mod_mono and apache.  And the page serves correctly.  So this
> really seems like it is a windows problem.  Both machines that I
> tested on are dual core x64 XP systems.  One is intel based and the
> other is an amd opteron based system.
>
> Could this be a compatibility issue with 32-bit mono on x64 Windows XP?
>
> -nate
>
> On 4/20/06, Nate Chadwick <nate.chadwick at gmail.com> wrote:
> >
> > Hi,
> >
> > I have been trying to port a relatively simple single page ASP.NET app to mono on XSP from VS 2003 and .Net
> > 1.1.  The behavior is inconsistent and even with the --verbose tag I am seeing no errors in the XSP or XSP2 consoles.
> >
> > After what seems like a random number of refreshes,  XSP just dies, no fault displayed.
> >
> >
> > On Windows XP in IE or Firefox with XSP or XSP 2 on Mono 1.1.15 or Mono 1.1.13.6.  This happens when testing from vsprj2make in Visual Studio or when starting at the command line.
> >
> >
> >
> > 1.) If I refresh the browser multiple times.
> >
> > 2.) A different rendering of the page appears each time.
> >
> > 3.) The page never renders completely (just hangs at somerandom point halfway through).
> >
> >
> > 4.) There is no code in the view of the page so it should just be rendering the form. if(IsPostBack){//do stuff}
> >
> > The more interesting rendition is pasted below.
> >
> > <parsererror xmlns
> > =
> > "http://www.mozilla.org/newlayout/xml/parsererror.xml">XML Parsing Error: syntax error
> >
> > Location:
> > http://localhost:8080/InvestigatorApp.aspx
> > Line Number 1, Column 1:<sourcetext>X �/n���T���L�xl
�n�F׶m/�gO��� �1N��sy��y
> > ^</sourcetext></
> > parsererror>
> >
> >
> > This was happening on my machine at work and when I tried it on the home system I get the same results.
> >
> > I am not sure where to start troubleshooting this.
> >
> > Any help appreciated.
> >
> > Thanks,
> >
> > -nate
> >
> >
> >
> >
> >
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mono_error.PNG
Type: image/png
Size: 8635 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-list/attachments/20060421/24e73215/mono_error.png


More information about the Mono-list mailing list