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

6 posts, 0 answers
  1. Vuyiswa
    Vuyiswa avatar
    217 posts
    Member since:
    Jan 2010

    Posted 11 Jun 2013 Link to this post


    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 

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 12 Jun 2013 Link to this post

    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.
  3. Vuyiswa
    Vuyiswa avatar
    217 posts
    Member since:
    Jan 2010

    Posted 14 Aug 2013 Link to this post

    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.

  4. Atul
    Atul avatar
    1 posts
    Member since:
    Nov 2016

    Posted 07 Apr 2017 in reply to Vuyiswa Link to this post

    Hi Vuyiswa,

     

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

     

    Thanks in advance.

     

  5. Vuyiswa
    Vuyiswa avatar
    217 posts
    Member since:
    Jan 2010

    Posted 07 Apr 2017 in reply to Atul Link to this post

    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.
  6. Kelvin
    Kelvin avatar
    1 posts
    Member since:
    Apr 2018

    Posted 24 Apr 2018 in reply to Atul Link to this post

    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. 

     

Back to Top