UrlRewriting, CascadingDropDown and "*" verb

Rate It (1)

Last post 02-27-2008 11:38 AM by MichaelOSS. 5 replies.

Sort Posts:

  • UrlRewriting, CascadingDropDown and "*" verb

    12-14-2006, 9:28 AM
    • Member
      point Member
    • yaceck
    • Member since 12-13-2006, 3:33 PM
    • Odesa, Ukraine
    • Posts 3

    Hi, 

    I use urlrewriting. In IIS settings contains "*" verb. 
    When I use CascadingDropDown there is an error of "Method error 405".
    When I delete "*" verb - all is OK.

    How to decide a problem without the delete of "*"?

  • Re: UrlRewriting, CascadingDropDown and "*" verb

    12-21-2006, 4:16 PM
    • Star
      8,710 point Star
    • David Anson
    • Member since 04-11-2006, 1:39 AM
    • Microsoft
    • Posts 1,842
    • AspNetTeam
    Your URL rewriter is probably interfering with ASP.NET AJAX's handler for web service traffic.

    http://blogs.msdn.com/delay

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: UrlRewriting, CascadingDropDown and "*" verb

    12-22-2006, 3:22 AM
    • Member
      point Member
    • yaceck
    • Member since 12-13-2006, 3:33 PM
    • Odesa, Ukraine
    • Posts 3

    Hello,

    thank you for reply.

    For rapid solution with MS ASP.NET AJAX I use jointly Anthem.NET AJAX. DropDownList control in Anthem.NET AJAX is working without web service (data is loading directly from DataSet). These two libraries is working jointly without conflicts.

  • Re: UrlRewriting, CascadingDropDown and "*" verb

    07-05-2007, 6:53 PM
    • Contributor
      3,429 point Contributor
    • rfurdzik
    • Member since 07-01-2002, 6:32 PM
    • zikbay.com
    • Posts 1,721

    I had the same problem I have resolved it. It is a problem/bug with IIS 5, look here: http://forums.asp.net/t/1123124.aspx

    You may also add form extender as described here: http://forums.asp.net/t/1129701.aspx.

    This is the code you need:

    Ok, I have fixed it. It requires this code. Seems like this is a bug in IIS 5...It is not stripping PathInfo correctly before handling request to ASP.NET

    private void OnBeginRequest(object sender, EventArgs e)

    {

    HttpApplication app = sender as HttpApplication;

    HttpContext context = app.Context;

    string path = context.Request.Path;

     

    int aspx = path.IndexOf(".aspx/", StringComparison.OrdinalIgnoreCase);if (aspx >= 0)

    {

    context.RewritePath(

    path.Substring(0, aspx + 5),

    path.Substring(aspx + 5),

    context.Request.QueryString.ToString());

    return;

    }

    int asmx = path.IndexOf(".asmx/", StringComparison.OrdinalIgnoreCase);if (asmx >= 0)

    context.RewritePath(

    path.Substring(0, asmx + 5),

    path.Substring(asmx + 5),

    context.Request.QueryString.ToString());

    }

    }

  • Re: UrlRewriting, CascadingDropDown and "*" verb

    01-09-2008, 2:57 PM
    • Member
      6 point Member
    • MichaelOSS
    • Member since 12-18-2007, 2:18 AM
    • Posts 55

    rfurdzik - Where would I add the code you have in your post?  I am seeing the problem on Vista using VB.NET.  Thanks!

    I really need this workaround.

  • Re: UrlRewriting, CascadingDropDown and "*" verb

    02-27-2008, 11:38 AM
    • Member
      6 point Member
    • MichaelOSS
    • Member since 12-18-2007, 2:18 AM
    • Posts 55

    I rewrote the code not to use the URL Rewrite

Page 1 of 1 (6 items)