[Mono-bugs] [Bug 76579][Wis] New - ASP.NET databind parsing fails

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Oct 28 04:06:39 EDT 2005


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by nathan at mammoth.com.au.

http://bugzilla.ximian.com/show_bug.cgi?id=76579

--- shadow/76579	2005-10-28 04:06:39.000000000 -0400
+++ shadow/76579.tmp.18264	2005-10-28 04:06:39.000000000 -0400
@@ -0,0 +1,67 @@
+Bug#: 76579
+Product: Mono: Compilers
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: nathan at mammoth.com.au               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: ASP.NET databind parsing fails
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+
+Description of Problem:
+
+Using 1.1.9.2
+
+I have a line in my .aspx line of the following form
+
+<my:Link linkedserver='<%# ((Server)Container.DataItem) %>' runat='server'>
+
+The page compilation fails on this with the error:
+
+error CS1002: Expecting `;'
+
+The resultant line highlighted in red is:
+
+target.LinkedServer = ((MyDll.Server)( ((Server)Container.DataItem) ));
+
+Which despite all the brackets, should compile.
+
+
+Steps to reproduce the problem:
+1. Cast Container.DataItem to its intended runtime type
+2. Load the page
+
+
+Actual Results:
+
+Compilation fails with non-sensical error message; such a line of code
+should (?) be valid.
+
+
+Expected Results:
+
+Page compiles correctly.
+
+
+How often does this happen? 
+
+Somewhat weirdly, it doesn't always happen.  Altering the page in pointless
+ways by say adding a space (to update the timestamp) can cause compilation
+to work again.  It may fail again later the next time file is updated or
+XSP is restarted.
+
+
+Additional Information:
+
+This worked correctly in earlier 1.1 releases (at least 1.1.8 and earlier).


More information about the mono-bugs mailing list