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

RADUpload POST locking up

3 Answers 79 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Scott Manning
Top achievements
Rank 1
Scott Manning asked on 14 Sep 2010, 05:07 PM
I have a simple form that has the RADUpload and RADProgressbar on it.  I have a save and cancel buttons (ASP:BUTTONS) and have registered thr respective Telerik controls in the web.config file (See Below) and when I press the Save (Submit) button, the page never returns.  Eventually I will get an ajax time out error.  The project is .NET 4.0 and I am using the Telerik controls v4.0.30319.  Note, when I also press the cancel button, I still have a locked up page.  I have tried many different combinations such as
* uploaded zero files
* 1 very small file and
* 1 very large file



  <system.web>
    <compilation debug="true" targetFramework="4.0">
      <assemblies>
        <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
        <add assembly="System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add assembly="System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
        <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
      </assemblies>
    </compilation>
    <httpRuntime maxRequestLength="809600" />
    <authentication mode="Forms">
      <forms loginUrl="~/Account/Login.aspx" timeout="2880" />
    </authentication>
    <membership>
      <providers>
        <clear />
        <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" />
      </providers>
    </membership>
    <profile>
      <providers>
        <clear />
        <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/" />
      </providers>
    </profile>
    <roleManager enabled="false">
      <providers>
        <clear />
        <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" />
        <add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" />
      </providers>
    </roleManager>
    <httpHandlers>
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
      <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" />
    </httpHandlers>
    <httpModules>
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" />
    </httpModules>
  </system.web>
  <system.webServer>
    <modules runAllManagedModulesForAllRequests="true">
      <add name="RadUploadModule" preCondition="integratedMode" type="Telerik.Web.UI.RadUploadHttpModule" />
    </modules>
    <validation validateIntegratedModeConfiguration="false" />
    <handlers>
      <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
      <add name="Telerik_RadUploadProgressHandler_ashx" verb="*" preCondition="integratedMode" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" />
    </handlers>
  </system.webServer>

3 Answers, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 17 Sep 2010, 01:25 PM
Hello Scott Manning,

I am not sure that the problem is related to RadUpload/RadProgressArea. Does the issue reproduce when you comment out them? What happens if you try to upload a file using the standard ASP.NET FileUpload? I suggest hat you do a http monitoring using a tool like fiddler. It should show what is going wrong with the request. Please take a look at the following help article for information on how to do that.

Best wishes,
Genady Sergeev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Scott Manning
Top achievements
Rank 1
answered on 20 Sep 2010, 12:08 PM

I used wireshark so it would not interfere with the traffic. When I press the save button, I see the GET /Telerik.RadUploaderProgressHandler.ashx?RadUrid=1d63…

 

I never see a response back from the handler.  I can remove the radupload and radprogress components from the web page and the page moves to the next page when the user presses the save button.  It is only when I add these two controls that seem to lock up the page when the Save button is pressed.


0
Genady Sergeev
Telerik team
answered on 23 Sep 2010, 08:46 AM
Hi Scott Manning,

The interesting thing here is that you receive Ajax timeout error. Now, RadUpload cannot upload files using AJAX calls. This is a limitation of the XmlHttpRequest component, used in all AJAX frameworks for asynchronous calls to the application. In order to upload a file your application must perform a full page postback. Have you applied the workarounds to disable ajax when upload as listed here?

Also, I think that the fiddler log is going to be more helpful because it will show all requests generated from the page. The packett that you have captured with WireShark is targeting the RadUploadProgressHandler, which is responsible for the progress monitoring, not the very upload. Could you please send us FiddlerCap log?

Best wishes,
Genady Sergeev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Upload (Obsolete)
Asked by
Scott Manning
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Scott Manning
Top achievements
Rank 1
Share this question
or