Callback function doesn't work RRS feed

  • Question

  • User-1613562757 posted


    I use AjaxPro in my code.

    It worked fine ,until I installed Windows 7 on my computer .

    I don't know if there is a connection(I didn't change code), but callback function stopped working.


     function renderRecentlyViewedProducts(){
    function renderRecentlyViewedProducts_callback(res){
           document.getElementById("divRecentlyViewedProducts").innerHTML =res.value;


    What could be reason for it?


    Sunday, July 4, 2010 9:15 AM

All replies

  • User297557456 posted

    if you were using Windows XP with IIS 5x or any other OS earlier the VISTA with IIS 5x to 6x, this is a generic problem with IhttpHandler mappings.

    as you are using IIS7 now it requires additional handler mapping in web.config under system.webserver tag. just add your handler mapping tags for AjaxPro component (you can find it under handler tag in webconfig) to system.webserver tag with an additional attribute in all <add> tags namely "name". name can be anything that you want the mapping to be named as.


    see this for your reference.

    Monday, July 5, 2010 5:07 PM
  • User-1613562757 posted


    I added  to system.webserver tag with an additional attribute.But still it does not really work.

    Sometimes it works and sometimes not so. :(





    Tuesday, July 6, 2010 3:32 AM
  • User297557456 posted

    make sure you are using verb attribute as verb="*" in all <add> tags

    Tuesday, July 6, 2010 4:27 AM
  • User-1613562757 posted

    I'm using:



    <add name="AjaxHandler" verb="*" path="ajaxpro/*.ashx" type="AjaxPro.AjaxHandlerFactory, AjaxPro.2" preCondition="integratedMode"/>




    Tuesday, July 6, 2010 5:02 AM
  • User297557456 posted

    try removing the preCondition attribute.

    Tuesday, July 6, 2010 2:07 PM