|
|
Rank: Member
Groups: Registered
Joined: 8/2/2011 Posts: 18
|
Hi,
We are using slick upload for uploading file and using <ProgressAreaTemplate> for showing file progress bar but when upload file is in progress and we make any other AJAX call from the page then this call stopped till the point file upload not done 100%. Is there any solution for this problem so that we can make simultaneous ajax call while file upload is in progress.
Thanks in advance for providing your valuable input for the above problem.
Regards
|
|
|
Rank: Administration

Groups: Administrators
Joined: 7/7/2005 Posts: 1,586 Location: Scottsdale, AZ
|
What browser are you testing in? You may be running into a concurrent connection limit -- most browsers limit the number of simultaneous requests that can be done to a given domain. Older browsers limits this to 2 requests simultaneously. Newer browsers open up the connection limit under some circumstances, but some still limit it to 2.
Can you send your .aspx, codebehind, and web.config to me at chrish at krystalware dot com so I can take a look? Perhaps I can suggest a way to work around this issue.
|
|
|
Rank: Member
Groups: Registered
Joined: 8/2/2011 Posts: 18
|
Thanks ChrisHynes for replying, page is making only two simultaneous call i.e. one is of ours AJAX call and second one is from Slick upload.
I am not sure how many call Slick upload do for updating progress bar but after verifying http calls using firefox addon firebug it is looking like single call.
Regards
|
|
|
Rank: Administration

Groups: Administrators
Joined: 7/7/2005 Posts: 1,586 Location: Scottsdale, AZ
|
Which browser and browser version are you testing in? Can you send your .aspx, codebehind, and web.config to chrish at krystalware dot com?
SlickUpload does one call for the upload. If it is an HTML5 upload supporting browser (FF 3.6+, Chrome 9+), that will be the only request. If it is an older browser that doesn't support HTML5 upload, SlickUpload will do additional progress requests to update the progress bar. I'm wondering if these requests could be occupying the other connection.
If you can send me the info I requested, I'll be able to set up a test environment here and see if I can reproduce the issue.
|
|
|
Rank: Administration

Groups: Administrators
Joined: 7/7/2005 Posts: 1,586 Location: Scottsdale, AZ
|
This is happening because both pages (UploadHandler.aspx and GetDate.aspx) have ASP.NET Session State enabled. An inherent limitation of ASP.NET is that only one page (in a given user session) using session state will be executed at a given time -- all other page requests in that session will hang until the first page finishes.
In this case, your UploadHandler.aspx page gets the session lock first. When the GetDate.aspx AJAX call comes in, ASP.NET blocks it until the UploadHandler.aspx page (and the upload) is complete.
To solve this, turn off session state for one or both of the pages. You can do this by adding the EnableSessionState="False" attribute to the <%@ Page %> directive on the page.
If you need to use session state on both pages, you may want to consider upgrading from SlickUpload 4 to SlickUpload 6 -- SlickUpload 6 includes its own upload handler that doesn't use session state, so your upload won't block the AJAX request even if both pages use session state.
|
|
|
|
Guest |