Strange Error - "Object moved to here."

Posted by Dkong on Stack Overflow See other posts from Stack Overflow or by Dkong
Published on 2010-03-16T16:42:11Z Indexed on 2010/03/16 22:01 UTC
Read the original article Hit count: 259

Filed under:
|
|

I get the strange error "Object moved to here." on a blank white page when I try to login on a site I created. It works fine locally but not when I deploy it to the test or production server. I am not doing anything odd, just using basic authentication code in a helper function as follows...

public static bool AuthenticateUser(string Username, string Password, bool PersistLogin, string RedirectionURL)
    {
        if (Membership.ValidateUser(Username, Password))
        {
            FormsAuthentication.SetAuthCookie(Username, PersistLogin);                
            HttpContext.Current.Response.Redirect(RedirectionURL,true);
            return true;
        }
        else
            return false;
    }

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about c#