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

HTTP Error code is: 500 Telerik.Web.UI.WebResource.axd:3975

5 Answers 1371 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Vuyiswa
Top achievements
Rank 2
Vuyiswa asked on 11 Jun 2013, 07:59 PM

Good Day All 

I am using the AsyncUpload and locally on my machine it works nicely , i can upload and the status turns "Green" but when i upload on the hosted app , it turns "red" , so the the F12 in console shows me the following 

Uncaught Error while uploading, HTTP Error code is: 500 Telerik.Web.UI.WebResource.axd:3975
a.RadAsyncUpload._onFileUploadFail Telerik.Web.UI.WebResource.axd:3975
a.extend.trigger Telerik.Web.UI.WebResource.axd:4081


Thanks 

5 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 12 Jun 2013, 05:23 AM
Hi,

Please make sure that the Telerik.Web.UI.WebResource.axd handler is registered in the web.config properly and also have a look into the following help documentation.

How to register the handle

Thanks,
Shinu.
0
Vuyiswa
Top achievements
Rank 2
answered on 14 Aug 2013, 06:17 PM

This has been working on my Dev machine. So i resolved this issue by giving anonymous access to be able to write the Target folder of RadAsync control and it resolved my problem.

0
Atul
Top achievements
Rank 1
answered on 07 Apr 2017, 12:31 PM

Hi Vuyiswa,

 

Please help me in the same issue.. can you elaborate the solution which you used.

 

Thanks in advance.

 

0
Vuyiswa
Top achievements
Rank 2
answered on 07 Apr 2017, 04:21 PM
So i resolved this issue by giving anonymous access to be able to write the Target folder of RadAsync control and it resolved my problem.
0
Kelvin
Top achievements
Rank 1
answered on 24 Apr 2018, 01:59 PM

Hi everybody, 

To resolve this issue fist of all, I added in the web.config, below code:

 

<system.web.extensions>
    <scripting>
      <webServices>
        <jsonSerialization maxJsonLength="999999999"/>
      </webServices>
    </scripting>
  </system.web.extensions>
 
 
<system.web>
 
<httpHandlers>
      <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource" validate="false" />
      <add verb="*" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.Upload.RadUploadProgressHandler,Telerik.Web.UI" />
    </httpHandlers>
    <httpRuntime relaxedUrlToFileSystemMapping="true" maxRequestLength="999999999" />
 
</system.web>
 
 
<system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/>
    <validation validateIntegratedModeConfiguration="false"/>
    <security>
      <requestFiltering allowDoubleEscaping="true">
        <requestLimits maxAllowedContentLength="999999999" />
      </requestFiltering>
    </security>
    <handlers>
      <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource" name="Telerik_Web_UI_WebResource_axd" />
      <add verb="*" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.Upload.RadUploadProgressHandler,Telerik.Web.UI" name="Telerik_RadUploadProgressHandler_ashx" />
      <add name="ScriptResource" path="ScriptResource.axd" verb="*"
           type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
           preCondition="integratedMode" />
      <add name="WebResource" path="WebResource.axd" verb="*"
           type="System.Web.Handlers.AssemblyResourceLoader"
           scriptProcessor="C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll"
           resourceType="Unspecified"
           preCondition="integratedMode" />
    </handlers>
  </system.webServer><location path="WebResource.axd">
    <system.web>
      <authorization>
        <allow users="*" />
      </authorization>
    </system.web>
  </location>
  <location path="ScriptResource.axd">
    <system.web>
      <authorization>
        <allow users="*" />
      </authorization>
    </system.web>
  </location>
  <location path="Telerik.Web.UI.WebResourceSession.axd">
    <system.web>
      <authorization>
        <allow users="*" />
      </authorization>
      <authentication mode="None" />
    </system.web>
  </location>
  <location path="Telerik.Web.UI.DialogHandler.aspx">
    <system.web>
      <authorization>
        <allow users="*"/>
      </authorization>
    </system.web>
  </location>
  <location path="Telerik.Web.UI.WebResource.axd">
    <system.web>
      <authorization>
        <allow users="*" />
      </authorization>
    </system.web>
  </location>

Then, open your IIS Manager, click on Application Pools:
Status: Started
.NET CLR Version: v4.0
Managed Pipeline Mode: Integrated (This is the most importan thing)
Identity: ApplicationPoolIdentity

Looks my .aspx page

<telerik:RadAsyncUpload ID="NewDocument_UploadFiles" RenderMode="Lightweight" runat="server"
       MultipleFileSelection="Automatic"
       PostbackTriggers="btnNew"
       DisableChunkUpload="true"
       CssClass="column1">
 </telerik:RadAsyncUpload>
<asp:Button runat="server" ID="btnNew" Text="Save" OnClientClick="return makeSomeValidations();" OnClick="btnNew_Click" />

 

Looks my codebehind 

protected void btnNew_Click(object sender, EventArgs e)
        {
            try
            {
                var currentDate = DateTime.Now;
                string serverPathFile = Server.MapPath("~/" + "Uploads-Folders" + "\\");
                 
                if (!Directory.Exists(serverPathFile))
                    Directory.CreateDirectory(serverPathFile);
 
                int count = 1;
                foreach (UploadedFile f in UploadFiles.UploadedFiles)
                {
                    var fileExtention = f.GetExtension();
                    var timestamp = DateTime.Now.ToString("yyyyMMddHHmmssfff");
                     
                    var fileNameTimestamp = timestamp + "-" + count + fileExtention;
                     
                    f.SaveAs(serverPathFile + fileNameTimestamp, true);
 
                    count++;
                }
 
                // Show User Message
            }
            catch (Exception ex)
            {
                // User Message if getting erros....
            }
        }

 

Now, take a coffe and enjoy that everything is running well. 

 

Tags
AsyncUpload
Asked by
Vuyiswa
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
Vuyiswa
Top achievements
Rank 2
Atul
Top achievements
Rank 1
Kelvin
Top achievements
Rank 1
Share this question
or