[Mono-list] ASP .NET Debug/Trace
Pedro Santos
pre@oninetspeed.pt
Fri, 05 Dec 2003 23:31:57 +0000
--=-kuHmLpzjfAeBCX0p3N20
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
> <%@ Page Language=3D"C#" Trace=3D"True" %>
> <html>
> <body>
> <% Trace.Warn("Buu","Buu"); %>
> </body>
> </html>
I was wondering in the code when I notice that Trace property in
System.Web.UI.Page is not initialized with an instance of TraceContext
(so that code throws a null reference execption). I also noticed that
all the TraceContext methods (Warn, Write) eventualy throw a
NotImplementedException.
You guys could create an instace of TraceContext, so that the programmer
would be notified that this resource is not implemented. But that would
lead to incompatibility with win code... :P
--=20
Pedro Santos <www.psantos.net>
"Si minor plus est ergo nihil sunt omnia..."
--=-kuHmLpzjfAeBCX0p3N20
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQA/0RVt00b8YfrkjegRAjuzAJ0bDxrrDWmg99krwew1debXOMS9xgCfc+h3
8pwwsNF1jW1DlF/eYlWgbPU=
=7Ah8
-----END PGP SIGNATURE-----
--=-kuHmLpzjfAeBCX0p3N20--