I have a web application that uses the asp.net membership and role providers to allow logins that are members of certain roles to have access to various pages depending on
The FormsAuthentication.RedirectFromLoginPage uses the defaultUrl to decide where to redirect after login. So make sure, you have a valid url other than your LoginPage.aspx defined.