Page hangs if load interrupted

William Buchanan 61 Reputation points
2021-09-27T05:08:22.02+00:00

Hi all

This is a strange problem. We have an ASP.NET MVC application. We have a problem where if you close a page before it has finished loading, then it is impossible to get in to the application again without closing all your browser windows. So, this is the sequence of events:

  • Load application - everything works fine
  • Load a page - while it is loading close the browser/tab
  • Open a new tab and browse to application -> ** nothing loads **
  • Close all open browsers (e.g. Chrome)
  • Reload browser
  • Navigate to application -> works ok.

Has anyone seen this before?
If I press the pause button on the debugger while the page is loading it just tells me nothing is executing. I occasionally get something like below where it looks like a task is awaiting a scheduled task, but this is all in Microsoft code.

Any thoughts where I can start looking?

Thanks

135451-image.png

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,562 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Bruce Barker 801 Reputation points
    2021-09-27T15:23:14.44+00:00

    I sounds like you are performing some cookie logic. the browser reset clears the cookies. you could just use the browser debug utilities, to determine the cookie (just delete one by one each site cookie until it works).


  2. William Buchanan 26 Reputation points
    2021-10-12T23:32:04.817+00:00

    So, basically I ended up just making my own session manager, and this has solved the problem.

    To me it looks like the ASP.NET Session manager isn't really fit for purpose any more. It might have been in the olden days, but now with multiple ajax calls being common, and the fact that a long running operation can leave the site completely unusable I think my advise to anyone would just be to avoid using it altogether.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.