[Pkg-mono-devel] Re: mod-mono and xsp

Pablo Fischer pablo@pablo.com.mx
Thu, 14 Oct 2004 11:50:51 -0500


Ughh... I tagged without patchinng it.. I'll patch it again before
uploading it to Debian servers.


Pablo
El jue, 14-10-2004 a las 11:24, Tomasz Rybak escribi=F3:
> W li=B6cie z czw, 14-10-2004, godz. 14:07, Fabian Fagerholm pisze:=20
> > On Thu, 2004-10-14 at 14:38 +0300, Fabian Fagerholm wrote:
> > > On Wed, 2004-10-13 at 10:04 -0500, Pablo Fischer wrote:
> > > > I uploaded a new version (prev1) and it works fine (I tested it i=
n
> > > > apache 1.3, please try with apache2).
> > >=20
> > > I'm going through it now.
> >=20
> > Ok, I've tested libapache2-mod-mono and I'm able to see the
> > asp.net-examples. Some of them don't work, but this is another proble=
m.
>=20
> dbpage[12].aspx don'y work because of outdated web.config:
>=20
> barad-dur:~# lynx -dump http://localhost/samples/dbpage1.aspx
>=20
>                     Server error in '/samples' application
>      _________________________________________________________________
>=20
>    Description: Error processing request.
>=20
>    Error Message: HTTP 500.
>=20
>    Stack Trace:
>=20
> System.NullReferenceException: Object reference not set to an instance
> of an ob
> ject
> in <0x00072> ASP.dbpage1_aspx:Page_Init (object,System.EventArgs)
> in <0x00069> (wrapper delegate-invoke)
> System.MulticastDelegate:invoke_void_obj
> ect_EventArgs (object,System.EventArgs)
> in <0x00086> System.Web.UI.Control:OnInit (System.EventArgs)
> in <0x00273> System.Web.UI.Control:InitRecursive (System.Web.UI.Control=
)
> in <0x00060> System.Web.UI.Page:InternalProcessRequest ()
> in <0x000c2> System.Web.UI.Page:ProcessRequest (System.Web.HttpContext)
> in <0x002eb> ExecuteHandlerState:Execute ()
> in <0x00084> StateMachine:ExecuteState
> (System.Web.HttpApplication/IStateHandle
> r,bool&)
>      _________________________________________________________________
>=20
>=20
> and after copying web.config from upstream xsp-1.0.2:
>=20
>=20
> barad-dur:~# cp web.config /usr/share/asp.net-demos/asp/web.config
> barad-dur:~# lynx -dump http://localhost/samples/dbpage1.aspx
>=20
>   Database Error
>=20
>    Sorry, a database error has occurred.
>=20
>    You should set up a database for user 'monotest', password 'monotest=
'
>    and dbname 'monotest'.
>=20
>    Then modify the variables DBProviderAssembly, DBConnectionType and
>    DBConnectionString in server.exe.config file to fit your needs.
>=20
>    The database should have a table called customers created with the
>    following command (or similar):
> CREATE TABLE "test" (
>         "person" character varying(256) NOT NULL,
>         "email" character varying(256) NOT NULL
> );
>=20
>    The error was:
>  Npgsql.NpgsqlException:
> database "monotest" does not exist
> Severity: FATAL
> Code: 3D000
> in <0x00061> Npgsql.NpgsqlConnection:CheckErrors ()
> in <0x0004f> (wrapper remoting-invoke-with-check)
> Npgsql.NpgsqlConnection:Check
> Errors ()
> in <0x00447> Npgsql.NpgsqlConnection:Open ()
>=20
>    The error was:
>  System.InvalidOperationException: The Connection is not open.
> in <0x000aa> Npgsql.NpgsqlCommand:CheckConnectionState ()
> in <0x0004f> (wrapper remoting-invoke-with-check)
> Npgsql.NpgsqlCommand:CheckCon
> nectionState ()
> in <0x00012> Npgsql.NpgsqlCommand:ExecuteCommand ()
> in <0x0004f> (wrapper remoting-invoke-with-check)
> Npgsql.NpgsqlCommand:ExecuteC
> ommand ()
> in <0x00040> Npgsql.NpgsqlCommand:ExecuteReader
> (System.Data.CommandBehavior)
> in <0x00054> (wrapper remoting-invoke-with-check)
> Npgsql.NpgsqlCommand:ExecuteR
> eader (System.Data.CommandBehavior)
> in <0x0002d> Npgsql.NpgsqlCommand:ExecuteReader ()
> in <0x00050> (wrapper remoting-invoke-with-check)
> Npgsql.NpgsqlCommand:ExecuteR
> eader ()
> in <0x00028> Npgsql.NpgsqlCommand:System.Data.IDbCommand.ExecuteReader
> ()
> in <0x0011a> ASP.dbpage1_aspx:UpdateTable (string,string)
> barad-dur:~#
>=20
> web.config carried by Debian package is from xsp-0.9.1, and since
> then names of modules has been changed.
> So maintainers, please either remove web.config from subversion=20
> repository (see attached patch) or copy upstream version=20
> into repository.
--=20
Pablo Fischer Sandoval (pablo [arroba/at] pablo.com.mx)
Fingerprint:  5973 0F10 543F 54AE 1E41  EC81 0840 A10A 74A4 E5C0
http://www.pablo.com.mx
http://www.debianmexico.org