Ticket Q330868
Visible to All Users

MVC UploadControl stopped working after upgrading to version 11.4

created 14 years ago

We recently upgraded from version 10.2.8 to version 11.4 and ran into an issue with the UploadControl after the upgrade. After clicking the upload button the progress bar stays at 0% and I don't see it hitting the controller action. I was able to replicate the issue with a brand new project using the MVC version 11 (ASPX) Visual Studio project template. See the attachment for an example project.
In production I did notice through Fiddler that the ashx handler was returning a 404. Any help addressing this matter is greatly appreciated.

Show previous comments (3)
DevExpress Support Team 14 years ago

    Hello Rob:
    I will discuss this issue with our developers and let you know our decision. Please accept our apologies for the delay in responding.
    Thanks
    Kate.

    DevExpress Support Team 14 years ago

      Hello Rob:
      Please accept my apologies for the delay in responding.
      This problem may be solved via the following steps:

      1. Wrap the UploadControl with a form:
      ASPx
      <form id="form1" runat="server"> ... <% Html.DevExpress().UploadControl( settings => { settings.Name = "ucDocumentUpload"; settings.CallbackRouteValues = new { Controller = "Home", Action = "UploadDocument" }; }).Render(); %> ... </form>
      1. Change the RegisterRoutes method in the global.asax file. This method should include an exception for the standard router which will allow you to process requests from our handler correctly:
      C#
      public static void RegisterRoutes(RouteCollection routes) { ... routes.IgnoreRoute("{resource}.ashx/{*pathInfo}"); ... }

      If this solution does not help, please reactivate this ticket.
      Thanks
      Kate.

        I confirmed that the call to IgnoreRoute is there and that the control is inside a form. I still see that 404 error through Fiddler, it continuously tries to hit:
        GET /Web30/ASPxUploadProgressHandlerPage.ashx?DXProgressHandlerKey=16fb27c5-3a9c-4932-bccc-261c7c4ce3dd HTTP/1.1
        Any other ideas?

        Answers

        created 14 years ago

        Hello Rob:
        I am afraid it is difficult to say what the cause of this problem is in this case since it is not reproduced after all required modifications.
        Please take a look at the following video and ensure that you have applied all settings correctly.
        http://downloads.devexpress.com/UserShare/Temp/MVCUploadProgress.zip
        Thanks
        Kate.

          Show previous comments (2)
          DevExpress Support Team 14 years ago

            Hello Rob:
            I am glad to hear that the issue is solved. If you have other issues, related to our controls, please feel free to post corresponding reports. Our team always do its best to help you.
            Thanks
            Kate.

              The instructions didn't help me at all.  It came down to a missing folder, permissions on that folder and IIS being set the to Integrated vs. Classic.

              Missing Folder was /App_Data/UploadTemp

              Set Permissions for NETWORK SERVICE on that folder and it worked.

              Did I miss this in the documentation someplace or was there another reason it was missing?

              Can I change that path or use a different path if that one doesn't work for me?

                Hello Jon,

                To process your recent post more efficiently, I created a separate ticket on your behalf: T160854: ASPxUploadControl - How to set Upload / Temp Folder permissions. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.

                Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

                Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.