Re: redirect not working

From: Daniel Fisher\(lennybacon\) (info_at_(removethis)lennybacon.com)
Date: 10/08/04

  • Next message: Eurico Costa: "Re: Active Directory Search fails ("The directory service is unava"
    Date: Fri, 8 Oct 2004 09:29:16 +0200
    
    

    Have you tried to run the code on a different local machine or a VM?

    -- 
    Daniel Fisher(lennybacon)
     MCP C# ASP.NET
    Blog: http://www.lennybacon.com/
    <anonymous@discussions.microsoft.com> wrote in message 
    news:155e01c4ac50$45979660$a401280a@phx.gbl...
    > Daniel,
    >
    > Locally the Redirect method returns the correct URL and
    > it redirects perfectly. However when I deploy to a web
    > server the redirect stops working. I can't debug this
    > remotely as I do not have the necessary permissions
    > however the code is the same so I can't see how this
    > would differ.
    >
    > The fact there is a difference between remote and local
    > debugging makes me think its perhaps an IIS problem (only
    > a guess).
    >
    > Any pointers would be much appreciated. Thanks for your
    > help
    >
    >
    >>-----Original Message-----
    >>Hi Matt
    >>
    >>> That line detects whether the user has come to the
    > login
    >>> page from the homepage(index.aspx) and if so re-directs
    >>> (doesn't work) them to the index.aspx (I changed it to
    > a
    >>> http:// address in the hope it would work as originally
    >>> it was /appliedbioscience/... type URL).
    >>
    >>GetRedirectUrl() Checks if the username is null, returns
    > null in this case,
    >>or returns Request["ReturnUrl"] if not null or just the
    > path to the
    >>default.aspx in the root of the application.
    >>
    >>what does this method return in your code?
    >>
    >>
    >>-- 
    >>Daniel Fisher(lennybacon)
    >> MCP C# ASP.NET
    >>Blog: http://www.lennybacon.com/
    >>
    >>
    >>
    >>
    >>
    >>
    >>.
    >> 
    

  • Next message: Eurico Costa: "Re: Active Directory Search fails ("The directory service is unava"

    Relevant Pages

    • Re: Server.Transfer problems
      ... Transfer the address bar on the browser is not updated. ... Dee ... > Daniel Groh ... the page accessed through the Redirect function ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: URL Rewriting ?
      ... > Daniel Fisher ... >> MCP C# ASP.NET ... >>hab da ein kleines Problem. ... >>THX und Gruss ...
      (microsoft.public.de.german.entwickler.dotnet.asp)
    • Re: file.move to unc causes error
      ... Daniel Fisher ... MCP ASP.NET C# ... Blog: http://www.lennybacon.com/ ... "Michael McLaughlin" wrote in ...
      (microsoft.public.dotnet.framework.aspnet.security)
    • Re: Virtueller Host einrichten
      ... > anlegen und einen permanenten Redirect auf ... ich will, dass eine URL ... "Daniel Weber" schrieb im Newsbeitrag ...
      (microsoft.public.de.inetserver.iis)
    • Re: Redirect direct calls to a script?
      ... Daniel wrote: ... or redirect to some other page if someone would call a page directly? ... If it's a get request, ... the business flow is the same... ...
      (alt.php)