It seems that IIS 6 is auto adding all these strings to my url
I don't think so.
The most likely scenario is that your redirect to the thanksnextgen.cfm is successful and the process on your server that handles cfm requests (cold fusion) receives that request and decides for whatever reason that you're not supposed to be there. The
CFM service then redirects you again to the page you finally land on (RemoteVerify.cfm). when it does this, it appends the returnTo url - so that if it can verify you, it can still send you back to the page you originally tried to access.
This is not unlike how asp.net security works. You try to access a page you are denied access to and you get redirected. and the page you were accessing become part of the querystring so that if you successfully authenticate, you can be sent back to the
page that you had originally tried to access.
Since you are accessing cfm pages when this occurs, the issue is not an asp.net issue. it is related to your cfm setup.
To see the redirects and confirm that this is truly what's happening, I'd recommend getting a copy of Fiddler. It's free:
http://www.fiddler2.com/fiddler2/
suthish nair
All-Star
15176 Points
3304 Posts
Re: Response.Redirect to http page returns The page cannot be found
Sep 03, 2009 06:43 PM|LINK
My Blog
jeanclaudeT
Member
14 Points
67 Posts
Re: Response.Redirect to http page returns The page cannot be found
Sep 03, 2009 06:54 PM|LINK
string redirectPath = @"http://www.cof.org/whoweserve/family/thanksnextgen.cfm";
Server.Transfer(redirectPath);
this is the error I get when I use Server.Transfer method.
Invalid path for child request 'http://www.cof.org/whoweserve/family/thanksnextgen.cfm'. A virtual path is expected.
suthish nair
All-Star
15176 Points
3304 Posts
Re: Response.Redirect to http page returns The page cannot be found
Sep 03, 2009 07:05 PM|LINK
this also:
http://ordinastage.blogspot.com/2007/05/aspnet-membership-returnurl-problem.html
My Blog
jeanclaudeT
Member
14 Points
67 Posts
Re: Response.Redirect to http page returns The page cannot be found
Sep 03, 2009 08:27 PM|LINK
should I focus my research (finding the cause of the bug) in solving this problem on IIS 6 server OR on my web application that I publish on IIS 6?
Again, in Firefox I do not encounteer the problem.
I just do not know where to go from now on.
ctheriault
Participant
1559 Points
280 Posts
Re: Response.Redirect to http page returns The page cannot be found
Sep 03, 2009 09:11 PM|LINK
Is www.cof.org being remap to somewhere else?
Don't forget to mark this posting as an "Answer" if it is helpful to you
mbanavige
All-Star
134944 Points
15413 Posts
ASPInsiders
Moderator
MVP
Re: Response.Redirect to http page returns The page cannot be found
Sep 04, 2009 01:07 AM|LINK
I don't think so.
The most likely scenario is that your redirect to the thanksnextgen.cfm is successful and the process on your server that handles cfm requests (cold fusion) receives that request and decides for whatever reason that you're not supposed to be there. The CFM service then redirects you again to the page you finally land on (RemoteVerify.cfm). when it does this, it appends the returnTo url - so that if it can verify you, it can still send you back to the page you originally tried to access.
This is not unlike how asp.net security works. You try to access a page you are denied access to and you get redirected. and the page you were accessing become part of the querystring so that if you successfully authenticate, you can be sent back to the page that you had originally tried to access.
Since you are accessing cfm pages when this occurs, the issue is not an asp.net issue. it is related to your cfm setup.
To see the redirects and confirm that this is truly what's happening, I'd recommend getting a copy of Fiddler. It's free: http://www.fiddler2.com/fiddler2/
jeanclaudeT
Member
14 Points
67 Posts
Re: Response.Redirect to http page returns The page cannot be found
Sep 04, 2009 05:25 PM|LINK
Did you double check if the dns name www.cof.org resolve to the proper IP address on your server?
Yes, it does resolve to the proper IP address on my server
Is there anything wrong with the hosts file (cf %systemroot%\system32\drivers\etc_) on the server remapping this dns name to something else?
No, nothing is wrong with the hosts.
I think the problem has something to do with mixing Form validation using Jquery and ASP.NET RequiredFieldValidator tags.
Also I am using cmxforms.js and jquery.metadata.js
I was able to isolate the problem to this tag <asp:FileUpload ID="FileUpload1" runat="server" Width="50%" /> ...
Maybe mixing all these different form validation with <asp:FileUpload ID="FileUpload1" runat="server" Width="50%" />
can cause weird side-effects?
I am still perplexed with this :
Why don't I see the problem during testing in the visual studio environment?
Why is the problem occuring only once I deploy my website to IIS 6?
What is at fault, my website or the IIS 6?
jeanclaudeT
Member
14 Points
67 Posts
Re: Response.Redirect to http page returns The page cannot be found
Sep 07, 2009 04:37 PM|LINK
I installed IIS 7 on my home computer and the redirection to the thank you page works on well.
I now think the problem has something to do with the configuration on the IIS 6 server at work that hosts the application.
Maybe someone can help me change the configuration. Thanks
suthish nair
All-Star
15176 Points
3304 Posts
Re: Response.Redirect to http page returns The page cannot be found
Sep 07, 2009 05:54 PM|LINK
Plz chk d link, tryn to catch returnurl:
http://forums.asp.net/t/1429452.aspx
can you cross check IIS configuration of ur server and new pc
My Blog