Last post Oct 04, 2015 08:58 PM by Jamobor yao - MSFT
Oct 04, 2015 02:40 AM|dinuka|LINK
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?
Oct 04, 2015 04:28 AM|XIII|LINK
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?
Oct 04, 2015 04:57 AM|PatriceSc|LINK
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.
Oct 04, 2015 08:58 PM|Jamobor yao - MSFT|LINK
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
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.