response.redirect to an HTTPS not working

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default response.redirect to an HTTPS not working

    I have a web from that based on the user's response needs to go to a web
    folder set up with SSL. My problem is that when the redirect is executed I
    get a "page can not be displayed" error on the browser.

    The destination page had been tested prior to switching on the SSL
    requirement for the subdirectory so I'm pretty sure the page(s) works. Any
    ideas what I've done wrong or what I need to try to get it working?

    The flow is from an HTML form, \DIY.htm which on submit calls
    \autoresponder\DIYdirector.aspx, this app page stores the from results into
    a database, sends out a couple of emails and then based on the
    "paymentMethod" data displays the respective page. The folder "secure" has
    SSL enabled on it.

    Here's the code that contains the redirect:

    Select Case Request.Form("paymentMethod")
    Case "Credit card"
    Session("Name") = Request.Form("Name")
    Session("Address") = Request.Form("Address")
    Session("City") = Request.Form("City")
    Session("State") = Request.Form("State")
    Session("Zip") = Request.Form("Zip")

    Response.Redirect([url]https://development.froghaven.com/HCS_IT/noiseshield/autor[/url]
    esponder/secure/ccPayments.aspx)
    Case "Pay By Phone"
    Response.Redirect("DIYpayByPhone.htm")
    Case "Mail Check"
    Response.Redirect("DIYpayByMail.htm")
    End Select


    Larry Guest

  2. Similar Questions and Discussions

    1. Response.ReDirect / FormsAuth.ForwardFromLogin not working
      Instead of doing :- FormsAuthentication.SetAuthCookie (txtUserName.Text,false); Response.Redirect...
    2. Response.Flush / Response.Redirect
      Hi, I've had a good google and can't find anything already on this so : I'm currently trying to have a 'Page Loading' page on a site. The way...
    3. Response.redirect only working sometimes
      I have response.redirect("/home.asp") in my code but instead of redirecting to that page it sometimes redirects to the current page...
    4. Response.Write and Response.Redirect
      On my Page_Load event, i need to do some validation and then either let them proceed, or display a error message and boot them back to the previous...
    5. Redirect to New Browser Window like Response.Redirect
      That worked just fine for me as long as you put that open statement on one line rather than 2. "michel" <michely3k@yahoo.com> wrote in...
  3. #2

    Default Re: response.redirect to an HTTPS not working

    That indicates you may have a problem with your SSL setup. However, just to
    confirm, in your browser, down the bottom, do you see "Can not find server
    or DNS error" (or similar text)? If so, the browser can not contact the
    server using SSL.

    Please use the SSLDiag tool, available from here, to diagnose the situation.
    You can post the output to the group if you are unsure what it means.

    [url]http://www.microsoft.com/downloads/details.aspx?FamilyID=cabea1d0-5a10-41bc-83d4-06c814265282&DisplayLang=en[/url]

    Cheers
    Ken

    "Larry" <Larry@froghaven.com> wrote in message
    news:eYGTZo4MEHA.2824@TK2MSFTNGP10.phx.gbl...
    : I have a web from that based on the user's response needs to go to a web
    : folder set up with SSL. My problem is that when the redirect is executed I
    : get a "page can not be displayed" error on the browser.
    :
    : The destination page had been tested prior to switching on the SSL
    : requirement for the subdirectory so I'm pretty sure the page(s) works. Any
    : ideas what I've done wrong or what I need to try to get it working?
    :
    : The flow is from an HTML form, \DIY.htm which on submit calls
    : \autoresponder\DIYdirector.aspx, this app page stores the from results
    into
    : a database, sends out a couple of emails and then based on the
    : "paymentMethod" data displays the respective page. The folder "secure" has
    : SSL enabled on it.
    :
    : Here's the code that contains the redirect:
    :
    : Select Case Request.Form("paymentMethod")
    : Case "Credit card"
    : Session("Name") = Request.Form("Name")
    : Session("Address") = Request.Form("Address")
    : Session("City") = Request.Form("City")
    : Session("State") = Request.Form("State")
    : Session("Zip") = Request.Form("Zip")
    :
    :
    Response.Redirect([url]https://development.froghaven.com/HCS_IT/noiseshield/autor[/url]
    : esponder/secure/ccPayments.aspx)
    : Case "Pay By Phone"
    : Response.Redirect("DIYpayByPhone.htm")
    : Case "Mail Check"
    : Response.Redirect("DIYpayByMail.htm")
    : End Select
    :
    :


    Ken Schaefer Guest

  4. #3

    Default RE: response.redirect to an HTTPS not working

    Hi Larry,

    In IE, click menu "Tools\options", in Advanced tab, have "Show friendly
    HTTP error messages" checked. This may help us to get more detail
    information about the error.

    Additionally, if you open the page directly in IE:

    [url]https://development.froghaven.com/HCS_IT/noiseshield/autoresponder/secure/cc[/url]
    Payments.aspx

    Will it also fail with same error?

    Luke
    Microsoft Online Support

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

    [MSFT] Guest

  5. #4

    Default Re: response.redirect to an HTTPS not working

    Actually I've discovered my error. Seems I forgot to set the port for SSL
    ( silly me, MS usually sets defaults automaticmagically when using the
    wizards but this time nooooo.) and configure the router/firewall to allow
    access to that port.

    Now I get other problems, the most puzzling is when I access the page I get
    an error from the framework:

    "Failed to start monitoring file changes"

    I haven't a clue as to what's causing this one.

    Accessing the page directly does not work too well as the code is expecting
    some data to be set up by the previous pages ( I needed the data anyway from
    the previous page and it makes it a bit harder to hack through the secure
    page).

    -Larry

    "[MSFT]" <lukezhan@online.microsoft.com> wrote in message
    news:Bi0JDp9MEHA.2524@cpmsftngxa10.phx.gbl...
    > Hi Larry,
    >
    > In IE, click menu "Tools\options", in Advanced tab, have "Show friendly
    > HTTP error messages" checked. This may help us to get more detail
    > information about the error.
    >
    > Additionally, if you open the page directly in IE:
    >
    >
    [url]https://development.froghaven.com/HCS_IT/noiseshield/autoresponder/secure/cc[/url]
    > Payments.aspx
    >
    > Will it also fail with same error?
    >
    > Luke
    > Microsoft Online Support
    >
    > Get Secure! [url]www.microsoft.com/security[/url]
    > (This posting is provided "AS IS", with no warranties, and confers no
    > rights.)
    >

    Larry Guest

  6. #5

    Default Re: response.redirect to an HTTPS not working

    That indicates a permissions problem.
    [url]http://support.microsoft.com/default.aspx?scid=kb;en-us;316721[/url]
    and
    [url]http://support.microsoft.com/default.aspx?scid=kb;en-us;317955[/url]

    Cheers
    Ken


    "Larry" <Larry@froghaven.com> wrote in message
    news:%23DaRX%23LNEHA.3312@tk2msftngp13.phx.gbl...
    : Actually I've discovered my error. Seems I forgot to set the port for SSL
    : ( silly me, MS usually sets defaults automaticmagically when using the
    : wizards but this time nooooo.) and configure the router/firewall to allow
    : access to that port.
    :
    : Now I get other problems, the most puzzling is when I access the page I
    get
    : an error from the framework:
    :
    : "Failed to start monitoring file changes"
    :
    : I haven't a clue as to what's causing this one.
    :
    : Accessing the page directly does not work too well as the code is
    expecting
    : some data to be set up by the previous pages ( I needed the data anyway
    from
    : the previous page and it makes it a bit harder to hack through the secure
    : page).
    :
    : -Larry
    :
    : "[MSFT]" <lukezhan@online.microsoft.com> wrote in message
    : news:Bi0JDp9MEHA.2524@cpmsftngxa10.phx.gbl...
    : > Hi Larry,
    : >
    : > In IE, click menu "Tools\options", in Advanced tab, have "Show friendly
    : > HTTP error messages" checked. This may help us to get more detail
    : > information about the error.
    : >
    : > Additionally, if you open the page directly in IE:
    : >
    : >
    :
    [url]https://development.froghaven.com/HCS_IT/noiseshield/autoresponder/secure/cc[/url]
    : > Payments.aspx
    : >
    : > Will it also fail with same error?
    : >
    : > Luke
    : > Microsoft Online Support
    : >
    : > Get Secure! [url]www.microsoft.com/security[/url]
    : > (This posting is provided "AS IS", with no warranties, and confers no
    : > rights.)
    : >
    :
    :


    Ken Schaefer Guest

  7. #6

    Default Re: response.redirect to an HTTPS not working

    Yes I agree it does but what I don't understand is why the system is trying to reference that directory. He's the issue:

    I have done my development under my development URL/directroy : [url]http://development.froghaven.com/noiseshade/autoresponder[/url] / d:\wwwroot.development.autoresponder. Then using the copy project tool I've moved the files required to execute to the production test site: [url]http://test.noiseshade.com[/url]
    There are 5 web app modules in autoresponder, only this one (CCPayment.aspx) is in a sub-directory called secure and has SSL enabled. The other four modules (all of which share the same dll file) work fine, only this one gives me this error: System.Web.HttpException: Access denied to 'D:\wwwroot\Development\autoresponder'. Failed to start monitoring file changes.

    In my mind the system should no longer refer to the development directories, but I can't find where it's getting this dependence or reference from.

    for now I'll study the articles you've referenced, if you have some more ideas on this and how or what I need to do to remove this dependence on the development directory I'd appreciate it.

    -Larry


    "Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wrote in message news:uzS%235EQNEHA.3712@TK2MSFTNGP10.phx.gbl...
    > That indicates a permissions problem.
    > [url]http://support.microsoft.com/default.aspx?scid=kb;en-us;316721[/url]
    > and
    > [url]http://support.microsoft.com/default.aspx?scid=kb;en-us;317955[/url]
    >
    > Cheers
    > Ken
    >
    >
    > "Larry" <Larry@froghaven.com> wrote in message
    > news:%23DaRX%23LNEHA.3312@tk2msftngp13.phx.gbl...
    > : Actually I've discovered my error. Seems I forgot to set the port for SSL
    > : ( silly me, MS usually sets defaults automaticmagically when using the
    > : wizards but this time nooooo.) and configure the router/firewall to allow
    > : access to that port.
    > :
    > : Now I get other problems, the most puzzling is when I access the page I
    > get
    > : an error from the framework:
    > :
    > : "Failed to start monitoring file changes"
    > :
    > : I haven't a clue as to what's causing this one.
    > :
    > : Accessing the page directly does not work too well as the code is
    > expecting
    > : some data to be set up by the previous pages ( I needed the data anyway
    > from
    > : the previous page and it makes it a bit harder to hack through the secure
    > : page).
    > :
    > : -Larry
    > :
    > : "[MSFT]" <lukezhan@online.microsoft.com> wrote in message
    > : news:Bi0JDp9MEHA.2524@cpmsftngxa10.phx.gbl...
    > : > Hi Larry,
    > : >
    > : > In IE, click menu "Tools\options", in Advanced tab, have "Show friendly
    > : > HTTP error messages" checked. This may help us to get more detail
    > : > information about the error.
    > : >
    > : > Additionally, if you open the page directly in IE:
    > : >
    > : >
    > :
    > [url]https://development.froghaven.com/HCS_IT/noiseshield/autoresponder/secure/cc[/url]
    > : > Payments.aspx
    > : >
    > : > Will it also fail with same error?
    > : >
    > : > Luke
    > : > Microsoft Online Support
    > : >
    > : > Get Secure! [url]www.microsoft.com/security[/url]
    > : > (This posting is provided "AS IS", with no warranties, and confers no
    > : > rights.)
    > : >
    > :
    > :
    >
    >
    Larry Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139