New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

Red Dot Shown and File Not Uploaded

Environment

Property Value
Product RadAsyncUpload for ASP.NET AJAX
Version all

Description

I am experiencing an issue where a red dot is shown next to every file I attempt to upload, and the files are not being uploaded successfully.

Solution

To resolve this issue, follow these steps:

  • Check if you have write permission to your temporary folder. If you are hosting your application in IIS, make sure you have assigned additional permissions to the temporary folder. By default, the temporary upload folder is located at ~/App_Data/RadUploadTemp. Ensure that the folder has full read and write permissions.
  • Verify that the Telerik.Web.UI.WebResource.axd handler is registered in the web.config file. Open the web.config file and add the following code snippet within the <system.web> section:
<system.web>
    <httpHandlers>
        <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>
    </httpHandlers>
</system.web>
  • Also, ensure that the following code snippet is present within the <system.webServer> section:
<system.webServer>
    <handlers>
          <remove name="Telerik_Web_UI_WebResource_axd"/>
          <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode"/>
    </handlers>
</system.webServer>

Note: Test if the Telerik.Web.UI.WebResource.axd handler is registered correctly by opening the following URL: https://[your domain or IP name]/Telerik.web.ui.webresource.axd?type=rau. If the output is {"message" : "RadAsyncUpload handler is registered successfully, however, it may not be accessed directly."}, then your handler is registered correctly.

If the issue persists, consider the following additional tips:

  • The file upload will fail if the TemporaryUpload folder is not given enough permissions, even if the permissions of the TargetFolder are set properly. The default temporary upload folder is placed inside the App_data folder, so you have to give full read and write permissions to it as well: ~/App_Data/RadUploadTemp
  • Set the UseApplicationPoolImpersonation property as explained in the Application Pool Impersonation article.
  • Exclude the handler from Windows Authentication (NTLM) and Forms Authentication by adding the following code snippet within the <location path="Telerik.Web.UI.WebResource.axd"> section in the web.config:
<location path="Telerik.Web.UI.WebResource.axd">
    <system.web>
        <authorization>
            <allow users="?" />
        </authorization>
    </system.web>
</location>
In this article