[Mono-bugs] [Bug 80953][Blo] New - 2.0 Trying to skin a TextBox using a Skin File produces a NullReferenceException

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Feb 24 23:52:23 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 guilleprina at hotmail.com.

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

--- shadow/80953	2007-02-24 23:52:23.000000000 -0500
+++ shadow/80953.tmp.23262	2007-02-24 23:52:23.000000000 -0500
@@ -0,0 +1,75 @@
+Bug#: 80953
+Product: Mono: Class Libraries
+Version: 1.2
+OS: other
+OS Details: Linux version 2.6.9-42.0.2.ELsmp (buildsvn at build-i386) (gcc version 3.4.6 20060404 (Red Hat 3.4.6-3)) 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Blocker
+Component: Sys.Web
+AssignedTo: mhabersack at novell.com                            
+ReportedBy: guilleprina at hotmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: 2.0 Trying to skin a TextBox using a Skin File produces a NullReferenceException
+
+Please fill in this template when reporting a bug, unless you know what 
+you are doing.
+Description of Problem:
+I tried to skin a textbox using a Theme with a skin file and a style 
+sheet containing just the style for the textbox and the skin file 
+containing just the skin for the textbox. I tried applying the skin to a 
+custom control and to a panel and it works fine, the problem is presented 
+only when a textbox is included in the skin file.
+
+
+Steps to reproduce the problem:
+1. Create a WebForm containing a TextBox
+2. Create a Skin Default.skin (inside App_Themes/Default folder) and 
+include a <asp:TextBox runat=server CssClass=TextBoxes />
+3. Create a .css file with a .TextBoxes style.
+4. Add to Web.Config inside <system.web> this: <pages theme="Default"/>
+
+Actual Results:
+
+Server error in '/' application
+
+--------------------------------------------------------------------------
+------
+
+Description: Error processing request. 
+Error Message: HTTP 500. 
+
+Stack Trace: System.NullReferenceException: Object reference not set to 
+an instance of an object
+  at System.Web.Compilation.TemplateControlCompiler.CreateField 
+(System.Web.UI.ControlBuilder builder, Boolean check) [0x00000] 
+  at System.Web.Compilation.TemplateControlCompiler.CreateControlTree 
+(System.Web.UI.ControlBuilder builder, Boolean inTemplate, Boolean 
+childrenAsProperties) [0x00000] 
+  at System.Web.Compilation.PageThemeCompiler.CreateControlSkinMethod 
+(System.Web.UI.ControlBuilder builder) [0x00000] 
+  at System.Web.Compilation.PageThemeCompiler.CreateMethods () [0x00000] 
+  at System.Web.Compilation.BaseCompiler.Init () [0x00000] 
+  at System.Web.Compilation.BaseCompiler.GetCompiledType () [0x00000] 
+  at System.Web.UI.ThemeDirectoryCompiler.GetCompiledType (System.String 
+theme, System.Web.HttpContext context) [0x00000] 
+  at System.Web.UI.ThemeDirectoryCompiler.GetCompiledInstance 
+(System.String theme, System.Web.HttpContext context) [0x00000] 
+  at System.Web.UI.Page.InitializeTheme () [0x00000] 
+  at System.Web.UI.Page.InternalProcessRequest () [0x00000] 
+  at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) 
+[0x00000] 
+ 
+
+Expected Results:
+A page with a skined textbox
+
+How often does this happen? 
+Always
+
+Additional Information:
+It works fine under IIS.


More information about the mono-bugs mailing list