https://bugzilla.novell.com/show_bug.cgi?id=456305
User [email protected] added comment https://bugzilla.novell.com/show_bug.cgi?id=456305#c6 Marek Habersack <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|[email protected] |[email protected] Status|REOPENED |NEW Component|Sys.Web |misc Product|Mono: Class Libraries |Mono: Runtime --- Comment #6 from Marek Habersack <[email protected]> 2008-12-12 19:44:19 MST --- This appears to be a bug in the runtime introduced into the 2.2 branch after my last comment to this bug (Dec 8). The error occurs with the code below: Console.WriteLine ("Page.Master == {0}", Page.Master); Console.WriteLine ("ScriptManager1 == {0}", Page.Master.FindControl ("ScriptManager1")); Console.WriteLine ("ScriptManager1 is ScriptManager: {0}", Page.Master.FindControl ("ScriptManager1") is ScriptManager); ScriptController =(ScriptManager)Page.Master.FindControl("ScriptManager1"); The CWLs were added by me, the last line comes from the MojoPortal 2.2.7.9 sources (Web/Controls/SiteModuleControl.cs:52). Here's the output when running the application under xsp2 from branch: Page.Master == ASP.data_sites_1_skins_styleshout_techmania_layout_master ScriptManager1 == System.Web.UI.ScriptManager ScriptManager1 is ScriptManager: False This is most likely the cause of the error in blog starter kit as well. It appears that the runtime improperly checks the type of the returned control and so the type cast fails. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
