[Mono-bugs] [Bug 76580][Maj] Changed - Problem when compiling (at runtime) a user web control

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Oct 28 05:12:04 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 informatique.internet at fiducial.fr.

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

--- shadow/76580	2005-10-28 05:10:23.000000000 -0400
+++ shadow/76580.tmp.19400	2005-10-28 05:12:04.000000000 -0400
@@ -1,14 +1,14 @@
 Bug#: 76580
 Product: Mono: Class Libraries
 Version: 1.1
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Major
 Component: Sys.Web
 AssignedTo: gonzalo at ximian.com                            
 ReportedBy: informatique.internet at fiducial.fr               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
@@ -50,6 +50,175 @@
 			{
 				ViewState["CSSPREFIX"]=value;
 			}
 		}	
      }
 }
+
+------- Additional Comments From informatique.internet at fiducial.fr  2005-10-28 05:12 -------
+I want to test it with a very simple aspx page :
+
+<%@ Page language="c#" Codebehind="WebForm1.aspx.cs"
+AutoEventWireup="false" Inherits="MonoTest.WebForm1" %>
+<%@ Register TagPrefix="cc1" Namespace="MonoTestLib"
+Assembly="MonoTestLib" %>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
+<HTML>
+	<HEAD>
+		<title>WebForm1</title>
+		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
+		<meta name="CODE_LANGUAGE" Content="C#">
+		<meta name="vs_defaultClientScript" content="JavaScript">
+		<meta name="vs_targetSchema"
+content="http://schemas.microsoft.com/intellisense/ie5">
+	</HEAD>
+	<body MS_POSITIONING="GridLayout">
+		<form id="Form1" method="post" runat="server">
+			<cc1:TestComposant id="TestComposant1" style="Z-INDEX: 101; LEFT:
+160px; POSITION: absolute; TOP: 112px"
+				runat="server" MenuStyle="Test2"></cc1:TestComposant>
+		</form>
+	</body>
+</HTML>
+
+Then I run xsp and I get :
+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: /tmp/hubert-temp-aspnet-0/e92b2f91/82392.0.cs(85,32) :
+error CS0119: Expression denotes a `type', where a `variable', `value'
+or `method group' was expected
+
+File name: /home/monoapp/MonoTest/WebForm1.aspx
+
+Source File: /tmp/hubert-temp-aspnet-0/e92b2f91/82392.0.cs
+
+Line 1: //
+------------------------------------------------------------------------------
+Line 2: //  <autogenerated>
+Line 3: //      This code was generated by a tool.
+Line 4: //      Mono Runtime Version: 1.1.4322.573
+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: namespace ASP {
+Line 12:     using System;
+Line 13:     using System.Collections;
+Line 14:     using System.Collections.Specialized;
+Line 15:     using System.Configuration;
+Line 16:     using System.Text;
+Line 17:     using System.Text.RegularExpressions;
+Line 18:     using System.Web;
+Line 19:     using System.Web.Caching;
+Line 20:     using System.Web.Security;
+Line 21:     using System.Web.SessionState;
+Line 22:     using System.Web.UI;
+Line 23:     using System.Web.UI.WebControls;
+Line 24:     using System.Web.UI.HtmlControls;
+Line 25:     using MonoTestLib;
+Line 26:     
+Line 27:     public class WebForm1_aspx : MonoTest.WebForm1,
+System.Web.SessionState.IRequiresSessionState {
+Line 28:         
+Line 29:         private static bool __intialized = false;
+Line 30:         
+Line 31:         protected System.Web.UI.HtmlControls.HtmlForm Form1;
+Line 32:         
+Line 33:         public WebForm1_aspx() {
+Line 34:             if ((ASP.WebForm1_aspx.__intialized == false)) {
+Line 35:                 ASP.WebForm1_aspx.__intialized = true;
+Line 36:             }
+Line 37:         }
+Line 38:         
+Line 39:         protected override bool SupportAutoEvents {
+Line 40:             get {
+Line 41:                 return false;
+Line 42:             }
+Line 43:         }
+Line 44:         
+Line 45:         protected System.Web.HttpApplication
+ApplicationInstance {
+Line 46:             get {
+Line 47:                 return
+((System.Web.HttpApplication)(this.Context.ApplicationInstance));
+Line 48:             }
+Line 49:         }
+Line 50:         
+Line 51:         public override string TemplateSourceDirectory {
+Line 52:             get {
+Line 53:                 return "/";
+Line 54:             }
+Line 55:         }
+Line 56:         
+Line 57:         private void __BuildControlTree(System.Web.UI.Control
+__ctrl) {
+Line 58:             System.Web.UI.IParserAccessor __parser =
+((System.Web.UI.IParserAccessor)(__ctrl));
+Line 59:             __parser.AddParsedSubObject(new
+System.Web.UI.LiteralControl("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML
+4.0 Transitional//EN\"
+>\n<HTML>\n\t<HEAD>\n\t\t<title>WebForm1</title>\n\t\t<meta
+name=\"GENERATOR\" Content=\"Microsoft Visual Studio .NET
+7.1\">\n\t\t<meta name=\"CODE_LANGUAGE\" Content=\"C#\">\n\t\t<meta
+name=\"vs_defaultClientScript\" content=\"JavaScript\">\n\t\t<meta
+name=\"vs_targetSchema\"
+content=\"http://schemas.microsoft.com/intellisense/ie5\">\n\t</HEAD>\n\t<body
+MS_POSITIONING=\"GridLayout\">\n\t\t"));
+Line 60:             this.__BuildControl_Form1();
+Line 61:             __parser.AddParsedSubObject(this.Form1);
+Line 62:             __parser.AddParsedSubObject(new
+System.Web.UI.LiteralControl("\n\t</body>\n</HTML>\n"));
+Line 63:         }
+Line 64:         
+Line 65:         private System.Web.UI.Control __BuildControl_Form1() {
+Line 66:             System.Web.UI.HtmlControls.HtmlForm __ctrl;
+Line 67:             __ctrl = new System.Web.UI.HtmlControls.HtmlForm();
+Line 68:             this.Form1 = __ctrl;
+Line 69:             __ctrl.ID = "Form1";
+Line 70:             __ctrl.Method = "post";
+Line 71:             System.Web.UI.IParserAccessor __parser =
+((System.Web.UI.IParserAccessor)(__ctrl));
+Line 72:             __parser.AddParsedSubObject(new
+System.Web.UI.LiteralControl("\n\t\t\t"));
+Line 73:             this.__BuildControl_TestComposant1();
+Line 74:             __parser.AddParsedSubObject(this.TestComposant1);
+Line 75:             __parser.AddParsedSubObject(new
+System.Web.UI.LiteralControl("\n\t\t"));
+Line 76:             return __ctrl;
+Line 77:         }
+Line 78:         
+Line 79:         private System.Web.UI.Control
+__BuildControl_TestComposant1() {
+Line 80:             MonoTestLib.TestComposant __ctrl;
+Line 81:             __ctrl = new MonoTestLib.TestComposant();
+Line 82:             this.TestComposant1 = __ctrl;
+Line 83:             __ctrl.ID = "TestComposant1";
+Line 84:            
+((System.Web.UI.IAttributeAccessor)(__ctrl)).SetAttribute("style",
+"Z-INDEX: 101; LEFT: 160px; POSITION: absolute; TOP: 112px");
+Line 85:             __ctrl.MenuStyle =
+MonoTestLib.TestComposant+CWebContextMenuStyle.Test2;
+Line 86:             return __ctrl;
+Line 87:         }
+Line 88:         
+Line 89:         protected override void FrameworkInitialize() {
+Line 90:             this.TraceModeValue =
+System.Web.TraceMode.SortByTime;
+Line 91:             this.Request.ValidateInput();
+Line 92:             this.__BuildControlTree(this);
+Line 93:         }
+Line 94:         
+Line 95:         public override int GetTypeHashCode() {
+Line 96:             return 1909005558;
+Line 97:         }
+Line 98:     }
+Line 99:     
+Line 100: }
+
+


More information about the mono-bugs mailing list