RadAsyncUpload - 404 -Telerik.Web.UI.WebResource.axd?type=rau - while uploading big files

5 posts, 0 answers
  1. Vinay
    Vinay avatar
    10 posts
    Member since:
    Sep 2014

    Posted 09 Oct 2015 Link to this post

    Hi,

     I'm using RadAsyncUpload control. I'm using forms authentication in application.

    When I log in and upload bigger pdf file(92 MB) it works but when i run a page which is used for guest users(user is not authenticated in this case). The same file does not upload there and throws error as below.(Files with less size like 3MB or 5 MB are getting uploaded on guest page without authentication ).

    "NetworkError: 404 Not Found - http://MySite/Telerik.Web.UI.WebResource.axd?type=rau"​

    uncaught exception: Error while uploading, HTTP Error code is: 404

     -------

    Once I log in and upload, that works. But when I upload file from guest page which doesn't require authentication, I'm getting error.(I've used Form Authentication in my application)

    I have added following in Web.Config already.

    <location path="Telerik.Web.UI.WebResourceSession.axd">
        <system.web>
          <authorization>
            <allow users="*" />
          </authorization>
          <authentication mode="None" />
        </system.web>
      </location>

      <location path="Telerik.Web.UI.WebResource.axd">
        <system.web>
          <authorization>
            <allow users="*" />
          </authorization>
        </system.web>
      </location>

     

    I've also followed instructions mentioned in below URLs but still ​the error occurs.

    http://www.telerik.com/forums/radupload-ajax-callback

    http://www.telerik.com/forums/radupload-with-forms-authentication

     ​​ 

    Please find attached screenshot. You can see that upload progress reaches to 100% and then throwing 404 error for handler.

    Is this issue is related to form authentication?

    Please guide./

     

    Thanks,

    Vinay

     

     

     ​

     

  2. Vinay
    Vinay avatar
    10 posts
    Member since:
    Sep 2014

    Posted 12 Oct 2015 Link to this post

    Here is the Web.Config for the above issue.

     

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
      <location path="Telerik.Web.UI.WebResourceSession.axd">
        <system.web>
          <authorization>
            <allow users="*" />
          </authorization>
          <authentication mode="None" />
        </system.web>
      </location>
      <location path="Telerik.Web.UI.WebResource.axd">
        <system.web>
          <authorization>
            <allow users="*" />
          </authorization>
        </system.web>
      </location>  

      <system.web>
        <customErrors mode="Off" />
        <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID" validateRequest="true">
          <controls>
            -------My Controls
          </controls>
        </pages>
        <compilation debug="true" targetFramework="4.5">
          <assemblies>
            <add assembly="Microsoft.Office.Interop.Word, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C" />
            <add assembly="stdole, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
            <add assembly="Microsoft.Office.Interop.Excel, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C" />
          </assemblies>
        </compilation>
        <httpRuntime targetFramework="4.5" useFullyQualifiedRedirectUrl="true" maxRequestLength="2147483647" requestLengthDiskThreshold="2147483647" executionTimeout="18000"
            enableVersionHeader="false" requestValidationMode="2.0" enableHeaderChecking="true" />
        <authentication mode="Forms">      
          <forms name="FormsAuth." loginUrl="~/Login.aspx" defaultUrl="Default.aspx" protection="All" path="/" timeout="30" slidingExpiration="true" enableCrossAppRedirects="true" />
        </authentication>

        <authorization>
          <deny users="?" />
        </authorization>

        <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>
      </system.web>  
      <system.web>
        <httpCookies httpOnlyCookies="true" requireSSL="false" />
        <httpModules>
          <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0,  Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        </httpModules>
      </system.web>
      <system.webServer>
        <httpProtocol>
          <customHeaders>
            <remove name="X-Powered-By" />
            <remove name="X-Frame-Options" />
            <add name="X-Frame-Options" value="SAMEORIGIN" />
            <remove name="Strict-Transport-Security" />
            <add name="Strict-Transport-Security" value="max-age=31536000; includeSubDomains"/>
            <remove name="X-XSS-Protection" />
            <add name="X-XSS-Protection" value="1; mode=block"/>
            <remove name="X-Content-Type-Options"/>
            <add name="X-Content-Type-Options" value="nosniff"/>
          </customHeaders>
        </httpProtocol>
      </system.webServer>  
    </configuration>

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 14 Oct 2015 Link to this post

    Hi Vinay,

    You settiings looks  fine. Do you use VPN or firewall? 

    Regards,
    Hristo Valyavicharski
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  5. Vinay
    Vinay avatar
    10 posts
    Member since:
    Sep 2014

    Posted 14 Oct 2015 Link to this post

    Hi Hristo Valyavicharski,

    The above issue is resolved. I ​just put below tags to support in IIS 7.5 and it worked.

    <system.webServer>

    <security>
          <requestFiltering allowDoubleEscaping="true">
            <requestLimits maxAllowedContentLength="2147483647" />
          </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" />
        </handlers>​

    </system.webServer>

     

    But now I'm facing another issue. When ​i browse files with different name it works fine but when I browse file with the same name again. I'm getting below error.

    TypeError: o.abort is not a function

    if(o.currentUploadIndex==n){o.abort();     ScriptResource...a934158 (line 453, col 28)​

     

    As I mentioned above, I'm using forms authentication and the page where I'm using RadAsynUpload is not authenticated(Anonymous access).

    Please see the attached file for reference.

     

    Thanks,

    Vinay

  6. Plamen
    Admin
    Plamen avatar
    2730 posts

    Posted 19 Oct 2015 Link to this post

    Hi,

    I have tested the issue at my side with a sample page but could not replicate it at my side. Would you please elaborate a little bit if you can replicated with the attached sample page so we could inspect it and be more helpful.

    Regards,
    Plamen
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017