Issue with Response.Redirect / Server.Transfer

Discussion in 'ASP General' started by Craig Douglas, Nov 8, 2006.

  1. Hi,

    I have a problem with getting a redirect to work on our server.

    It's worked fine on our server for months, but suddenly won't work and I
    can't figure out why.

    codewise, It's nothing special:

    Response.Redirect("indexThankYou.htm");

    instead of redirecting the browser to this page, an JavaScript-alert-style
    message comes up with the text:

    Cannot Find 'file://E:\wwwroot\mdc00152-learnproengine2_00\index.htm'. Make
    sure the path or Internet address is correct.

    (No page exists, nor was there ever any mention of it in the code)

    I've examined the output with fiddler to find:

    <html><head><title>Object moved</title></head><body>
    <h2>Object moved to <a
    href='E:\wwwroot\mdc00152-learnProEnginev2_00\index.htm'>here</a>.</h2>
    </body></html>

    I've checked that the aspnet client folder, and it's there and loads with a
    code 200 (from fiddler)

    Has anyone any ideas why this might have suddenly stopped working? Does
    this sound like a cache-ing problem? The code has worked fine previously.

    It would be preferable if I could get this working again without rebuilding
    the application.

    Thanks in advance.

    Craig
     
    Craig Douglas, Nov 8, 2006
    #1
    1. Advertising

  2. Craig Douglas

    offwhite Guest

    Do you have any third party controls in use with this application?
    Perhaps an evaluation or license period has ended and this is a
    misguided way to alert you of the expiration.

    I would also check if anyone has installed something new onto the
    server or modified the Machine.config. This looks like very strange
    behavior.

    Brennan Stehling
    http://brennan.offwhite.net/blog/

    Craig Douglas wrote:
    > Hi,
    >
    > I have a problem with getting a redirect to work on our server.
    >
    > It's worked fine on our server for months, but suddenly won't work and I
    > can't figure out why.
    >
    > codewise, It's nothing special:
    >
    > Response.Redirect("indexThankYou.htm");
    >
    > instead of redirecting the browser to this page, an JavaScript-alert-style
    > message comes up with the text:
    >
    > Cannot Find 'file://E:\wwwroot\mdc00152-learnproengine2_00\index.htm'. Make
    > sure the path or Internet address is correct.
    >
    > (No page exists, nor was there ever any mention of it in the code)
    >
    > I've examined the output with fiddler to find:
    >
    > <html><head><title>Object moved</title></head><body>
    > <h2>Object moved to <a
    > href='E:\wwwroot\mdc00152-learnProEnginev2_00\index.htm'>here</a>.</h2>
    > </body></html>
    >
    > I've checked that the aspnet client folder, and it's there and loads with a
    > code 200 (from fiddler)
    >
    > Has anyone any ideas why this might have suddenly stopped working? Does
    > this sound like a cache-ing problem? The code has worked fine previously.
    >
    > It would be preferable if I could get this working again without rebuilding
    > the application.
    >
    > Thanks in advance.
    >
    > Craig
     
    offwhite, Nov 18, 2006
    #2
    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. Justin
    Replies:
    3
    Views:
    547
    Cowboy \(Gregory A. Beamer\)
    Jul 31, 2003
  2. Harsh Thakur

    Response.Redirect vs Server.Transfer

    Harsh Thakur, Aug 18, 2003, in forum: ASP .Net
    Replies:
    4
    Views:
    787
    Harsh Thakur
    Aug 18, 2003
  3. Craig Douglas

    Issue with Response.Redirect / Server.Transfer

    Craig Douglas, Nov 8, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    325
    offwhite
    Nov 18, 2006
  4. Sal
    Replies:
    1
    Views:
    811
  5. David C. Holley

    server.execute/response.redirect/server.transfer

    David C. Holley, Jan 17, 2004, in forum: ASP General
    Replies:
    6
    Views:
    443
    David Holley
    Jan 18, 2004
Loading...

Share This Page