This is a migrated thread and some comments may be shown as answers.

Aysnc Upload and IPAD

7 Answers 98 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 1
Patrick asked on 16 Sep 2013, 11:39 PM
I submitted a support ticket on this item, just wanted to post here as well in case anyone knows the answer.

When I attempt to use any of the Aysnc Upload demos that Telerik has using an IPAD with Retina Display running the latest version of IOS 6 - it fails, always. I cannot upload via the demos that Telerik has posted.

When I implement my own version in my custom application it will work when i first hit the page and for a little time after.
However, after some period of time (a few minutes) - it will stop uploading and will just sit there and blink at me.
It will not work after a page refresh.
The only way to get it working again is to leave the page, come back to the page and then it works for several minutes.


So to sum up: It NEVER works on Telerik demos but it  works for just a couple of minutes in my custom application before failing.

Any ideas? Anyone else have this issue?

Thanks,
~Patrick

7 Answers, 1 is accepted

Sort by
0
Patrick
Top achievements
Rank 1
answered on 17 Sep 2013, 02:59 PM
Update:
IPad Version is:  6.1.3 (10B329).


Okay, in terms of the Telerik demos, they work from my home network, but not from my work's guest wireless - the progress bar will go the end and then just sit there and blink at you.

But i'd like to focus now on the issue I'm having with my site. I have tested when it will work and when it doesn't.
If the file is uploaded within 45 seconds of the page being delivered - then it works.
If the file is uploaded after 45 seconds have passed, the green progress bar goes almost completely to the end and then it just sits there and blinks.
This happens for a simple web page that has nothing on it by the radasyncupload control

Anyone have any ideas on the possible cause? Is there an IIS setting i should check? - i'm trying to figure out what is magical about 45 seconds, but without fail, from my home or work network from an IPAD - it will not upload the file if the page has been sitting there for ~45seconds.

Thanks,
0
Hristo Valyavicharski
Telerik team
answered on 18 Sep 2013, 04:35 PM
Hi Patrick,

This sounds like a timeout problem. Try to increase the value of the ASP.NET executionTimeout property. Its default value vary the different version of .NET Framework. This should allow your application to accept files which are uploaded for more than 45 seconds. Additionally you may increase the value of the Script Manager's AsyncPostBackTimeout property:
<telerik:RadScriptManager ID="RadScriptManager1" runat="server" AsyncPostBackTimeout="200">
    <Scripts>
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
    </Scripts>
</telerik:RadScriptManager>

Regards,
Hristo Valyavicharski
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Patrick
Top achievements
Rank 1
answered on 18 Sep 2013, 04:43 PM
I implemented both of your suggestions - but they did not help.
This only happens when accessing the site from an IPAD, from a PC, it works fine. The IPAD is going through a VPN.
And it's not that the file upload takes longer than 45 seconds, it's if the page has been open for more than 45 seconds.

Is there any logging I can implement that can help track it down?
Are there points in the code I can write some logs myself?
I enabled failed request tracing for the app on IIS but there were no failed requests.
Just trying to see what other logging i can turn-on or code myself to help try to narrow down where the issue is.

Thanks,
~Patrick
0
Patrick
Top achievements
Rank 1
answered on 18 Sep 2013, 10:40 PM
Another bit of information - this application uses Windows Authentication -upon first hitting the site the user is prompted to enter their credentials - which they do. Everything else works flawlessly except for the async upload.

After enabling some Request Failure logs - i found that on the times when the upload is failing is when the IPAD tries to POST as Anonymous and gets denied and then needs to re-POST using NT.

I do have successful logs where the upload succeeds because it uses RequestAuthType="NT" instead of "Anonymous" not quite sure why sometimes the request is anonymous and sometimes it's NT.

This is a post of a similar issue: http://stackoverflow.com/questions/12694310/ios-6-iphone-ipad-image-upload-request-body-stream-exhausted-with-ntlm-windo - but no real solution,

Anyway, i uploaded a couple of the failed request logs to Support - hope someone out there will be able to help.

Thanks,
0
Hristo Valyavicharski
Telerik team
answered on 23 Sep 2013, 04:17 PM
Hello Patrick,

Thank you for your reply.

We are not aware of this issue. We are going to investigate it in details. Meanwhile if you receive any response from Apple's Support please let us know. If this is a development issue in RadAsyncUpload I will log it in our internal tracking system and our developers will do their best to resolve it as soon as they can.

Regards,
Hristo Valyavicharski
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Patrick
Top achievements
Rank 1
answered on 18 Oct 2013, 02:47 PM
Hi, it's definitely a Mobile Safari Bug when used with Windows Authentication.
I would like it if you as the company Telerik were to open a support ticket with Apple for this reproducible issue.

in the meantime, as work-around, what I did was enable Forms Authentication.
Then to enable Windows Authentication (since all of my users need to be Windows Authenticated) what i did was:
I created the Forms Redirect page and then in IIS i set that one file to Require Windows Authentication.
Since only Users who are Windows Authenticated will make it through, in the on-prerender event I grab their Windows Login information and check their UserName against their role in My Database and if all checks out then I create he Forms Authentication Cookie.

So, now i have a Forms Authenticated Application that still works as a Windows Authentication application AND gets around the Bug in Safari.
So, now my users can take pictures using AsyncUpload, (which they couldn't before).

Thanks,
.
0
Hristo Valyavicharski
Telerik team
answered on 23 Oct 2013, 04:08 PM
Hi Patrick,

Thank you for sharing this solution with the community. Regarding the bug in the Safari, we will submit it to Apple. I hope that they will review it soon.

Regards,
Hristo Valyavicharski
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
AsyncUpload
Asked by
Patrick
Top achievements
Rank 1
Answers by
Patrick
Top achievements
Rank 1
Hristo Valyavicharski
Telerik team
Share this question
or