[Mono-bugs] [Bug 457943] ScriptManager.GetCurrent : Cannot cast from source type to destination type
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Jan 13 00:19:07 EST 2009
https://bugzilla.novell.com/show_bug.cgi?id=457943
User gonzalo at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=457943#c9
Gonzalo Paniagua Javier <gonzalo at novell.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gonzalo at novell.com
--- Comment #9 from Gonzalo Paniagua Javier <gonzalo at novell.com> 2009-01-12 22:19:05 MST ---
The problem here is that the AjaxControltoolkit.dll in Bin references
System.Web.Extensions 1.0.61025.0 while the web.config file makes use of the
3.5.0.0 version.
I added this code to Default.aspx:
==================
void Page_PreRender ()
{
base.PreRender ();
AppDomain domain = AppDomain.CurrentDomain;
Response.Write ("<!--\r\n");
foreach (System.Reflection.Assembly assembly in
domain.GetAssemblies ()) {
Response.Write (assembly.GetName ());
}
Response.Write ("\r\n--!>");
}
=================
and looks like MS does NOT load the 1.0.61025 version while the mono runtime
loads BOTH versions and later gets confused and causes the invalid cast
exception.
I would say that:
a) this is a runtime problem
b) the fix is not likely to get in 2.2.x
c) the easy workaround is to get the AjaxControlToolkit compiled against the
3.5.0.0 version if possible.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list