#234: Microsoft Asp.net 2.0 AJAX UpdatePanel Bug
-------------------------------+--------------------------------------------
Reporter: Anksunamon | Owner: fredck
Type: Bug | Status: reopened
Priority: Normal | Milestone:
Component: Server : ASP.Net | Version: FCKeditor 2.6.3
Resolution: | Keywords: Confirmed HasPatch
-------------------------------+--------------------------------------------
Comment(by serializer):
Replying to [comment:61 jskripsky]:
> {{{
> Type.GetType( "System.Web.UI.ScriptManager, System.Web.Extensions" )
> }}}
This line doesn't work (in my scenario at least).
Testing locally this returns null ('''with''' System.Web.Extensions
loaded).
If I change it to:
{{{
Type.GetType( "System.Web.UI.ScriptManager, System.Web.Extensions",true )
}}}
Then I can see that a FileNotFoundException is being thrown.
I think it might be because my GAC contains two different versions of
System.Web.Extensions (Frameworks 2.0 and 3.5). This situation is also
quite likely on shared hosting.
To get it working I had to change the line to:
{{{
Type scriptManagerType = Type.GetType(
"System.Web.UI.ScriptManager, System.Web.Extensions, Version=3.5.0.0,
Culture=neutral, PublicKeyToken=31BF3856AD364E35" ) ;
}}}
Obviously this references a specific version and so wouldn't work with
Framework 2.0. I've seen a method a Rick Strahl's blog ([http://www.west-
wind.com/WebLog/posts/10246.aspx]) which called
AppDomain.CurrentDomain.GetAssemblies() then looped through to find
System.Web.Extensions. But this doesn't seem very optimal either, and I'm
pretty sure the GetAssemblies() call will fail in medium trust.
So, I don't quite know what to do here. Perhaps we could just have two
calls to Type.GetType, and check for both possible versions of
System.Web.Extensions. As and when newer versions of AJAX are released,
this will need updating.
--
Ticket URL: <http://dev.fckeditor.net/ticket/234#comment:63>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac