[mono-vb] AW: VB script in ASP page

B Anirban banirban@novell.com
Tue, 17 Aug 2004 06:36:35 -0600

Oh Great. This is a great news.

But its really surprising why the problem is occurring. It seems that mbas =
compiler is going wrong while trying to resolve overloaded methods and =
calling function calls HtmlTextWriter.Write(int) instead of HtmlTextWriter.=

Now, I am even more puzzled :-).

>>> "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 <% =

Example not working:
<%@ PAge language=3D"VB" %>
<% response.write ("Inside of Page_Load<br>") %>
Hello world of VB!

Example working :)
<%@ PAge language=3D"VB" %>
<script language=3D"vb">
sub Page_Load (sender as object, e as eventargs)
response.write ("Inside of Page_Load<br>")
end sub
Hello world of VB!


-----Urspr=FCngliche Nachricht-----
Von: B Anirban [mailto:banirban@novell.com]=20
Gesendet: Dienstag, 17. August 2004 11:27
An: Jochen Wezel; mono-vb@lists.ximian.com=20
Cc: mono-devel-list@lists.ximian.com=20
Betreff: VB script in ASP page

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.

Server error in '/' application
Description: Error processing request.

Error Message: HTTP 500.

Stack Trace:

System.FormatException: Unknown char: <
in <0x0066b> System.Double:Parse
in <0x001ec> Microsoft.VisualBasic.VBUtils:isNumber (string,double[]) in =
<0x0004d> Microsoft.VisualBasic.CompilerServices.IntegerType:FromString =
(string) in <0x0015f> ASP.chkasp_aspx:__RenderTree
in <0x00069> (wrapper delegate-invoke)
in <0x00053> System.Web.UI.Control:RenderChildren
in <0x00011> System.Web.UI.Control:Render
in <0x0001c> System.Web.UI.Control:RenderControl
in <0x003f8> System.Web.UI.Page:InternalProcessRequest () in <0x000ba> =
in <0x002e3> ExecuteHandlerState:Execute () in <0x00082> StateMachine:Execu=

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.


Mono-vb mailing list