[Mono-list] mod_mono Hangs

therebel therebel@tiscali.fr
Sun, 28 Mar 2004 18:33:05 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_002D_01C414F3.1C256E00
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable




Hello,

I have installed mod_mono on apache 1.3.29 On RH 9 without problems ..

A simple WebForm1.Aspx launch is OK.

I have now added a label and a datagrid ; the code is below ...

I compiled in release, i have in /bin the ByteFX.MySqlClient.dll

When in Internet Explorer i use :

http://192.168.1.2/WebMysql/WebForm1.aspx,

the request is launch but no response .. no timeout, and no error in =
error_log

Any idea?

Thanks..

Marc
France



[WebForm1.aspx.cs]

using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using ByteFX.Data.MySqlClient;

namespace WebMysql
{
 /// <summary>
 /// Description R=E9sum=E9 de WebForm1.
 /// </summary>
 public class WebForm1 : System.Web.UI.Page
 {
  protected System.Web.UI.WebControls.Label label1;
  protected System.Web.UI.WebControls.DataGrid dgPages;
  private void Page_Load(object sender, System.EventArgs e)
  {
      string connectionString =3D
          "Server=3D192.168.1.1;" +
    "Database=3Dhl;" +
    "User ID=3Droot;" +
    "Password=3D;";



    ByteFX.Data.MySqlClient.MySqlConnection dbcon;
       dbcon =3D new =
ByteFX.Data.MySqlClient.MySqlConnection(connectionString);
       dbcon.Open();
    ByteFX.Data.MySqlClient.MySqlCommand dbcmd =3D =
dbcon.CreateCommand();

       string sql =3D=20
     "SELECT * FROM players ";
    dbcmd.CommandText =3D sql;


   dgPages.DataSource =3D dbcmd.ExecuteReader();
   dgPages.DataBind();
      label1.Text =3D dgPages.Items.Count.ToString();

   dbcon.Close();

  }
  #region Code g=E9n=E9r=E9 par le concepteur Web Form
  override protected void OnInit(EventArgs e)
  {
   //
   // CODEGEN: cet appel est requis par le concepteur services Web =
ASP.NET.
   //
   InitializeComponent();
   base.OnInit(e);
  }
 =20
  /// <summary>
  /// M=E9thode requise pour la gestion du concepteur - ne pas modifier
  /// le contenu de cette m=E9thode avec l'=E9diteur de code.
  /// </summary>
  private void InitializeComponent()
  {
   this.Load +=3D new System.EventHandler(this.Page_Load);
  }
  #endregion
 }
}


------=_NextPart_000_002D_01C414F3.1C256E00
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><BR></DIV>
<DIV><FONT face=3DArial size=3D2>Hello,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I have installed mod_mono on apache =
1.3.29 On RH 9=20
without problems ..</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>A simple WebForm1.Aspx launch is =
OK.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I have now added a label and a datagrid =
; the code=20
is below ...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I compiled in release, i have in /bin =
the=20
ByteFX.MySqlClient.dll</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>When in Internet Explorer i use =
:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><A=20
href=3D"http://192.168.1.2/WebMysql/WebForm1.aspx">http://192.168.1.2/Web=
Mysql/WebForm1.aspx</A>,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>the request is launch but no response =
.. no=20
timeout, and no error in error_log</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Any idea?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks..</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Marc</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>France</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>[WebForm1.aspx.cs]</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>using System;<BR>using =
System.Collections;<BR>using=20
System.ComponentModel;<BR>using System.Data;<BR>using =
System.Drawing;<BR>using=20
System.Web;<BR>using System.Web.SessionState;<BR>using =
System.Web.UI;<BR>using=20
System.Web.UI.WebControls;<BR>using System.Web.UI.HtmlControls;<BR>using =

ByteFX.Data.MySqlClient;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>namespace WebMysql<BR>{<BR>&nbsp;///=20
&lt;summary&gt;<BR>&nbsp;/// Description R=E9sum=E9 de =
WebForm1.<BR>&nbsp;///=20
&lt;/summary&gt;<BR>&nbsp;public class WebForm1 :=20
System.Web.UI.Page<BR>&nbsp;{<BR>&nbsp;&nbsp;protected=20
System.Web.UI.WebControls.Label label1;<BR>&nbsp;&nbsp;protected=20
System.Web.UI.WebControls.DataGrid dgPages;<BR>&nbsp;&nbsp;private void=20
Page_Load(object sender, System.EventArgs=20
e)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp; &nbsp; string connectionString =

=3D<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
"Server=3D192.168.1.1;" +<BR>&nbsp;&nbsp;&nbsp; "Database=3Dhl;"=20
+<BR>&nbsp;&nbsp;&nbsp; "User ID=3Droot;" +<BR>&nbsp;&nbsp;&nbsp;=20
"Password=3D;";</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp;=20
ByteFX.Data.MySqlClient.MySqlConnection=20
dbcon;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dbcon =3D new=20
ByteFX.Data.MySqlClient.MySqlConnection(connectionString);<BR>&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;=20
dbcon.Open();<BR>&nbsp;&nbsp;&nbsp; ByteFX.Data.MySqlClient.MySqlCommand =
dbcmd =3D=20
dbcon.CreateCommand();</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
string sql =3D=20
<BR>&nbsp;&nbsp;&nbsp;&nbsp; "SELECT * FROM players =
";<BR>&nbsp;&nbsp;&nbsp;=20
dbcmd.CommandText =3D sql;</FONT></DIV>
<DIV>&nbsp;</DIV><FONT face=3DArial size=3D2>
<DIV><BR>&nbsp;&nbsp;&nbsp;dgPages.DataSource =3D=20
dbcmd.ExecuteReader();<BR>&nbsp;&nbsp;&nbsp;dgPages.DataBind();<BR>&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;=20
label1.Text =3D dgPages.Items.Count.ToString();</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;dbcon.Close();</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;}<BR>&nbsp;&nbsp;#region Code g=E9n=E9r=E9 par le =
concepteur Web=20
Form<BR>&nbsp;&nbsp;override protected void OnInit(EventArgs=20
e)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;//<BR>&nbsp;&nbsp;&nbsp;// =
CODEGEN: cet=20
appel est requis par le concepteur services Web=20
ASP.NET.<BR>&nbsp;&nbsp;&nbsp;//<BR>&nbsp;&nbsp;&nbsp;InitializeComponent=
();<BR>&nbsp;&nbsp;&nbsp;base.OnInit(e);<BR>&nbsp;&nbsp;}<BR>&nbsp;&nbsp;=
<BR>&nbsp;&nbsp;///=20
&lt;summary&gt;<BR>&nbsp;&nbsp;/// M=E9thode requise pour la gestion du =
concepteur=20
- ne pas modifier<BR>&nbsp;&nbsp;/// le contenu de cette m=E9thode avec =
l'=E9diteur=20
de code.<BR>&nbsp;&nbsp;/// &lt;/summary&gt;<BR>&nbsp;&nbsp;private void =

InitializeComponent()<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;this.Load =
+=3D new=20
System.EventHandler(this.Page_Load);<BR>&nbsp;&nbsp;}<BR>&nbsp;&nbsp;#end=
region<BR>&nbsp;}<BR>}</DIV>
<DIV>&nbsp;</DIV>
<DIV></FONT><FONT face=3DArial size=3D2></FONT><A=20
href=3D"mailto:mono-list@lists.ximian.com"></A>&nbsp;</DIV></BODY></HTML>=


------=_NextPart_000_002D_01C414F3.1C256E00--