[Mono-bugs] [Bug 347192] New: AJAX / ScriptManager regression

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Dec 9 14:49:12 EST 2007


https://bugzilla.novell.com/show_bug.cgi?id=347192


           Summary: AJAX / ScriptManager regression
           Product: Mono: Class Libraries
           Version: SVN
          Platform: x86-64
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: mmorano at mikeandwan.us
         QAContact: mono-bugs at ximian.com
          Found By: ---


Hello,

I believe I have come across a regression when trying to use the ScriptManager
in an ASP.Net application.  I am getting errors where requests for
/ScriptResource.axd tries to get handled by the StaticFileHandler.  This
appears to be at odds from what I've configured in the web.config (which is
based on samples for AJAX applications).

Namely, I had originally used the following in the httpHandlers section of my
web.config (as taken from
http://asp.net/ajax/documentation/live/ConfiguringASPNETAJAX.aspx):

<httpHandlers>
        <remove verb="*" 
                path="*.asmx" />
        <add verb="*" 
             path="*.asmx" 
             validate="false" 
             type="System.Web.Script.Services.ScriptHandlerFactory,
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" />
        <add verb="*" 
                 path="*_AppService.axd" 
                 validate="false" 
                 type="System.Web.Script.Services.ScriptHandlerFactory,
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" />
        <add verb="GET,HEAD" 
                 path="ScriptResource.axd" 
                 type="System.Web.Handlers.ScriptResourceHandler,
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" 
                 validate="false" />
</httpHandlers>


I then have a page that defines a script manager so that it can generate a
proxy for a webservice.  When trying to load that page, I get the following
javascript error:

ASP.NET Ajax client-side framework failed to load.

I can also see in my logs that it generates a file not found while trying to
use a StaticFileHandler.


However, if I change the configuration above for the last handler to specify a
path including the leading slash, the script loads as expected, such as:

      <add verb="GET,HEAD" 
                 path="/ScriptResource.axd" 
                 type="System.Web.Handlers.ScriptResourceHandler,
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" 
                 validate="false" />


I am using a recent version (r91001) from svn.


Thanks,
Mike


-- 
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