[Mono-devel-list] Re: [mono-vb] AW: VB script in ASP page

Rafael Teixeira Rafael Teixeira <monoman@gmail.com>
Tue, 17 Aug 2004 12:22:42 -0300


There's already a bug case for that (overload selection), put there by
Jochen a long time ago...

On Tue, 17 Aug 2004 06:36:35 -0600, B Anirban <banirban@novell.com> wrote:
> Oh Great. This is a great news.
>=20
> But its really surprising why the problem is occurring. It seems that mba=
s compiler is going wrong while trying to resolve overloaded methods and ca=
lling function calls HtmlTextWriter.Write(int) instead of HtmlTextWriter.Wr=
ite(string).
>=20
> Now, I am even more puzzled :-).
>=20
> >>> "Jochen Wezel" <jwezel@compumaster.de> 17-Aug-04 5:54:46 PM >>>
> The problem Anirban described, I only get when I try to use <%=3D %> or <=
% %>.
>=20
> Example not working:
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> <%@ PAge language=3D"VB" %>
> <html>
> <body>
> <% response.write ("Inside of Page_Load<br>") %>
> Hello world of VB!
> </body>
> </html>
>=20
> Example working :)
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> <%@ PAge language=3D"VB" %>
> <html>
> <body>
> <script language=3D"vb">
> sub Page_Load (sender as object, e as eventargs)
> response.write ("Inside of Page_Load<br>")
> end sub
> </script>
> Hello world of VB!
> </body>
> </html>
>=20
> -Jochen
>=20
> -----Urspr=FCngliche Nachricht-----
> Von: B Anirban [mailto:banirban@novell.com]
> Gesendet: Dienstag, 17. August 2004 11:27
> An: Jochen Wezel; mono-vb@lists.ximian.com
> Cc: mono-devel-list@lists.ximian.com
> Betreff: VB script in ASP page
>=20
> Hi,
> I am able to compile the generated VB code in mbas.
> But when I try to run the ASP page get the following exception in browser=
.
>=20
> Server error in '/' application
> Description: Error processing request.
>=20
> Error Message: HTTP 500.
>=20
> Stack Trace:
>=20
> System.FormatException: Unknown char: <
> in <0x0066b> System.Double:Parse
> (string,System.Globalization.NumberStyles,System.IFormatProvider)
> in <0x001ec> Microsoft.VisualBasic.VBUtils:isNumber (string,double[]) in =
<0x0004d> Microsoft.VisualBasic.CompilerServices.IntegerType:FromString (st=
ring) in <0x0015f> ASP.chkasp_aspx:__RenderTree
> (System.Web.UI.HtmlTextWriter,System.Web.UI.Control)
> in <0x00069> (wrapper delegate-invoke)
> System.MulticastDelegate:invoke_void_HtmlTextWriter_Control
> (System.Web.UI.HtmlTextWriter,System.Web.UI.Control)
> in <0x00053> System.Web.UI.Control:RenderChildren
> (System.Web.UI.HtmlTextWriter)
> in <0x00011> System.Web.UI.Control:Render
> (System.Web.UI.HtmlTextWriter)
> in <0x0001c> System.Web.UI.Control:RenderControl
> (System.Web.UI.HtmlTextWriter)
> in <0x003f8> System.Web.UI.Page:InternalProcessRequest () in <0x000ba> Sy=
stem.Web.UI.Page:ProcessRequest
> (System.Web.HttpContext)
> in <0x002e3> ExecuteHandlerState:Execute () in <0x00082> StateMachine:Exe=
cuteState
> (System.Web.HttpApplication/IStateHandler,bool&)
>=20
> Can I get some help from ASP gurus to resolve this bug.
> This looks to me a VBCodeGeneration bug.
> Hopefully, this is the final hurdle to run VBScript in ASP.
>=20
> Thanks.
> Anirban.
>=20
> _______________________________________________
> Mono-vb mailing list
> Mono-vb@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-vb
>=20
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>=20


--=20
Rafael "Monoman" Teixeira
---------------------------------------
Cognition is not a representation of an objectively existing world
but is a bringing forth of a world in the process of living.
-- Fritjof Capra, citing=20
   Humberto Maturana and Francisco Varella's "Santiago Theory of Cognition"