This is a migrated thread and some comments may be shown as answers.

RadUrid and .net 4.0 Routing

3 Answers 138 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Top Coder
Top achievements
Rank 1
Top Coder asked on 11 Apr 2012, 01:25 AM

I have routes defined for all my pages in .Net. 

RouteTable.Routes.MapPageRoute("UploadPage", "upload/", "~/upload.aspx")

Then when I use the upload control it tacks on the RadUrid, which I don't have a route defined for and it causes an error. 

If I define an additional route.

Like ,

RouteTable.Routes.MapPageRoute("UploadPage", "upload/{radurid}", "~/upload.aspx") 

So it doesn't cause an error, but will it still work correctly, since it's no longer in the request.querystring, but instead pages.routdata.values ?


3 Answers, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 13 Apr 2012, 12:02 PM
Hello Henry,

Unfortunately I wasn't able to reproduce the problem. I created a small sample web site with a route for the default page, but when I upload a file everything works correctly and I didn't receive an error. Could you take a look at the attached web site and see if I missed something. 

If I did, please modify the sample so that it reproduces the issue (or attache a runnable version of your own project) and open a support ticket, where you can attach the project and send it back to me, so that I can investigate the issue locally.
 
Regards,
Bozhidar
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Top Coder
Top achievements
Rank 1
answered on 13 Apr 2012, 02:38 PM
Bozhidar, 

  Thanks for the example, I believe you can't reproduce the error, because you didn't set up routing properly.. 

You need to add this to your machine config... 

    <system.webServer>
           <modules runAllManagedModulesForAllRequests="true">
            <add name="UrlRoutingModule" type="System.Web.Routing.UrlRoutingModule, System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        </modules>
   <system.webServer>

What I did to get around the issue was removed the radupload, radprogressarea, radprogressareamanager and just replaced it with a radasyncupload. 


0
Bozhidar
Telerik team
answered on 16 Apr 2012, 12:52 PM
Hello Henry,

Thank you for the feedback.

The old RadUpload control and ProgressArea had many issues (this one included). That's why instead of trying to fix and work around them, we decided to redesign the whole thing and introduce the RadAsyncUpload control as a replacement. 

Even though we still work on RadUpload and support it, we strongly recommend using RadAsyncUpload. I'm glad that using it solved the issue. Please feel free to contact us again if something else comes up.
 
All the best,
Bozhidar
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Upload (Obsolete)
Asked by
Top Coder
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Top Coder
Top achievements
Rank 1
Share this question
or