Can't get upload progress

Posted by: amanbhandari on 10 September 2017, 11:50 am EST

  • Posted 10 September 2017, 11:50 am EST

    I am using the ComponentOne upload control for asp.net wijmo v3 on an asp.net 4 project.

    I believe I have setup the component correctly in terms of registering the http modules and handlers. Yet I receive this when trying to upload a file. Can someone please let me know if there is a resolution for this and what I may be doing wrong?

  • Replied 10 September 2017, 11:50 am EST

    Hello,

    It generally occurs when you have not added the handlers. Make sure that you have the following handlers in your web.config file:

    <httpHandlers>
    <add path="C1UploadProgress.axd" verb="*" type="C1.Web.Wijmo.Controls.C1Upload.UploadProgressHandler,C1.Web.Wijmo.Controls.4"/>
    </httpHandlers>
    <httpModules>
    <add name="C1UploadModule" type="C1.Web.Wijmo.Controls.C1Upload.UploadModule,C1.Web.Wijmo.Controls.4"/>
    </httpModules>


    Also,let me know if the attached sample works at your end or not ?

    I tested it with the latest version available at: http://prerelease.componentone.com/dotnet30/C1WebWijmo.Webforms/2012-T2/

    Regards
    2012/10/WijUpload_Progress.zip
  • Replied 10 September 2017, 11:50 am EST

    Thanks Ashish,

    I am using version 3 of the controls as have only these available to the organisation.

    I have added the httpHandlers and httpModules as explained earlier. The only missing element I can see from the example you supplied is that I am missing the add assembly directive. However I am not able to find the respective assembly in version 3. Can you help?
  • Replied 10 September 2017, 11:50 am EST

    Hello Aman,

    I tried the same with version 3 controls and it too worked properly. I have attached the modified sample.

    Also, you may download the respective dll from the link which has been already been provided in the previous post.

    Regards
    2012/10/WijUpload_Progress_3.zip
  • Replied 10 September 2017, 11:50 am EST

    Apologies, I see that I have posted my question in the incorrect section. I am using Asp.Net controls for AJAX and hence the C1.Web.UI.Controls libs rather than wijmo. And I have selected the control to register itself in web.config file.

    I am not sure what is it that I am doing wrong but it just doesnt appear to work for me :(.
  • Replied 10 September 2017, 11:50 am EST

    Hello Aman,

    Since you are using Upload control of AJAX suite, then make sure that you have the following elements in the web config file:

    Under the modules tag add this:
    <add name="C1UploadModule" type="C1.Web.UI.Controls.C1Upload.UploadModule,C1.Web.UI.Controls.3" />


    under the handlers tag add this:
    <add name="C1UploadProgress" path="C1UploadProgress.axd" verb="*" type="C1.Web.UI.Controls.C1Upload.UploadProgressHandler,C1.Web.UI.Controls.3" />


    also add the following under the security:
    <security>
    <requestFiltering allowHighBitCharacters="true" allowDoubleEscaping="true">
    <requestLimits maxAllowedContentLength="20971510"/>
    </requestFiltering>
    </security>


    Hope it helps.

    Note: We are no longer support Studio for ASP.NET AJAX controls. You can see that in this blog post: http://our.componentone.com/2011/07/20/a-new-dawn-of-web-development-for-componentone/
    I would recommend you to upgrade to Studio for ASP.NET Wijmo.

    Regards
  • Replied 10 September 2017, 11:50 am EST

    I have my web.config file setup exactly as you specify here but still no joy.
  • Replied 10 September 2017, 11:50 am EST

    Thanks Ashish, will be upgrading to the latest wijmo components and will give this a try again. Will mark this as complete once it works.
  • Replied 10 September 2017, 11:50 am EST

    Hello Aman,

    You can take your time to test the same.
    Let me know if you face any issues while upgradation.

    Regards
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels