SlickUpload
Welcome Guest Search | Active Topics | Log In | Register

URL Rewrite causing SlickUpload to timeout Options
yeahstu
#1 Posted : Monday, April 12, 2010 4:14:47 PM
Rank: Member

Groups: Registered

Joined: 7/25/2009
Posts: 13
Location: Ohio, USA

Hello, I have a site in ASP.NET MVC and have been using the SlickUpload successfully for a little while.

I recently implemented a 301 redirect using IIS' URL Rewrite module.  As soon as I did this, the SlickUpload component stopped working when I uploaded any files.  When I clicked "upload" it just sat at 0% and eventually timed out.

Should this work in my environment?  Is there any additional configuration changes I need to make to support this?

Nathan Stuller
www.viternus.com
Axosoft
#2 Posted : Monday, April 12, 2010 6:26:04 PM
Rank: Administration


Groups: Administrators

Joined: 7/7/2005
Posts: 1,586
Location: Scottsdale, AZ

Here are some questions to help track down the issue:

  • Are you redirecting the SlickUpload handler (SlickUpload.axd), or just some of your application pages?
  • You're using IIS7 integrated mode with this url rewrite module: http://www.iis.net/download/urlrewrite, correct?
yeahstu
#3 Posted : Monday, April 12, 2010 8:44:29 PM
Rank: Member

Groups: Registered

Joined: 7/25/2009
Posts: 13
Location: Ohio, USA
  • Are you redirecting the SlickUpload handler (SlickUpload.axd), or just some of your application pages?
  • I am not sure.  If I add a URL Rewrite rule for "Canonical domain name" it breaks the upload.  I am trying to optimize for SEO by making sure that I have a permanent redirect.  The idea is to change any urls that do not have a www to instead have a www.

  • You're using IIS7 integrated mode with this url rewrite module: http://www.iis.net/download/urlrewrite, correct?
  • Yes, It is using integrated mode and the specified url rewrite module.

    Nathan Stuller
    www.viternus.com
    Axosoft
    #4 Posted : Tuesday, April 13, 2010 12:45:33 PM
    Rank: Administration


    Groups: Administrators

    Joined: 7/7/2005
    Posts: 1,586
    Location: Scottsdale, AZ

    We've done some testing and SlickUpload works with the IIS UrlRewrite module as long as you don't redirect SlickUpload's handler (SlickUpload.axd). Redirecting the handler cause the upload to fail because HTTP POST's can't be redirected -- SlickUpload attempts a form post to do the upload, and instead of the post going through it receives a redirect.

    Based on this, it sounds as if your redirect rules are catching SlickUpload's handler. Try adding an exclusion to the rule, something like:

    <add input="{REQUEST_URI}" pattern="SlickUpload.axd" negate="true" />

    yeahstu
    #5 Posted : Tuesday, April 13, 2010 1:20:17 PM
    Rank: Member

    Groups: Registered

    Joined: 7/25/2009
    Posts: 13
    Location: Ohio, USA

    As usual, thank you for the excellent support!

    After your suggestion I tried a canonical domain name rule and realized that that wasn't the problem initially.  Initially, the issue stemmed from a Lower Case rule.  That makes sense, because it would be attempting to process the SlickUpload.axd file and make it slickupload.axd.  After putting in the exclusion you mention, both rules worked.

    Thanks again!

    Nathan Stuller
    www.viternus.com
    Users browsing this topic
    Guest
    Forum Jump  
    You cannot post new topics in this forum.
    You cannot reply to topics in this forum.
    You cannot delete your posts in this forum.
    You cannot edit your posts in this forum.
    You cannot create polls in this forum.
    You cannot vote in polls in this forum.