[Mono-bugs] [Bug 77991][Nor] New - 2.0 Control.Design mode not implemented

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Apr 2 11:52:25 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 joe_audette at yahoo.com.

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

--- shadow/77991	2006-04-02 11:52:25.000000000 -0400
+++ shadow/77991.tmp.31976	2006-04-02 11:52:25.000000000 -0400
@@ -0,0 +1,66 @@
+Bug#: 77991
+Product: Mono: Class Libraries
+Version: 1.1
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.Web
+AssignedTo: gonzalo at ximian.com                            
+ReportedBy: joe_audette at yahoo.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: 2.0 Control.Design mode not implemented
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+I use code like this to have different design time and run time behaviour:
+override protected void OnPreInit(EventArgs e)
+        {
+
+            base.OnPreInit(e);
+            if (!this.DesignMode)
+            {
+                if (HttpContext.Current != null)
+                {
+                    siteSettings =
+(SiteSettings)HttpContext.Current.Items["SiteSettings"];
+                    if( (siteSettings != null)&&(siteSettings.SiteID > 0))
+                    {
+                        SiteUtils.SetMasterPage(this, siteSettings);
+                        this.Theme = "default";
+                    }
+                    
+                }
+            }
+
+            
+
+        }
+
+On mono it causes a runtime error because its not implemented.
+A simple implementation to just return false should solve the problem at
+least until designer support is available
+
+Steps to reproduce the problem:
+1. any reference to Control.DesignMode will raise the error
+2. 
+3. 
+
+Actual Results:
+System.NotImplementedException
+
+Expected Results:
+minimally could return false to avoid runtime error
+
+How often does this happen? 
+every time
+
+Additional Information:
+
+prevents mojoportal 2.0.1 from running under mono 2.0 profile


More information about the mono-bugs mailing list