locked
Sc-win32-status = 64 || sc-status = 200 RRS feed

  • Question

  • User-1826572580 posted

    Hi folks,

    We've a web portal, built using MVC 2.0, .Net framework 4.0 that is in production. Strangely sometimes it starts slowing down to intolerable levels. Basically it is a flight booking portal that uses ajax for obtaining search results. 
    Sometimes the ajax request shows stalled in the chrome browser for very long duraction e.g. 5 minutes and the results appear after a long time (say 9 minutes).
    We tried to investigate this and found below things:

    1. Chrome browser shows the request stuck for long durations.
    2. The same request in IIS shows sc-win32-status as 64, sc-status as 200 and sc-substatus as 0. and the time-taken value is normal. sc-win32-status 64 means The specified network name is no longer available
    3. After some time, say 8 minutes chrome gets the results and renders it on screen, on IIS server logs we see a duplicate hit at this time with sc-win32-status as 0, sc-status as 200 and sc-substatus as 0. If we count the time lapse between these two hits it is same as what it takes to show results for the browser.
    4. We've been unable to replicate this issue on firefox so far, the issue appears on both IE as well as chrome.

    Per investigations we found the same behaviour outlines at David Klein's Corner: ASP.NET double-postback bug strikes again![^] that says if the html has a blank entry for src for image tag then a phantom postback occurs and it was an issue with chrome. So far we did not find such issues with our html. 

    Has anyone encountered this issue? Does img src blank tag still triggers a phantom postback from chrome because as per investigations it was corrected on firefox but I am unable to find out information regarding whether it was fixed on chrome/IE or not.

    Your valuable inputs in this regard shall be highly appreciated.

    Thanks in advance.

    What I have tried:

    Tried checking the html constructed from the page that has any img tag with src as blank but did not find anything. Also did not find any script or any other tag with src as blank.

    Monday, October 29, 2018 5:04 AM

All replies

  • User1520731567 posted

    Hi Solidroots,

    THE FIX:
    To stop the double post-backs, just make sure all your ASP.NET controls (Image Buttons, Image Columns in grids, normal Images), all have a src attribute filled in - or otherwise, make them invisible. Otherwise, you will have phantom postbacks coming to haunt you when you least need it!

    I think this trouble could be resolved setting a default, blank, image for every button,

    for example:

    <asp:ImageButton ImageUrl="~/Images/blank.gif"...>

    More details,you could refer to this link,hope it helpful to you:

    https://stackoverflow.com/questions/1439312/stop-double-postback

    Best Regards.

    Yuki Tao

    Tuesday, October 30, 2018 6:57 AM
  • User-1826572580 posted

    Hi Yuki,

    Thank you very much for providing inputs.

    Please be apprised the site is developed using MVC.Net and not using any server side controls. There is binding framework being used for binding the image name though, it is a mix of underscore.js and knockout.js.

    I tried to find whether there is any IMG tag with src as blank using jquery in the browser console after the page loads but it showed no match. I tried with below console js statement as per which there is no such img tag having blank src value.

    $('img[src=""]').each(.......
    Tuesday, October 30, 2018 9:46 AM
  • User1520731567 posted

    Hi Solidroots,

    I tried to find whether there is any IMG tag with src as blank using jquery in the browser console after the page loads but it showed no match. I tried with below console js statement as per which there is no such img tag having blank src value.
    $('img[src=""]').each(.......

    I can not reproduce your issue completely.

    Maybe you could refer to these links,hope them helpful to you:

    https://stackoverflow.com/questions/20326/double-postback-problem

    https://stackoverflow.com/questions/747068/asp-net-double-postbacks-the-always-fun-question

    Best Regards.

    Yuki Tao

    Wednesday, October 31, 2018 1:55 AM