Re: BUG? With A HTTPModule

Discussion in 'ASP .Net' started by Guest, Apr 2, 2004.

  1. Guest

    Guest Guest

    I have tried that and it has ended up with the same results.
    Below is the code I am using to attempt to avoid this from happening but if
    a user were to spoof it and access the one page without any properties it
    404's

    string TmpMode = UrlSegments[1].Replace(".aspx","").ToLower();
    NewUrl.Append("Payment/ShoppingCart.aspx"). Append("?mode=").
    Append(TmpMode);
    if (TmpMode=="addtocart")
    {
    if (context.Request.QueryString["ItemCode"]!=null) {
    NewUrl.Append("&ItemCode=").
    Append(context.Request.QueryString["ItemCode"]); }
    if (context.Request.QueryString["ItemQuantity"]!=null) {
    NewUrl.Append("&ItemQuantity=").
    Append(context.Request.QueryString["ItemQuantity"]); }
    }

    the If statement is for all the other pages that are accessed that do not
    have variables however if they are addingtocart and they dont specify any
    values it will 404 as expected. I am currentlyl going to live with it and
    then monitor how many people actually access it without the variables. it
    "should" be none but you never know with people ;)

    As far as i can tell I am as stumped as everybody. The Project is going to
    go live in the next week or 2 at which point i should be able to see if the
    problem also happens on a Windows 2003 Server. If the problem persists on
    Windows 2003 server also and the overall deployment goes smoothly i will
    look at finding time to submit a PSS ticket to figure out why this happens.





    "Steven Cheng[MSFT]" <> wrote in message
    news:...
    > Hi,
    >
    > Thanks for your reply. As you mentioned that you use some certain string
    > to
    > concate the whole new url which is used to rewrite the Requested path.
    > Have
    > you also tried a fixed path, for example:
    > put a test page named test.aspx in the application's root folder and
    > change
    > the rewritepath code as below:
    > void OnBeginRequest(object sender, EventArgs a)
    > {
    > HttpApplication application = (HttpApplication)sender;
    > ......................// check the querystring
    > ......................
    >
    > application.Context.RewritePath("http://localhost:8080/CompanyName/test.aspx
    > ");
    > }
    >
    > Or you can try the "~/....aspx" url, the "~/" means begin from the
    > application's root folder(virutal directory) which can help specify the
    > application's root directory without hardcode it. If the above test still
    > failed, I'm afraid that it would require intensive troubleshooting. You
    > may
    > need to submit a service request to
    > our Product Support Service. We may do some dump analysis on it and see
    > why
    > the exception happens. Thanks.
    >
    > Regards,
    >
    > Steven Cheng
    > Microsoft Online Support
    >
    > Get Secure! www.microsoft.com/security
    > (This posting is provided "AS IS", with no warranties, and confers no
    > rights.)
    >
    > Get Preview at ASP.NET whidbey
    > http://msdn.microsoft.com/asp.net/whidbey/default.aspx
    >
    >
     
    Guest, Apr 2, 2004
    #1
    1. Advertising

  2. Hi,

    I'm sorry to hear that the problem still remains. Since you've repro it
    through severals tests on your side. I do think that a thorough
    troubleshooting or analisis in depth is needed. Also, I think that your
    further test on another Win2k3 server you mentioned is also possible to
    provide some clues on this. Anyway, Hope you'll soon firgure out the
    problem. Thanks.

    Regards,

    Steven Cheng
    Microsoft Online Support

    Get Secure! www.microsoft.com/security
    (This posting is provided "AS IS", with no warranties, and confers no
    rights.)

    Get Preview at ASP.NET whidbey
    http://msdn.microsoft.com/asp.net/whidbey/default.aspx
     
    Steven Cheng[MSFT], Apr 5, 2004
    #2
    1. Advertising

  3. Guest

    Guest Guest

    Yep. The Project just went live today. So I will check sometime today or
    tomorrow if the same happens. And if it does then I will look into opening a
    PSS ticket.


    "Steven Cheng[MSFT]" <> wrote in message
    news:...
    > Hi,
    >
    > I'm sorry to hear that the problem still remains. Since you've repro it
    > through severals tests on your side. I do think that a thorough
    > troubleshooting or analisis in depth is needed. Also, I think that your
    > further test on another Win2k3 server you mentioned is also possible to
    > provide some clues on this. Anyway, Hope you'll soon firgure out the
    > problem. Thanks.
    >
    > Regards,
    >
    > Steven Cheng
    > Microsoft Online Support
    >
    > Get Secure! www.microsoft.com/security
    > (This posting is provided "AS IS", with no warranties, and confers no
    > rights.)
    >
    > Get Preview at ASP.NET whidbey
    > http://msdn.microsoft.com/asp.net/whidbey/default.aspx
    >
     
    Guest, Apr 9, 2004
    #3
  4. Guest

    Guest Guest

    The bug Appears to show up in Windows 2003 server also. I am going to try to
    find some time popping some harmless Debug Code Over the weekend since it is
    now on a live server. Will Open a PSS ticket if the results backup my
    initial findings



    values
    <> wrote in message
    news:...
    > Yep. The Project just went live today. So I will check sometime today or
    > tomorrow if the same happens. And if it does then I will look into opening
    > a PSS ticket.
    >
    >
    > "Steven Cheng[MSFT]" <> wrote in message
    > news:...
    >> Hi,
    >>
    >> I'm sorry to hear that the problem still remains. Since you've repro it
    >> through severals tests on your side. I do think that a thorough
    >> troubleshooting or analisis in depth is needed. Also, I think that your
    >> further test on another Win2k3 server you mentioned is also possible to
    >> provide some clues on this. Anyway, Hope you'll soon firgure out the
    >> problem. Thanks.
    >>
    >> Regards,
    >>
    >> Steven Cheng
    >> Microsoft Online Support
    >>
    >> Get Secure! www.microsoft.com/security
    >> (This posting is provided "AS IS", with no warranties, and confers no
    >> rights.)
    >>
    >> Get Preview at ASP.NET whidbey
    >> http://msdn.microsoft.com/asp.net/whidbey/default.aspx
    >>

    >
    >
     
    Guest, Apr 10, 2004
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jon Sequeira
    Replies:
    3
    Views:
    4,223
    gerry
    Jun 26, 2003
  2. PJ

    HttpModule

    PJ, Jul 17, 2003, in forum: ASP .Net
    Replies:
    3
    Views:
    626
    Saravana
    Jul 18, 2003
  3. Gary Varga
    Replies:
    0
    Views:
    357
    Gary Varga
    Jul 18, 2003
  4. Peter Rilling
    Replies:
    1
    Views:
    532
    Dhananjay Modak
    Aug 5, 2003
  5. Juha Borenius

    HttpModule or Global.asax

    Juha Borenius, Aug 13, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    652
    S. Justin Gengo
    Aug 13, 2003
Loading...

Share This Page