[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> </DIV>
<DIV><BR></DIV>
<DIV><FONT face=3DArial size=3D2>Hello,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </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> </DIV>
<DIV><FONT face=3DArial size=3D2>A simple WebForm1.Aspx launch is =
OK.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </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> </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> </DIV>
<DIV><FONT face=3DArial size=3D2>When in Internet Explorer i use =
:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </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> </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> </DIV>
<DIV><FONT face=3DArial size=3D2>Any idea?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks..</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </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> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>[WebForm1.aspx.cs]</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </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> </DIV>
<DIV><FONT face=3DArial size=3D2>namespace WebMysql<BR>{<BR> ///=20
<summary><BR> /// Description R=E9sum=E9 de =
WebForm1.<BR> ///=20
</summary><BR> public class WebForm1 :=20
System.Web.UI.Page<BR> {<BR> protected=20
System.Web.UI.WebControls.Label label1;<BR> protected=20
System.Web.UI.WebControls.DataGrid dgPages;<BR> private void=20
Page_Load(object sender, System.EventArgs=20
e)<BR> {<BR> string connectionString =
=3D<BR> =20
"Server=3D192.168.1.1;" +<BR> "Database=3Dhl;"=20
+<BR> "User ID=3Droot;" +<BR> =20
"Password=3D;";</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2> =20
ByteFX.Data.MySqlClient.MySqlConnection=20
dbcon;<BR> dbcon =3D new=20
ByteFX.Data.MySqlClient.MySqlConnection(connectionString);<BR>  =
; =20
dbcon.Open();<BR> ByteFX.Data.MySqlClient.MySqlCommand =
dbcmd =3D=20
dbcon.CreateCommand();</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2> =
string sql =3D=20
<BR> "SELECT * FROM players =
";<BR> =20
dbcmd.CommandText =3D sql;</FONT></DIV>
<DIV> </DIV><FONT face=3DArial size=3D2>
<DIV><BR> dgPages.DataSource =3D=20
dbcmd.ExecuteReader();<BR> dgPages.DataBind();<BR> =
=20
label1.Text =3D dgPages.Items.Count.ToString();</DIV>
<DIV> </DIV>
<DIV> dbcon.Close();</DIV>
<DIV> </DIV>
<DIV> }<BR> #region Code g=E9n=E9r=E9 par le =
concepteur Web=20
Form<BR> override protected void OnInit(EventArgs=20
e)<BR> {<BR> //<BR> // =
CODEGEN: cet=20
appel est requis par le concepteur services Web=20
ASP.NET.<BR> //<BR> InitializeComponent=
();<BR> base.OnInit(e);<BR> }<BR> =
<BR> ///=20
<summary><BR> /// M=E9thode requise pour la gestion du =
concepteur=20
- ne pas modifier<BR> /// le contenu de cette m=E9thode avec =
l'=E9diteur=20
de code.<BR> /// </summary><BR> private void =
InitializeComponent()<BR> {<BR> this.Load =
+=3D new=20
System.EventHandler(this.Page_Load);<BR> }<BR> #end=
region<BR> }<BR>}</DIV>
<DIV> </DIV>
<DIV></FONT><FONT face=3DArial size=3D2></FONT><A=20
href=3D"mailto:mono-list@lists.ximian.com"></A> </DIV></BODY></HTML>=
------=_NextPart_000_002D_01C414F3.1C256E00--