Bug 316056 (MONO66231) - Parsing error in ASP.NET page with VB.NET code
Summary: Parsing error in ASP.NET page with VB.NET code
Status: RESOLVED FIXED
Alias: MONO66231
Product: Mono: Compilers
Classification: Mono
Component: Basic (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Enhancement
Target Milestone: ---
Assignee: B Anirban
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-19 04:02 UTC by Rogério Pereira Araújo
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 18:54:08 UTC


---- Reported by rogerio.araujo@gmail.com 2004-09-18 21:02:08 MST ----

When i try to compile an ASP.NET page with VB.NET code i got a error with
this line of code.

AddHandler __ctrl.Click, AddressOf Me.FiltroAlterado


Steps to reproduce the problem:
Just place a button on any aspx page like this code:
<asp:Button id="btn" Text="Pesquisar" OnClick="FiltroAlterado"
runat="server"/>				

and this code for the method:
<script runat="server">
   sub Page_Load (o as object, e as EventArgs) 
   end sub	
		
   sub FiltroAlterado (sender as object, e as EventArgs)
   end sub	
</script>	


Actual Results:
A parsing error

Expected Results:
The page generated without any errors and the FiltroAlterado method mapped
to my control.



---- Additional Comments From rafaelteixeirabr@hotmail.com 2004-09-19 10:10:14 MST ----

The error message (not correctly shown in the error page) is:

--------
MonoBASIC: THIS IS STILL ALPHA AND UNSUPPORTED SOFTWARE, USE AT YOUR
OWN RISK.
--------
syntax error, got token `ME', expecting BINARY COMPARE EXPLICIT OFF
TEXT IDENTIFIER
asp.vb(107,48) error BC29999: Parsing error
Compilation failed: 1 Error(s), 0 warnings

that the AddressOf operator is not accepting



---- Additional Comments From rafaelteixeirabr@hotmail.com 2004-09-19 11:39:12 MST ----

First try at a fix (by just putting a rule to bypass the ME DOT) made
it compilable, but the asp.net page would not come out, perhaps
because mbas is currently VERY slow. I'm checking with Gonzalo the new
error message. Anyway, dealing better with AddressOf expressions is
really needed... 



---- Additional Comments From banirban@novell.com 2004-09-21 10:41:03 MST ----

Fixed and committed


Unknown operating system unknown. Setting to default OS "Other".