« Previous Next »

Thread: Redirecting to the same page

Last post 11-05-2008 10:14 AM by mzubair10. 9 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (10 items)

Sort Posts:

  • 10-30-2008, 5:33 PM

    Redirecting to the same page

    On my local machine (IIS 5), my application works fine...When i deploy this to my testing server (IIS 6), i can build the project. But when i try to run it, it says "Redirecting to servername/default.aspx". It keeps doing this forever and the page remains blank. However i can hit a test html page from within my test server(servername/test.html works)...It is just the default.aspx is causing some problem and I cant seem to hit a break point within page-init (on test servers) because it keeps redirecting forever. So i really dont know whats going on within my default.aspx page which is causing it to redirect.I am almost positive that it has to do with some setting within IIS (because the code and database are the same between local development and test servers). When i try the same thing on firefox, i get a error message - "Page isnt redirecting properly. Firefox has detected that the server is redirecting the request for this address in a way that will never complete".  Any thoughts/ideas?

  • 10-31-2008, 2:31 PM In reply to

    Re: Redirecting to the same page

    My virtual redirectory is set up so that, the content for the resource would come from a "Directory located on this computer". That is how it is set up on my local machine and on the staging servers and they all work fine. If i set it up as a "Redirection to a URL", then IE displays a message saying that "IE cannot find the specified page".

  • 11-03-2008, 12:36 AM In reply to

    Re: Redirecting to the same page

    what page you trying to redirect? from where to where?

    is default.aspx one of your default doc? from / root to /vdir/ ? or ?

    Cheers,
    Bernard Cheah
  • 11-03-2008, 11:24 AM In reply to

    Re: Redirecting to the same page

    That is correct -> "Default.aspx" is set up as my default doc. So when I try to launch my default page, there is a infinite re-direct happening and in the bottom on the page, I find this message - "Website found. Redirecting to URL"...This keeps happening forever and the default page never shows up.

  • 11-04-2008, 4:10 AM In reply to

    Re: Redirecting to the same page

    What's the actual requirement? you will need to redirect to a non default doc page, else the looping is by design.

    Cheers,
    Bernard Cheah
  • 11-04-2008, 11:15 AM In reply to

    Re: Redirecting to the same page

    All I need to do is display the default page (default.aspx). At this point, there is a infinite loop happening and there is no default page displayed (nothing shows up...just blank screen and the status bar taking forever). Is there a design inside IIS where you can cause it to loop?

  • 11-05-2008, 4:03 AM In reply to

    Re: Redirecting to the same page

    Mm.. so let's recap.

    a) your default doc is default.aspx, which you like your visitor to browse during request to www.yourserver.com

    b) then you see the first page get looping.

    so, can you check do you have any redirection setting in the site property or the default.aspx script.

    Cheers,
    Bernard Cheah
  • 11-05-2008, 7:42 AM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 6:27 AM
    • Central NJ
    • Posts 6,186
    • IIS MVPs

    Re: Redirecting to the same page

    qbernard:
    so, can you check do you have any redirection setting in the site property or the default.aspx script.
    I would think it has to be one or the other here ...

  • 11-05-2008, 10:14 AM In reply to

    Re: Redirecting to the same page

    I have the same code on my local machine. However I run IIS 5 on my local machine and everything works fine...I copy the code and database from my machine and deploy it to test servers (which use IIS 6) and then this infinite loop happens...It seems really wierd though. Because the settings on my local machine and test servers are the same (code, database and no SSL).

Page 1 of 1 (10 items)
Microsoft Communities