Ask a Question related to ASP.NET Security, Design and Development.
-
Larry #1
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
-
Response.ReDirect / FormsAuth.ForwardFromLogin not working
Instead of doing :- FormsAuthentication.SetAuthCookie (txtUserName.Text,false); Response.Redirect... -
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... -
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... -
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... -
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... -
Ken Schaefer #2
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
-
[MSFT] #3
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
-
Larry #4
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...[url]https://development.froghaven.com/HCS_IT/noiseshield/autoresponder/secure/cc[/url]> 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:
>
>> 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
-
Ken Schaefer #5
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
-
Larry #6
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



Reply With Quote

