I have found a small problem which I am assuming is a bug in Mono - but I am not certain that is where the problem is. I can replicate it in a tiny .aspx file, and I have a workaround but I just want to be sure that mono is responsible. This code works fine ASP.NET / winXP / IE, does not work when loaded to x10hosting.
If I create a new .aspx file, and include a small javascript function containing the line:
then mono (and not ASP.NET) throws an error whe you try to run it:
Can anyone confirm this is a mono bug, in which case I will report it, if not then who should be told?
If I create a new .aspx file, and include a small javascript function containing the line:
Code:
[SIZE=2][COLOR=#0000ff]
[SIZE=2][COLOR=#0000ff]var[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] e_tag = [/SIZE][SIZE=2][COLOR=#a31515][SIZE=2][COLOR=#a31515]"</"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] + tag + [/SIZE][SIZE=2][COLOR=#a31515][SIZE=2][COLOR=#a31515]">"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2];[/SIZE]
Code:
[B]Server Error in '/' Application[/B]
[B][I]Parser Error[/I][/B]
[B]Description: [/B]Error parsing a resource required to service this request. Review your source file and modify it to fix this error.
[B]Parser Error Message: [/B][FONT=Lucida Console]expecting TAGNAME[/FONT]
[B]Source Error: [/B]
Line 21: Line 22: var s_tag = "<" + tag + ">";[COLOR=red]Line 23: var e_tag = "</" + tag + ">"; // DO NOT CONDENSE THESE TWO STRINGS! MONO WILL COMPLAIN![/COLOR]Line 24: DoTagWrap(content, s_tag, e_tag);Line 25: }
[B]Source File: [/B]/home/thegriff/public_html/MonoBug.aspx [B]Line: [/B]23
[B]Version information: [/B]Mono Version: 2.0.50727.1433; ASP.NET Version: 2.0.50727.1433