• RSS
  • Twitter
  • FaceBook

Welcome to ISAserver.org

Forums | Register | Login | My Profile | Inbox | RSS RSS icon | My Subscription | My Forums | Address Book | Member List | Search | FAQ | Ticket List | Log Out

Problem with response.redirect

Users viewing this topic: none

Logged in as: Guest
  Printable Version
All Forums >> [ISA 2006 Publishing] >> Web Publishing >> Problem with response.redirect Page: [1]
Login
Message << Older Topic   Newer Topic >>
Problem with response.redirect - 2.Mar.2009 3:40:37 PM   
LeeFAR

 

Posts: 4
Joined: 2.Mar.2009
Status: offline
I'm fairly new to ISA and I'm not the administrator of the ISA server.  So, I'm going at this a bit blindly.  But here is my problem.  We have an ASP.NET web app sitting on an IIS server that sits on the inside.  We have it published in ISA.  The URL to get to it is something like https://server/department/app.  In IIS, the virtual directory is sitting in the root web.  In the virtual directory, there are additional folders that contain additional ASPX pages.  For example, if I were to browse the app no going through ISA, this is a typical link http://internalserver/app/somefolder/mypage.aspx.  In ISA, the paths are setup as follows:

/department/app/* = /app/*

The problem we have is that in some of the ASPX pages, the code is doing a response.redirect and this is causing a problem.  For example, the user browses to https://server/department/app/somefolder/mypage.aspx and that page issues a response.redirect to myotherpage.aspx in the same folder; somefolder.  This doesn't work.  The only thing we can do to get it to work is to hardcode in the response.redirect, the following.

response.redirect("department/app/somefolder/myotherpage.aspx")

Can anyone explain why this is?
Post #: 1
RE: Problem with response.redirect - 2.Mar.2009 6:50:51 PM   
richardhicks

 

Posts: 477
Joined: 20.Jan.2009
From: Southern California
Status: offline
Interesting...sounds like it should work to me.  An absolute redirect would fail, obviously, but a relative redirect should work without issue.  Can you tell me what the HTTP 302 response from the web server indicates?

_____________________________

Richard Hicks - Forefront MVP
http://tmgblog.richardhicks.com/
http://directaccess.richardhicks.com/

(in reply to LeeFAR)
Post #: 2
RE: Problem with response.redirect - 6.Mar.2009 10:42:03 AM   
LeeFAR

 

Posts: 4
Joined: 2.Mar.2009
Status: offline
Thanks for the reply.  We have since put a bandaid in so I can't give you the 302 response is.  I really think the problem is the the addtion of "department" part of the URL that ISA is throwing in.  A response.redirect being issued to the client from the IIS server will not include the "department" and therefore when the client gets the directive to go to /somefolder/myotherpage.aspx, it doesn't include the "department" part.

(in reply to richardhicks)
Post #: 3

Page:   [1] << Older Topic    Newer Topic >>
All Forums >> [ISA 2006 Publishing] >> Web Publishing >> Problem with response.redirect Page: [1]
Jump to:

New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts