Results 1 to 10 of 10

Thread: [RESOLVED] Ajax / LoadBalancing / and the ScriptResource.axd File

Threaded View

  1. #1

    Thread Starter
    Fanatic Member VBCrazyCoder's Avatar
    Join Date
    Apr 2003
    Posts
    681

    [RESOLVED] Ajax / LoadBalancing / and the ScriptResource.axd File

    Hi all, here is my situation:

    I have Server1 and Server2 load balancing - I have an AJAX page that uses an ajax timer to check the status of something and update the UI with results.

    When I run the page specifying Server1 it works fine, likewise if I specify Server2. However, if I don't specify and I let the load balancer determine the server, all is well until one of the ajax postbacks goes to the alternate server - I then get the error message:

    "Sys.ScriptLoadFailedException. The script '/mysite/ScriptResource.axd?d=......" failed to load.


    When I enable script debugging in IE I get:


    "Missing call to Sys.Application.notifyScriptLoaded()"


    I made sure that the machinekeys are the same between both servers and ran a Fiddler trace to see what was going on - and the call to notifyscriptloaded does not occur when the ajax postback is routed to the other server after it has already hit the first server.

    My setup is ASP.net 2.0 on Server2003, the page in question has a masterpage, and the script manager is in the page within a content region.

    Anyone experience this or have a work-around. I don't think there is a way to tell it where to find the ScriptResource.axd file... Thanks for any help!
    Last edited by VBCrazyCoder; Feb 9th, 2009 at 07:54 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width