[Mono-bugs] [Bug 81001][Maj] New - .ctor() in pages already defined

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Mar 2 08:29:42 EST 2007


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 dna at informatik.uni-kiel.de.

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

--- shadow/81001	2007-03-02 08:29:42.000000000 -0500
+++ shadow/81001.tmp.11704	2007-03-02 08:29:42.000000000 -0500
@@ -0,0 +1,52 @@
+Bug#: 81001
+Product: Mono: Class Libraries
+Version: unspecified
+OS: GNU/Linux [Other]
+OS Details: Debian etch on vServer Linux
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: Sys.Web
+AssignedTo: grendello at gmail.com                            
+ReportedBy: dna at informatik.uni-kiel.de               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: .ctor() in pages already defined
+
+Try to define your own .ctor() in a ASP.NET page:
+
+using System;
+using System.Data;
+using System.Configuration;
+using System.Collections;
+using System.Web;
+using System.Web.Security;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using System.Web.UI.WebControls.WebParts;
+using System.Web.UI.HtmlControls;
+
+public partial class _Default : System.Web.UI.Page
+{
+	public _Default()
+	{
+	}
+}
+
+Open that page in a webbrower the following exception is thrown:
+Compilation Error
+Description: Error compiling a resource required to service this request.
+Review your source file and modify it to fix this error.
+
+Error message:
+/tmp/www-data-temp-aspnet-0/419b60e0/5994292c.0.cs(36,12) : error CS0111:
+`_Default._Default()' is already defined. Rename this member or use
+different parameter types
+
+File name: /home/dna/test/Default.aspx
+
+Using mono from SVN head.
+This works on .NET 2.0


More information about the mono-bugs mailing list