Results 1 to 10 of 10

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

Hybrid View

  1. #1
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Ajax / LoadBalancing / and the ScriptResource.axd File

    The /mysite/ seems to be using the virtual directory name in the path. This may mean that you have the same problem as this guy -

    http://plainoldstan.blogspot.com/200...sourceaxd.html

    His solution was to give both paths to the application on both servers the same virtual directory name.

  2. #2

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

    Re: Ajax / LoadBalancing / and the ScriptResource.axd File

    I thought that too but my virtual directories are exactly the same on both machines.

  3. #3

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

    [Resolved] Re: Ajax / LoadBalancing / and the ScriptResource.axd File

    [RESOLVED] Turns out that .net 2.0 added a "t" parameter to the path for the ScriptResource.axd file, so that had to match across servers.

  4. #4
    New Member
    Join Date
    Jun 2009
    Posts
    2

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

    How did you make sure that 't'e paramters are same in all servers.

    Did you add it to another server as well ?

  5. #5

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

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

    Since the "t" parameter relates to the LastModifiedDate on the System.Web.Extensions.dll in the GAC, you must make sure that the date matches across the servers.
    You can view the dates using this (which also will show you the path):
    Code:
    Dim strFilePath As String = "C:\WINDOWS\assembly\gac_msil\system.Web.Extensions\1.0.61025.0__31bf3856ad364e35\System.Web.Extensions.dll"
    			Dim strFilePath2 As String = "C:\WINDOWS\assembly\gac_msil\System.Web.Extensions.Design\1.0.61025.0__31bf3856ad364e35\System.Web.Extensions.Design.dll"
    
    			MessageBox.Show("DT: " & File.GetLastWriteTime(strFilePath).ToString() & "  ||  Design file: " & File.GetLastWriteTime(strFilePath2).ToString())
    So just set them both to the exact same datetime and you should be good to go.

  6. #6
    New Member
    Join Date
    Jun 2009
    Posts
    2

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

    Thank you very much,

    I did find out that modified dates were wrong as the AJAX Control Tool Kit assemblies were in GAC.

    For a solution, I have put them on server's bin directory as copying them in bin directory does not change the modified date.

    Not sure why putting the file in GAC would change the modified date to a date when it was placed there.

    Anyway, I have a solution so its all fine.

    Thanks again for your help

  7. #7
    New Member
    Join Date
    Dec 2007
    Location
    Buenos Aires
    Posts
    14

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

    I know this is an old thread, but I have the exact same issue in a W2k8 server cluster. An app deployed in both, using a load balancer.

    when you say:

    Quote Originally Posted by VBCrazyCoder View Post
    So just set them both to the exact same datetime and you should be good to go.
    What do you mean exactly? How do I "set the last modified datetime" to those files in the GAC??
    And.. the datetime has to match between System.Web.Extensions.dll and System.Web.Extensions.Design.dll? Or for those files between the servers??

    thanks

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