[Mono-bugs] [Bug 78663][Wis] New - namespace in CodeFile unsupported

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Jun 16 14:50:31 EDT 2006


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 rainer.burgstaller at web.de.

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

--- shadow/78663	2006-06-16 14:50:31.000000000 -0400
+++ shadow/78663.tmp.5137	2006-06-16 14:50:31.000000000 -0400
@@ -0,0 +1,108 @@
+Bug#: 78663
+Product: Mono: Tools
+Version: unspecified
+OS: Debian Woody
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: XSP
+AssignedTo: gonzalo at ximian.com                            
+ReportedBy: rainer.burgstaller at web.de               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: namespace in CodeFile unsupported
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+
+Steps to reproduce the problem:
+1. create a simple aspx file
+
+<snip>
+<%@ Page CodeFile="login.aspx.cs" Inherits="myexample.web.login"
+Language="c#" AutoEventWireup="false" %>
+<%@ Import Namespace="System.Web.Security " %>
+<HTML>
+    <body>
+...
+</snip>
+
+2. create an appropriate cs CodeFile
+
+<snip>
+using System;
+using System.Collections;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Web;
+using System.Web.SessionState;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using System.Web.UI.HtmlControls;
+using System.Web.Security;
+
+namespace myexample.web
+{
+	/// <summary>
+	/// Summary description for login.
+	/// </summary>
+	public partial class login : System.Web.UI.Page
+...
+</snip>
+
+3. run this in xsp2
+
+Actual Results:
+
+<snip>
+Line 1: //
+------------------------------------------------------------------------------
+Line 2: //  <autogenerated>
+Line 3: //      This code was generated by a tool.
+Line 4: //      Mono Runtime Version: 2.0.50727.42
+Line 5: // 
+Line 6: //      Changes to this file may cause incorrect behavior and will
+be lost if 
+Line 7: //      the code is regenerated.
+Line 8: //  </autogenerated>
+Line 9: //
+------------------------------------------------------------------------------
+Line 10: 
+Line 11: using System;
+Line 12: using System.Collections;
+Line 13: using System.Collections.Specialized;
+Line 14: using System.Configuration;
+Line 15: using System.Text;
+Line 16: using System.Text.RegularExpressions;
+Line 17: using System.Web;
+Line 18: using System.Web.Caching;
+Line 19: using System.Web.Security;
+Line 20: using System.Web.SessionState;
+Line 21: using System.Web.UI;
+Line 22: using System.Web.UI.WebControls;
+Line 23: using System.Web.UI.HtmlControls;
+Line 24: 
+Line 25: public partial class myexample.net.login :
+System.Web.SessionState.IRequiresSessionState {
+</snip>
+
+Expected Results:
+
+   Page compiles fine and works.
+
+How often does this happen? 
+
+   Always
+
+Additional Information:
+
+when I remove the namespace from the aspx and the cs, it works.
+
+I am using mono-1.1.15 and xsp-1.1.15.


More information about the mono-bugs mailing list