[Mono-bugs] [Bug 76158][Nor] New - MS asp.net 2.0 example doesn't work correctly

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Sep 19 23:02:16 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 cmorgan at alum.wpi.edu.

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

--- shadow/76158	2005-09-19 23:02:16.000000000 -0400
+++ shadow/76158.tmp.15182	2005-09-19 23:02:16.000000000 -0400
@@ -0,0 +1,82 @@
+Bug#: 76158
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: debian unstable 2.6.11.9
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.Web
+AssignedTo: gonzalo at ximian.com                            
+ReportedBy: cmorgan at alum.wpi.edu               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: MS asp.net 2.0 example doesn't work correctly
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+
+Description of Problem:
+Compile errors on a simple asp.net 2.0 example from MS,
+http://beta.asp.net/QUICKSTART/util/srcview.aspx?path=~/aspnet/samples/simple/CodeBehind.src&file=CodeBehind_cs.aspx
+
+Steps to reproduce the problem:
+1. Download the c# example files from the above url, I'll attach them here
+so you don't have to spend time copying and pasting
+2. Run xsp2 in the directory
+3. Browse to the http://localhost:8080/CodeBehind_cs.aspx
+
+
+Actual Results:
+
+Server Error in '/' Application
+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:
+/home/cmorgan/airsprite/scm/engineering/software/apm/mstest/CodeBehind_cs.aspx.cs(7,34)
+: error CS0246: The type or namespace name `TextBox1' could not be found.
+Are you missing a using directive or an assembly reference?
+/home/cmorgan/airsprite/scm/engineering/software/apm/mstest/CodeBehind_cs.aspx.cs(7,34)
+: error CS0103: The name `TextBox1' does not exist in the context of
+`CodeBehind_cs_aspx'
+/home/cmorgan/airsprite/scm/engineering/software/apm/mstest/CodeBehind_cs.aspx.cs(7,9)
+: error CS0246: The type or namespace name `Label1' could not be found. Are
+you missing a using directive or an assembly reference?
+/home/cmorgan/airsprite/scm/engineering/software/apm/mstest/CodeBehind_cs.aspx.cs(7,9)
+: error CS0103: The name `Label1' does not exist in the context of
+`CodeBehind_cs_aspx'
+
+File name:
+/home/cmorgan/airsprite/scm/engineering/software/apm/mstest/CodeBehind_cs.aspx.cs
+
+Line 1: using System;
+Line 2: 
+Line 3: public partial class CodeBehind_cs_aspx : System.Web.UI.Page
+Line 4: {
+Line 5:     protected void Button1_Click(object sender, EventArgs e)
+Line 6:     {
+Line 7:         Label1.Text = "Hello " + TextBox1.Text;
+Line 8:     }
+Line 9: 
+Line 10: }
+
+
+
+Expected Results:
+Page displayed?
+
+
+How often does this happen? 
+Every time
+
+Additional Information:
+Using svn head 2005-09-19(9:00pm EST) for mono, mcs and xsp
+
+I'm trying to figure out how to get codebehind working now that the 'src'
+attribute for @ Page is gone in asp.net 2.0 as of 1.1.9 so I figured I'd
+try out a simple example like this.


More information about the mono-bugs mailing list