Unable to Load another Page while an Azure Upload is ongoing RRS feed

  • Question

  • User-549254376 posted

    Hey guys! I realized that I can't load another page in the same ASP.NET project of mine on another tab while an image upload to my Azure Web Storage is ongoing on the first browser tab. I uploaded an image to my server via an ASP.NET Web Forms Page and I tried to load another page on a second tab. The second tab kept on loading until the upload was complete. As soon as the upload completed, the second page completed its loading process.

    Does ASP.NET disable loading of other pages while an Azure upload is being processed? How do I resolve this issue?

    Sunday, October 4, 2015 2:40 AM


All replies

  • User541108374 posted


    I don't recall seeing such behavior. 

    Does it work when you open 2 different browsers? Not just 2 different tabs.

    Is there some process for the uploading part that locks something or acts as a singleton?

    Grz, Kris.

    Sunday, October 4, 2015 4:28 AM
  • User753101303 posted


    Likely session locking. If not writing to session variables try to set the readonly mode (throught the @page directive for Web Forms or with the SessionState attribute for MVC) and see if it goes away.

    The rule is that only a single page can have a write access to the session state.

    Sunday, October 4, 2015 4:57 AM
  • User-646145796 posted


    In my opinion, we can use background task to achieve this scenario, if we upload the file in background task, the web site will bot blocked, refer to https://azure.microsoft.com/en-gb/documentation/articles/web-sites-create-web-jobs/ for more information about Azure Web job, and here is a blog demonstrator us how to use webjob to upload file: http://thenextdoorgeek.com/post/WAWS-WebJob-to-upload-FREB-files-to-Azure-Storage-using-the-WebJobs-SDK, hope this helps.

    Best Regards,


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, October 4, 2015 8:58 PM