Bugzilla – Bug 316056
Parsing error in ASP.NET page with VB.NET code
Last modified: 2007-09-15 21:24:23 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".